public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* Speech-friendly alsa mixer (sam) released, testers needed
@  Willem van der Walt
   ` Chuck Hallenbeck
   ` Speech-friendly alsa mixer (sam) released, testers needed Janina Sajka
  0 siblings, 2 replies; 25+ messages in thread
From: Willem van der Walt @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

So Janina, on Saturday I started writing the tool you are asking about 
below.  It works fine on the two machines I have tested on, but obviously, 
it is new code which needs more testing.
Grab it from http://www.sanote.co.za/downloads/sam-latest.tar.bz2
Extract: tar jxvf sam-latest.tar.bz2
cd sam
and read the README.md for more details.

Janina, I hope you can give it a spin as you are the person with the most 
sound devices in one machine I know about.
I am no expert on alsa, so do not expect too much.
Feedback is welcome.
Kind regards, Willem


On Fri, 5 Apr 2019, Janina Sajka wrote:

> [The e-mail server of the sender could not be verified (SPF Record)]
>
> Hi, Glenn:
>
> I'm not aware of a way to manage "all" through a single command. Maybe
> someone has written a tool like that. Part of the problem is that each
> sound card is different, providing more or fewer interface options. And,
> if you have more than one card, like I do, things get even more complex.
>
> Here's how to enumerate the cards you have:
> aplay -l
>
> Now, for each individual card, where x stands for the card number,  you can query available controls like so:
>
> amixer -Cx controls
>
> You'l find some cards have lots of controls, and others very few. If
> you're looking only for volume, grep is your friend like so by way of
> example:
>
> amixer -c2 controls |grep -i volume
>
> Of course, if you have but one card, you don't need the -c switch.
>
> Now, to get the current setting for any control, again where x
> identifies the card, and y identifies the numeric id you discovered with
> the grep above, do like so:
>
> amixer -cx cget numid=y
>
>
> Lastly, to set the volume:
>
> amixer -cx cset numid=y [value]
>
> hth
>
> Janina
>
> Glenn At Home writes:
>> Hi,
>> I'm reading the amixer manpage and I'm unclear on how to set the volume output to 100%.
>> Is there a simple command to make sure that all is unmuted and at 100%?
>> Thanks
>>
>>
>> Sent From My Tabletop
>> N0YJV   shade tree computer guy
>> _______________________________________________
>> Speakup mailing list
>> Speakup@linux-speakup.org
>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>
> -- 
>
> Janina Sajka
>
> Linux Foundation Fellow
> Executive Chair, Accessibility Workgroup:	http://a11y.org
>
> The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
> Chair, Accessible Platform Architectures	http://www.w3.org/wai/apa
>
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
   Speech-friendly alsa mixer (sam) released, testers needed Willem van der Walt
@  ` Chuck Hallenbeck
     ` Samuel Thibault
                     ` (2 more replies)
   ` Speech-friendly alsa mixer (sam) released, testers needed Janina Sajka
  1 sibling, 3 replies; 25+ messages in thread
From: Chuck Hallenbeck @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Hi Willem,

I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
requirements for sam, but on first executing it, I get this:

[groucho@workshop ~]$ sam
   File "/usr/local/bin/sam", line 152
     print ''
            ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean
print('')?
[groucho@workshop ~]$


Any suggestions? Looks like an interesting idea.

Chuck

-- 
Here In Northeast Ohio, The Moon is Waxing Crescent (25% of Full)
If you don't stand for something, you will fall for anything.
Sent from Lula's missing iPhone.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
   ` Chuck Hallenbeck
@    ` Samuel Thibault
       ` Chuck Hallenbeck
     ` Willem van der Walt
     ` Janina Sajka
  2 siblings, 1 reply; 25+ messages in thread
From: Samuel Thibault @  UTC (permalink / raw)
  To: Chuck Hallenbeck, Speakup is a screen review system for Linux.

Chuck Hallenbeck, le mer. 10 avril 2019 05:33:10 -0400, a ecrit:
> I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
> requirements for sam, but on first executing it, I get this:
> 
> [groucho@workshop ~]$ sam
>   File "/usr/local/bin/sam", line 152
>     print ''
>            ^
> SyntaxError: Missing parentheses in call to 'print'. Did you mean
> print('')?
> [groucho@workshop ~]$
> 
> 
> Any suggestions? Looks like an interesting idea.

This is a python2 vs python3 issue.

Samuel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
     ` Samuel Thibault
@      ` Chuck Hallenbeck
         ` Samuel Thibault
         ` Willem van der Walt
  0 siblings, 2 replies; 25+ messages in thread
From: Chuck Hallenbeck @  UTC (permalink / raw)
  To: Samuel Thibault
  Cc: Chuck Hallenbeck, Speakup is a screen review system for Linux.

On Wed, 10 Apr 2019, Samuel Thibault wrote:

> Chuck Hallenbeck, le mer. 10 avril 2019 05:33:10 -0400, a ecrit:
>> I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
>> requirements for sam, but on first executing it, I get this:
>>
>> [groucho@workshop ~]$ sam
>>   File "/usr/local/bin/sam", line 152
>>     print ''
>>            ^
>> SyntaxError: Missing parentheses in call to 'print'. Did you mean
>> print('')?
>> [groucho@workshop ~]$
>>
>>
>> Any suggestions? Looks like an interesting idea.
>
> This is a python2 vs python3 issue.
>
Okay, that's helpful. Arch names the different pythons python2 and
python.  Not sure if debian does it that way, or calls them python and
python3. .


Chuck

-- 
Here In Northeast Ohio, The Moon is Waxing Crescent (25% of Full)
If you don't stand for something, you will fall for anything.
Sent from Nellie's missing iPhone.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
       ` Chuck Hallenbeck
@        ` Samuel Thibault
           ` Willem van der Walt
         ` Willem van der Walt
  1 sibling, 1 reply; 25+ messages in thread
From: Samuel Thibault @  UTC (permalink / raw)
  To: Chuck Hallenbeck; +Cc: Speakup is a screen review system for Linux.

Chuck Hallenbeck, le mer. 10 avril 2019 05:52:15 -0400, a ecrit:
> On Wed, 10 Apr 2019, Samuel Thibault wrote:
> > Chuck Hallenbeck, le mer. 10 avril 2019 05:33:10 -0400, a ecrit:
> > > I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
> > > requirements for sam, but on first executing it, I get this:
> > > 
> > > [groucho@workshop ~]$ sam
> > >   File "/usr/local/bin/sam", line 152
> > >     print ''
> > >            ^
> > > SyntaxError: Missing parentheses in call to 'print'. Did you mean
> > > print('')?
> > > [groucho@workshop ~]$
> > > 
> > > 
> > > Any suggestions? Looks like an interesting idea.
> > 
> > This is a python2 vs python3 issue.
> > 
> Okay, that's helpful. Arch names the different pythons python2 and
> python.  Not sure if debian does it that way, or calls them python and
> python3. .

It's python (for python2) and python3 for now.
sam should use python2 explicitly until being compatible with python3
(which should probably not be very hard)

Samuel

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
   ` Chuck Hallenbeck
     ` Samuel Thibault
@    ` Willem van der Walt
       ` Chuck Hallenbeck
     ` Janina Sajka
  2 siblings, 1 reply; 25+ messages in thread
From: Willem van der Walt @  UTC (permalink / raw)
  To: Chuck Hallenbeck, Speakup is a screen review system for Linux.

Hi Chuck,
Samuel is correct. You are clearly running python3 which require print() 
and some other stuff too.
You can check if you do not have python2 installed.
On my box, which python2 comes up with /usr/bin/python2
If it does on your side too, I would say the safest way is to force sam to 
use python2 by editing the very first line of the script, replacing
/usr/bin/env python with /usr/bin/python2 or whatever your path is.
Yes, you can change all print statements to the python3 way, but I do not 
know what else would break then.
HTH, Willem


On Wed, 10 Apr 2019, Chuck Hallenbeck wrote:

> [The e-mail server of the sender could not be verified (SPF Record)]
>
> Hi Willem,
>
> I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
> requirements for sam, but on first executing it, I get this:
>
> [groucho@workshop ~]$ sam
>  File "/usr/local/bin/sam", line 152
>    print ''
>           ^
> SyntaxError: Missing parentheses in call to 'print'. Did you mean
> print('')?
> [groucho@workshop ~]$
>
>
> Any suggestions? Looks like an interesting idea.
>
> Chuck
>
> -- 
> Here In Northeast Ohio, The Moon is Waxing Crescent (25% of Full)
> If you don't stand for something, you will fall for anything.
> Sent from Lula's missing iPhone.
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
       ` Chuck Hallenbeck
         ` Samuel Thibault
@        ` Willem van der Walt
  1 sibling, 0 replies; 25+ messages in thread
From: Willem van der Walt @  UTC (permalink / raw)
  To: Chuck Hallenbeck, Speakup is a screen review system for Linux.

The debian-based distros sets one of them as the default that would be 
called by the name python.
Regards, Willem


On Wed, 10 Apr 2019, Chuck Hallenbeck wrote:

> [The e-mail server of the sender could not be verified (SPF Record)]
>
> On Wed, 10 Apr 2019, Samuel Thibault wrote:
>
>> Chuck Hallenbeck, le mer. 10 avril 2019 05:33:10 -0400, a ecrit:
>>> I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
>>> requirements for sam, but on first executing it, I get this:
>>> 
>>> [groucho@workshop ~]$ sam
>>>   File "/usr/local/bin/sam", line 152
>>>     print ''
>>>            ^
>>> SyntaxError: Missing parentheses in call to 'print'. Did you mean
>>> print('')?
>>> [groucho@workshop ~]$
>>> 
>>> 
>>> Any suggestions? Looks like an interesting idea.
>> 
>> This is a python2 vs python3 issue.
>> 
> Okay, that's helpful. Arch names the different pythons python2 and
> python.  Not sure if debian does it that way, or calls them python and
> python3. .
>
>
> Chuck
>
> -- 
> Here In Northeast Ohio, The Moon is Waxing Crescent (25% of Full)
> If you don't stand for something, you will fall for anything.
> Sent from Nellie's missing iPhone.
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
         ` Samuel Thibault
@          ` Willem van der Walt
             ` Didier Spaier
  0 siblings, 1 reply; 25+ messages in thread
From: Willem van der Walt @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

OK, I made the change to use python2 and uploaded again.
HTH, Willem


On Wed, 10 Apr 2019, Samuel Thibault wrote:

> [The e-mail server of the sender could not be verified (SPF Record)]
>
> Chuck Hallenbeck, le mer. 10 avril 2019 05:52:15 -0400, a ecrit:
>> On Wed, 10 Apr 2019, Samuel Thibault wrote:
>>> Chuck Hallenbeck, le mer. 10 avril 2019 05:33:10 -0400, a ecrit:
>>>> I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
>>>> requirements for sam, but on first executing it, I get this:
>>>>
>>>> [groucho@workshop ~]$ sam
>>>>   File "/usr/local/bin/sam", line 152
>>>>     print ''
>>>>            ^
>>>> SyntaxError: Missing parentheses in call to 'print'. Did you mean
>>>> print('')?
>>>> [groucho@workshop ~]$
>>>>
>>>>
>>>> Any suggestions? Looks like an interesting idea.
>>>
>>> This is a python2 vs python3 issue.
>>>
>> Okay, that's helpful. Arch names the different pythons python2 and
>> python.  Not sure if debian does it that way, or calls them python and
>> python3. .
>
> It's python (for python2) and python3 for now.
> sam should use python2 explicitly until being compatible with python3
> (which should probably not be very hard)
>
> Samuel
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
     ` Willem van der Walt
@      ` Chuck Hallenbeck
         ` Willem van der Walt
  0 siblings, 1 reply; 25+ messages in thread
From: Chuck Hallenbeck @  UTC (permalink / raw)
  To: Willem van der Walt
  Cc: Chuck Hallenbeck, Speakup is a screen review system for Linux.

Hi Willem,

Yes, "which python2"  tells me /usr/bin/python2 also, but changing
python to python2 on sam's first line solves the first problem I found,
but reveals another, it needs the alsaaudio module, and what I found in
Arch's AUR didn't satisfy it.

Later, I will look again at the various alsaaudio wrappers in the AUR
and see if one of them looks more appropriate, now that I know what I'm
doing a little better. I'm surprised Arch's standard archives don't have
it available.

Thanks, I'll keep you posted.

Chuck


-- 
Here In Northeast Ohio, The Moon is Waxing Crescent (25% of Full)
If you don't stand for something, you will fall for anything.
Sent from Margarita's missing iPhone.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
       ` Chuck Hallenbeck
@        ` Willem van der Walt
           ` Chuck Hallenbeck
  0 siblings, 1 reply; 25+ messages in thread
From: Willem van der Walt @  UTC (permalink / raw)
  To: Chuck Hallenbeck; +Cc: Speakup is a screen review system for Linux.

Hi Chuck,
I think you should install the module again, specificly for python2.
If you like, install from the tar file for which I gave the link.
When you then call setup.py, just also call it with python2 setup.py etc.
It installs under /usr/local, so will not distroy your other 
distro-installed one.
Regards, Willem


On Wed, 10 Apr 2019, Chuck Hallenbeck wrote:

> Hi Willem,
>
> Yes, "which python2"  tells me /usr/bin/python2 also, but changing
> python to python2 on sam's first line solves the first problem I found,
> but reveals another, it needs the alsaaudio module, and what I found in
> Arch's AUR didn't satisfy it.
>
> Later, I will look again at the various alsaaudio wrappers in the AUR
> and see if one of them looks more appropriate, now that I know what I'm
> doing a little better. I'm surprised Arch's standard archives don't have
> it available.
>
> Thanks, I'll keep you posted.
>
> Chuck
>
>
> -- 
> Here In Northeast Ohio, The Moon is Waxing Crescent (25% of Full)
> If you don't stand for something, you will fall for anything.
> Sent from Margarita's missing iPhone.
>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
           ` Willem van der Walt
@            ` Didier Spaier
               ` Willem van der Walt
  0 siblings, 1 reply; 25+ messages in thread
From: Didier Spaier @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux., Willem van der Walt

Hello Willem,

sam works on Slint64-14.2.1.2 using any console screen reader. Well, at
least with espeakup, speechd-up and fenrir <smile>.

I still have to test with several sound cards, will do in a qemu VM.

Congrats!

I will package it for Slint as soon as you tell it's ready for release.

Some minor remarks:
1. There is a software called SAM (mind the capital letters):
https://github.com/s-macke/SAM
Isn't there a risk of confusion?
2. in README.md you wrote:
> 3. Alternatively, grab the tar.gz from https://files.pythonhosted.org/packages/52/b6/44871791929d9d7e11325af0b7be711388dfeeab17147988f044a41a6d83/pyalsaaudio-0.8.4.tar.gz
But there is a SHA256SUM on this page that the reader could miss:
https://pypi.org/project/pyalsaaudio/#files
Maybe it's not accessible though as it's not an hyperlink, the html code for it is the 4 following line:
 <a class="-js-copy-hash table__sha256-link tooltipped tooltipped-s" aria-label="Copy to clipboard" data-original-label="Copy to clipboard" data-clipboard-text="84e8f8da544d7f4bd96479ce4a237600077984d9be1d7f16c1d9a492ecf50085">
                      <i class="fa fa-copy" aria-hidden="true"></i>
                      <span class="sr-only">Copy SHA256 hash</span>
                      SHA256
                    </a>
not sure what to do here...
3. Maybe you could consider porting sam to python3? pyalsaudio can be
built for python3, but TBH that's all I know, I didn't try to use it so.

Best,

Didier

On 10/04/2019 12:14, Willem van der Walt wrote:
> OK, I made the change to use python2 and uploaded again.
> HTH, Willem
> 
> 
> On Wed, 10 Apr 2019, Samuel Thibault wrote:
> 
>> [The e-mail server of the sender could not be verified (SPF Record)]
>>
>> Chuck Hallenbeck, le mer. 10 avril 2019 05:52:15 -0400, a ecrit:
>>> On Wed, 10 Apr 2019, Samuel Thibault wrote:
>>>> Chuck Hallenbeck, le mer. 10 avril 2019 05:33:10 -0400, a ecrit:
>>>>> I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
>>>>> requirements for sam, but on first executing it, I get this:
>>>>>
>>>>> [groucho@workshop ~]$ sam
>>>>>   File "/usr/local/bin/sam", line 152
>>>>>     print ''
>>>>>            ^
>>>>> SyntaxError: Missing parentheses in call to 'print'. Did you mean
>>>>> print('')?
>>>>> [groucho@workshop ~]$
>>>>>
>>>>>
>>>>> Any suggestions? Looks like an interesting idea.
>>>>
>>>> This is a python2 vs python3 issue.
>>>>
>>> Okay, that's helpful. Arch names the different pythons python2 and
>>> python.  Not sure if debian does it that way, or calls them python and
>>> python3. .
>>
>> It's python (for python2) and python3 for now.
>> sam should use python2 explicitly until being compatible with python3
>> (which should probably not be very hard)
>>
>> Samuel
>> _______________________________________________
>> Speakup mailing list
>> Speakup@linux-speakup.org
>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>>
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
> 

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
             ` Didier Spaier
@              ` Willem van der Walt
                 ` Didier Spaier
  0 siblings, 1 reply; 25+ messages in thread
From: Willem van der Walt @  UTC (permalink / raw)
  To: Didier Spaier; +Cc: Speakup is a screen review system for Linux.

Hi Didier,
I am glad to here it works with Slint.
About the name:
I just had to call it something, I am open to suggestions for a better 
name.
First it was console_mixer_alsa, but that was long and not too 
descriptive.
Hopefully, most people would not need to install using the tar file, but 
perhaps I were too precise.
https://pypi.org/project/pyalsaaudio/#files is likely enough.
I am used to python2, but I suppose I should look into changing the code 
so that it can work on both.
If there is enough interest in the program I will make time to do it.

I will see what the feedback is and let you know, but you are welcome to 
package whenever you want.
Kind regards, Willem


On Wed, 10 Apr 2019, Didier Spaier wrote:

> [The e-mail server of the sender could not be verified (SPF Record)]
>
> Hello Willem,
>
> sam works on Slint64-14.2.1.2 using any console screen reader. Well, at
> least with espeakup, speechd-up and fenrir <smile>.
>
> I still have to test with several sound cards, will do in a qemu VM.
>
> Congrats!
>
> I will package it for Slint as soon as you tell it's ready for release.
>
> Some minor remarks:
> 1. There is a software called SAM (mind the capital letters):
> https://github.com/s-macke/SAM
> Isn't there a risk of confusion?
> 2. in README.md you wrote:
>> 3. Alternatively, grab the tar.gz from https://files.pythonhosted.org/packages/52/b6/44871791929d9d7e11325af0b7be711388dfeeab17147988f044a41a6d83/pyalsaaudio-0.8.4.tar.gz
> But there is a SHA256SUM on this page that the reader could miss:
> https://pypi.org/project/pyalsaaudio/#files
> Maybe it's not accessible though as it's not an hyperlink, the html code for it is the 4 following line:
> <a class="-js-copy-hash table__sha256-link tooltipped tooltipped-s" aria-label="Copy to clipboard" data-original-label="Copy to clipboard" data-clipboard-text="84e8f8da544d7f4bd96479ce4a237600077984d9be1d7f16c1d9a492ecf50085">
>                      <i class="fa fa-copy" aria-hidden="true"></i>
>                      <span class="sr-only">Copy SHA256 hash</span>
>                      SHA256
>                    </a>
> not sure what to do here...
> 3. Maybe you could consider porting sam to python3? pyalsaudio can be
> built for python3, but TBH that's all I know, I didn't try to use it so.
>
> Best,
>
> Didier
>
> On 10/04/2019 12:14, Willem van der Walt wrote:
>> OK, I made the change to use python2 and uploaded again.
>> HTH, Willem
>>
>>
>> On Wed, 10 Apr 2019, Samuel Thibault wrote:
>>
>>> [The e-mail server of the sender could not be verified (SPF Record)]
>>>
>>> Chuck Hallenbeck, le mer. 10 avril 2019 05:52:15 -0400, a ecrit:
>>>> On Wed, 10 Apr 2019, Samuel Thibault wrote:
>>>>> Chuck Hallenbeck, le mer. 10 avril 2019 05:33:10 -0400, a ecrit:
>>>>>> I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
>>>>>> requirements for sam, but on first executing it, I get this:
>>>>>>
>>>>>> [groucho@workshop ~]$ sam
>>>>>>   File "/usr/local/bin/sam", line 152
>>>>>>     print ''
>>>>>>            ^
>>>>>> SyntaxError: Missing parentheses in call to 'print'. Did you mean
>>>>>> print('')?
>>>>>> [groucho@workshop ~]$
>>>>>>
>>>>>>
>>>>>> Any suggestions? Looks like an interesting idea.
>>>>>
>>>>> This is a python2 vs python3 issue.
>>>>>
>>>> Okay, that's helpful. Arch names the different pythons python2 and
>>>> python.  Not sure if debian does it that way, or calls them python and
>>>> python3. .
>>>
>>> It's python (for python2) and python3 for now.
>>> sam should use python2 explicitly until being compatible with python3
>>> (which should probably not be very hard)
>>>
>>> Samuel
>>> _______________________________________________
>>> Speakup mailing list
>>> Speakup@linux-speakup.org
>>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>>>
>> _______________________________________________
>> Speakup mailing list
>> Speakup@linux-speakup.org
>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>>
>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
         ` Willem van der Walt
@          ` Chuck Hallenbeck
             ` Willem van der Walt
  0 siblings, 1 reply; 25+ messages in thread
From: Chuck Hallenbeck @  UTC (permalink / raw)
  To: Willem van der Walt
  Cc: Chuck Hallenbeck, Speakup is a screen review system for Linux.

Hi Willem,

I finally had time to look again at the  sam issue on Arch, and  the
solution seems easy. The AUR  on arch offers a package called
python2-pyalsaaudio , which does the trick. I had earlier incorrectly
used a similarly named package with the '2' omitted from the name, which
threw me into python3 on arch. So, changing python to python2 on the
first line of sam, then installing the correct wrapper from the aur, and
it works correctly.  Thanks to you and Samuel for the help. I'll be
playing with it now from time to time.

Chuck


-- 
Here In Northeast Ohio, The Moon is Waxing Crescent (28% of Full)
If you don't stand for something, you will fall for anything.
Sent from Cesar's missing iPhone.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
           ` Chuck Hallenbeck
@            ` Willem van der Walt
  0 siblings, 0 replies; 25+ messages in thread
From: Willem van der Walt @  UTC (permalink / raw)
  To: Chuck Hallenbeck; +Cc: Speakup is a screen review system for Linux.

Glad you got it going!
Regards, Willem


On Wed, 10 Apr 2019, Chuck Hallenbeck wrote:

> Hi Willem,
>
> I finally had time to look again at the  sam issue on Arch, and  the
> solution seems easy. The AUR  on arch offers a package called
> python2-pyalsaaudio , which does the trick. I had earlier incorrectly
> used a similarly named package with the '2' omitted from the name, which
> threw me into python3 on arch. So, changing python to python2 on the
> first line of sam, then installing the correct wrapper from the aur, and
> it works correctly.  Thanks to you and Samuel for the help. I'll be
> playing with it now from time to time.
>
> Chuck
>
>
> -- 
> Here In Northeast Ohio, The Moon is Waxing Crescent (28% of Full)
> If you don't stand for something, you will fall for anything.
> Sent from Cesar's missing iPhone.
>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
               ` Willem van der Walt
@                ` Didier Spaier
  0 siblings, 0 replies; 25+ messages in thread
From: Didier Spaier @  UTC (permalink / raw)
  To: Willem van der Walt
  Cc: Speakup is a screen review system for Linux., Janina Sajka

Howdy Willem,

I tried SAM. It works and is amazingly small, but the voice is horrible.

So and although the binary be named sam, I do not object that you
call sam this Simple Alsa Mixer. I am not entitled to object anyway <smile>

Also it is highly unlikely that you be sued for using the same name
as is is supposed to be Abandonware.

I also found a forked GitHub with some more recent commits for SAM:
https://github.com/vidarh/SAM but am too lazy to try it.

Sorry for the digression, back to the topic.

I have tried sam in qemu with 3 sound cards

It first lets me choose which one to set up, as expected.

However my tests are otherwise inconclusive, as increasing
or decreasing the volume had no effect; even if I change the
card in use by espeaup typing ALSA_CARD=<somecard> espeakup.

@Janina: it would be interesting to know your findings with
real hardware.

Other than that:  if I increase the volume to 100% and
press Enter again the volume stays @ 100% but I hear nothing.

That's not an issue for me (I am sighted) but could confuse
a blind user, I assume. Maybe play a sound or say a warning
in this case like "already 100%" in this case?

Best,

Didier

PS I just read Chime an Jude's answers before posting. 
 

On 10/04/2019 15:22, Willem van der Walt wrote:
> Hi Didier,
> I am glad to here it works with Slint.
> About the name:
> I just had to call it something, I am open to suggestions for a better name.
> First it was console_mixer_alsa, but that was long and not too descriptive.
> Hopefully, most people would not need to install using the tar file, but perhaps I were too precise.
> https://pypi.org/project/pyalsaaudio/#files is likely enough.
> I am used to python2, but I suppose I should look into changing the code so that it can work on both.
> If there is enough interest in the program I will make time to do it.
> 
> I will see what the feedback is and let you know, but you are welcome to package whenever you want.
> Kind regards, Willem
> 
> 
> On Wed, 10 Apr 2019, Didier Spaier wrote:
> 
>> [The e-mail server of the sender could not be verified (SPF Record)]
>>
>> Hello Willem,
>>
>> sam works on Slint64-14.2.1.2 using any console screen reader. Well, at
>> least with espeakup, speechd-up and fenrir <smile>.
>>
>> I still have to test with several sound cards, will do in a qemu VM.
>>
>> Congrats!
>>
>> I will package it for Slint as soon as you tell it's ready for release.
>>
>> Some minor remarks:
>> 1. There is a software called SAM (mind the capital letters):
>> https://github.com/s-macke/SAM
>> Isn't there a risk of confusion?
>> 2. in README.md you wrote:
>>> 3. Alternatively, grab the tar.gz from https://files.pythonhosted.org/packages/52/b6/44871791929d9d7e11325af0b7be711388dfeeab17147988f044a41a6d83/pyalsaaudio-0.8.4.tar.gz
>> But there is a SHA256SUM on this page that the reader could miss:
>> https://pypi.org/project/pyalsaaudio/#files
>> Maybe it's not accessible though as it's not an hyperlink, the html code for it is the 4 following line:
>> <a class="-js-copy-hash table__sha256-link tooltipped tooltipped-s" aria-label="Copy to clipboard" data-original-label="Copy to clipboard" data-clipboard-text="84e8f8da544d7f4bd96479ce4a237600077984d9be1d7f16c1d9a492ecf50085">
>>                      <i class="fa fa-copy" aria-hidden="true"></i>
>>                      <span class="sr-only">Copy SHA256 hash</span>
>>                      SHA256
>>                    </a>
>> not sure what to do here...
>> 3. Maybe you could consider porting sam to python3? pyalsaudio can be
>> built for python3, but TBH that's all I know, I didn't try to use it so.
>>
>> Best,
>>
>> Didier
>>
>> On 10/04/2019 12:14, Willem van der Walt wrote:
>>> OK, I made the change to use python2 and uploaded again.
>>> HTH, Willem
>>>
>>>
>>> On Wed, 10 Apr 2019, Samuel Thibault wrote:
>>>
>>>> [The e-mail server of the sender could not be verified (SPF Record)]
>>>>
>>>> Chuck Hallenbeck, le mer. 10 avril 2019 05:52:15 -0400, a ecrit:
>>>>> On Wed, 10 Apr 2019, Samuel Thibault wrote:
>>>>>> Chuck Hallenbeck, le mer. 10 avril 2019 05:33:10 -0400, a ecrit:
>>>>>>> I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
>>>>>>> requirements for sam, but on first executing it, I get this:
>>>>>>>
>>>>>>> [groucho@workshop ~]$ sam
>>>>>>>   File "/usr/local/bin/sam", line 152
>>>>>>>     print ''
>>>>>>>            ^
>>>>>>> SyntaxError: Missing parentheses in call to 'print'. Did you mean
>>>>>>> print('')?
>>>>>>> [groucho@workshop ~]$
>>>>>>>
>>>>>>>
>>>>>>> Any suggestions? Looks like an interesting idea.
>>>>>>
>>>>>> This is a python2 vs python3 issue.
>>>>>>
>>>>> Okay, that's helpful. Arch names the different pythons python2 and
>>>>> python.  Not sure if debian does it that way, or calls them python and
>>>>> python3. .
>>>>
>>>> It's python (for python2) and python3 for now.
>>>> sam should use python2 explicitly until being compatible with python3
>>>> (which should probably not be very hard)
>>>>
>>>> Samuel
>>>> _______________________________________________
>>>> Speakup mailing list
>>>> Speakup@linux-speakup.org
>>>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>>>>
>>> _______________________________________________
>>> Speakup mailing list
>>> Speakup@linux-speakup.org
>>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>>>
>>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
   Speech-friendly alsa mixer (sam) released, testers needed Willem van der Walt
   ` Chuck Hallenbeck
@  ` Janina Sajka
  1 sibling, 0 replies; 25+ messages in thread
From: Janina Sajka @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Hi, Willem:

This looks really cool. It's going to take me a little time to get it
put together as I have some commitments the next couple days that will
take time. But, I wanted to acknowledge your email right away.

I will definitely follow through on this. This sounds like a really
useful tool. And, you're correct that I have a handful of devices handy!
<grin>

Best,

Janina

Willem van der Walt writes:
> So Janina, on Saturday I started writing the tool you are asking about
> below.  It works fine on the two machines I have tested on, but obviously,
> it is new code which needs more testing.
> Grab it from http://www.sanote.co.za/downloads/sam-latest.tar.bz2
> Extract: tar jxvf sam-latest.tar.bz2
> cd sam
> and read the README.md for more details.
> 
> Janina, I hope you can give it a spin as you are the person with the most
> sound devices in one machine I know about.
> I am no expert on alsa, so do not expect too much.
> Feedback is welcome.
> Kind regards, Willem
> 
> 
> On Fri, 5 Apr 2019, Janina Sajka wrote:
> 
> > [The e-mail server of the sender could not be verified (SPF Record)]
> > 
> > Hi, Glenn:
> > 
> > I'm not aware of a way to manage "all" through a single command. Maybe
> > someone has written a tool like that. Part of the problem is that each
> > sound card is different, providing more or fewer interface options. And,
> > if you have more than one card, like I do, things get even more complex.
> > 
> > Here's how to enumerate the cards you have:
> > aplay -l
> > 
> > Now, for each individual card, where x stands for the card number,  you can query available controls like so:
> > 
> > amixer -Cx controls
> > 
> > You'l find some cards have lots of controls, and others very few. If
> > you're looking only for volume, grep is your friend like so by way of
> > example:
> > 
> > amixer -c2 controls |grep -i volume
> > 
> > Of course, if you have but one card, you don't need the -c switch.
> > 
> > Now, to get the current setting for any control, again where x
> > identifies the card, and y identifies the numeric id you discovered with
> > the grep above, do like so:
> > 
> > amixer -cx cget numid=y
> > 
> > 
> > Lastly, to set the volume:
> > 
> > amixer -cx cset numid=y [value]
> > 
> > hth
> > 
> > Janina
> > 
> > Glenn At Home writes:
> > > Hi,
> > > I'm reading the amixer manpage and I'm unclear on how to set the volume output to 100%.
> > > Is there a simple command to make sure that all is unmuted and at 100%?
> > > Thanks
> > > 
> > > 
> > > Sent From My Tabletop
> > > N0YJV   shade tree computer guy
> > > _______________________________________________
> > > Speakup mailing list
> > > Speakup@linux-speakup.org
> > > http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
> > 
> > -- 
> > 
> > Janina Sajka
> > 
> > Linux Foundation Fellow
> > Executive Chair, Accessibility Workgroup:	http://a11y.org
> > 
> > The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
> > Chair, Accessible Platform Architectures	http://www.w3.org/wai/apa
> > 
> > _______________________________________________
> > Speakup mailing list
> > Speakup@linux-speakup.org
> > http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
> > 
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup

-- 

Janina Sajka

Linux Foundation Fellow
Executive Chair, Accessibility Workgroup:	http://a11y.org

The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures	http://www.w3.org/wai/apa


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, testers needed
   ` Chuck Hallenbeck
     ` Samuel Thibault
     ` Willem van der Walt
@    ` Janina Sajka
       ` Speech-friendly alsa mixer (sam) released, another update Willem van der Walt
  2 siblings, 1 reply; 25+ messages in thread
From: Janina Sajka @  UTC (permalink / raw)
  To: Chuck Hallenbeck, Speakup is a screen review system for Linux.

Thanks, Chuck! I'm also on Arch, so you just resolved the first issue I
encountered.

Best,

Janina

Chuck Hallenbeck writes:
> Hi Willem,
> 
> I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
> requirements for sam, but on first executing it, I get this:
> 
> [groucho@workshop ~]$ sam
>   File "/usr/local/bin/sam", line 152
>     print ''
>            ^
> SyntaxError: Missing parentheses in call to 'print'. Did you mean
> print('')?
> [groucho@workshop ~]$
> 
> 
> Any suggestions? Looks like an interesting idea.
> 
> Chuck
> 
> -- 
> Here In Northeast Ohio, The Moon is Waxing Crescent (25% of Full)
> If you don't stand for something, you will fall for anything.
> Sent from Lula's missing iPhone.
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup

-- 

Janina Sajka

Linux Foundation Fellow
Executive Chair, Accessibility Workgroup:	http://a11y.org

The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures	http://www.w3.org/wai/apa


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, another update
     ` Janina Sajka
@      ` Willem van der Walt
         ` Chime Hart
                         ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Willem van der Walt @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Hi Janina and all,
I just did another update.
What happened is that when there is more than one card, the 
mixers/controls of the second /20th card would be correctly listed, but 
when grabbing its details, the program got the control by the same name 
from the default soundcard.
This last update hopefully resolvs that issue.
If you missed this Janina, the program's latest version now works on both 
python2 and 3, 3 being the default on arch.
You should therefore just need to install the latest version of 
pyalsaaudio for python3 on arch.
When installing through pip, as suggested in the readme, replace pip with 
pip3 to get the python module for python3 installed.
All testers should download again as I fixed the multiple card issue just 
before writing this email.
wget http://www.sanote.co.za/downloads/sam-latest.tar.bz2
is possibly the most painless.  Just keep in mind that wget will add a dot 
one at the end of the file if it already exists, so first delete it.
I got hold of a USB soundcard now, so can now test as I go along.
Kind regards, Willem


On Thu, 11 Apr 2019, Janina Sajka wrote:

> [The e-mail server of the sender could not be verified (SPF Record)]
>
> Thanks, Chuck! I'm also on Arch, so you just resolved the first issue I
> encountered.
>
> Best,
>
> Janina
>
> Chuck Hallenbeck writes:
>> Hi Willem,
>>
>> I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
>> requirements for sam, but on first executing it, I get this:
>>
>> [groucho@workshop ~]$ sam
>>   File "/usr/local/bin/sam", line 152
>>     print ''
>>            ^
>> SyntaxError: Missing parentheses in call to 'print'. Did you mean
>> print('')?
>> [groucho@workshop ~]$
>>
>>
>> Any suggestions? Looks like an interesting idea.
>>
>> Chuck
>>
>> --
>> Here In Northeast Ohio, The Moon is Waxing Crescent (25% of Full)
>> If you don't stand for something, you will fall for anything.
>> Sent from Lula's missing iPhone.
>> _______________________________________________
>> Speakup mailing list
>> Speakup@linux-speakup.org
>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>
> -- 
>
> Janina Sajka
>
> Linux Foundation Fellow
> Executive Chair, Accessibility Workgroup:	http://a11y.org
>
> The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
> Chair, Accessible Platform Architectures	http://www.w3.org/wai/apa
>
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, another update
       ` Speech-friendly alsa mixer (sam) released, another update Willem van der Walt
@        ` Chime Hart
           ` Willem van der Walt
         ` Chuck Hallenbeck
         ` Janina Sajka
  2 siblings, 1 reply; 25+ messages in thread
From: Chime Hart @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Well, thanks Willem, no more errors, numbers change, but I am not sure I am 
hearing a difference.  Useing up/down arrows keeps jumping among up from 84% to 
90%  while you would think it should scroll down to 0. I could probably show you 
all the controlls?
Chime


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, another update
       ` Speech-friendly alsa mixer (sam) released, another update Willem van der Walt
         ` Chime Hart
@        ` Chuck Hallenbeck
         ` Janina Sajka
  2 siblings, 0 replies; 25+ messages in thread
From: Chuck Hallenbeck @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

So, after the last update, I appear to be using python version 3, and
everything is still working fine. For arch users then, they only need to
install one item from the AUR, and that is:

python-pyalsaaudio

There is another similar wrapper, python2-pyalsaaudio,  which is not
essential for arch users, now that the new release of sam defaults to
python3.

Nice work, Willem.

Chuck


-- 
Here In Northeast Ohio, The Moon is Waxing Crescent (38% of Full)
If you don't stand for something, you will fall for anything.
Sent from Dale's missing iPhone.

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, another update
         ` Chime Hart
@          ` Willem van der Walt
             ` Chime Hart
  0 siblings, 1 reply; 25+ messages in thread
From: Willem van der Walt @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Chime, just to make sure.
If e.g. on "playback volume down from 90 percent", you must press enter.
Then, if you read the line you are on, it should say something like:
"playback volume down from 85 percent"
If you press enter again and read the line you are on again, the 85 
should change to something like 80.

If you do this on the Master control of the card your speakup talks 
through, you should hear speakup go softer.
By the way, could you try that Bass control again on the soundblaster 
card?
I need to go to sleep now, but I will be working more on this over the 
weekend.
I am rewriting some of the code to handle the case where there are both 
playback and capture volumes.
Regards, Willem

On Thu, 11 Apr 2019, Chime Hart wrote:

> [The e-mail server of the sender could not be verified (SPF Record)]
>
> Well, thanks Willem, no more errors, numbers change, but I am not sure I am 
> hearing a difference.  Useing up/down arrows keeps jumping among up from 84% 
> to 90%  while you would think it should scroll down to 0. I could probably 
> show you all the controlls?
> Chime
>
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, another update
           ` Willem van der Walt
@            ` Chime Hart
               ` Didier Spaier
  0 siblings, 1 reply; 25+ messages in thread
From: Chime Hart @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Sure I will try again, but slight clarification, I am running Speakup in a 
DecTalk U S B, so not software speech. I was running tests while playing an mp3. 
Really though it would be much easier once you are in a setting to be able to 
completely change from 0-100 without hitting enter each time.
OK, just tried another card, was able to ajust from 100% down to 94% but it 
takes alternating among enter-and-arrowing down twice.
After you rest, I will be happy2test more.
Chime


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, another update
             ` Chime Hart
@              ` Didier Spaier
  0 siblings, 0 replies; 25+ messages in thread
From: Didier Spaier @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux., Chime Hart

Howdy Chime,

I assume that in the distribution you use all speakup drivers are shipped as module, right?

Then do you still you need to include a kernel parameter for your DecTalk  (or does udev take care of loading the module as the device is connected through USB?) and then which one?

I ask as in Slint do far we use a kernel with all speakup drivers built in, but I plan to switch to modules instead and need to provide instructions to hard synths users accordingly.

Currently they would include e.g. speakup.synth=dectalk

Best,

Didier

On 11/04/2019 22:29, Chime Hart wrote:
> Sure I will try again, but slight clarification, I am running Speakup in a DecTalk U S B, so not software speech. I was running tests while playing an mp3. Really though it would be much easier once you are in a setting to be able to completely change from 0-100 without hitting enter each time.
> OK, just tried another card, was able to ajust from 100% down to 94% but it takes alternating among enter-and-arrowing down twice.
> After you rest, I will be happy2test more.
> Chime
> 
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
> 

^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, another update
       ` Speech-friendly alsa mixer (sam) released, another update Willem van der Walt
         ` Chime Hart
         ` Chuck Hallenbeck
@        ` Janina Sajka
           ` Willem van der Walt
  2 siblings, 1 reply; 25+ messages in thread
From: Janina Sajka @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Hi, Willem:

Got it working now on Arch.

I was a bit befuddled at first with the 5 sound cards presented by
arrowing on the first screen. I got, pch, device, hedset av710, and
lastly UR22mkII.

It took a minute to grok that pch was the builtin Intel810, and that
Device was my CE-Media USB "device." Maybe it's just a first time
reaction, but I was wondering about numbering them? Not suggesting that,
just thinking aloud at this point.

I did come upon an error that I should explain before posting the
output.

I have a sixth card present that has not been working with recent
kernels. It's my original RME Multiface that I've had for some 15 years
now. I'm not sure why alsa sometimes sees it, and sometimes doesn't.
lspci lists it, but also currently doesn't see it. It's defined as card
4 in /etc/modprobe.d/alsa.conf.

The sixth card is showing up in sam as the fifth, the Yamaha UR22mkII
which is defined as hw:5 in alsa.conf.  Selecting it gets:

Traceback (most recent call last):
  File "/usr/local/bin/sam", line 206, in <module>
      mixers=alsaaudio.mixers(card)
      alsaaudio.ALSAAudioError: No such file or directory [hw:4]

So, what I'm surmising is that any of my 3 USB audio cards, if pulled,
might similarly confuse things. I'll plan on testing this. At the moment
getting at "Device" and "Headset" to do the test is physically awkward.

Best,

Janina


Willem van der Walt writes:
> Hi Janina and all,
> I just did another update.
> What happened is that when there is more than one card, the mixers/controls
> of the second /20th card would be correctly listed, but when grabbing its
> details, the program got the control by the same name from the default
> soundcard.
> This last update hopefully resolvs that issue.
> If you missed this Janina, the program's latest version now works on both
> python2 and 3, 3 being the default on arch.
> You should therefore just need to install the latest version of pyalsaaudio
> for python3 on arch.
> When installing through pip, as suggested in the readme, replace pip with
> pip3 to get the python module for python3 installed.
> All testers should download again as I fixed the multiple card issue just
> before writing this email.
> wget http://www.sanote.co.za/downloads/sam-latest.tar.bz2
> is possibly the most painless.  Just keep in mind that wget will add a dot
> one at the end of the file if it already exists, so first delete it.
> I got hold of a USB soundcard now, so can now test as I go along.
> Kind regards, Willem
> 
> 
> On Thu, 11 Apr 2019, Janina Sajka wrote:
> 
> > [The e-mail server of the sender could not be verified (SPF Record)]
> > 
> > Thanks, Chuck! I'm also on Arch, so you just resolved the first issue I
> > encountered.
> > 
> > Best,
> > 
> > Janina
> > 
> > Chuck Hallenbeck writes:
> > > Hi Willem,
> > > 
> > > I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
> > > requirements for sam, but on first executing it, I get this:
> > > 
> > > [groucho@workshop ~]$ sam
> > >   File "/usr/local/bin/sam", line 152
> > >     print ''
> > >            ^
> > > SyntaxError: Missing parentheses in call to 'print'. Did you mean
> > > print('')?
> > > [groucho@workshop ~]$
> > > 
> > > 
> > > Any suggestions? Looks like an interesting idea.
> > > 
> > > Chuck
> > > 
> > > --
> > > Here In Northeast Ohio, The Moon is Waxing Crescent (25% of Full)
> > > If you don't stand for something, you will fall for anything.
> > > Sent from Lula's missing iPhone.
> > > _______________________________________________
> > > Speakup mailing list
> > > Speakup@linux-speakup.org
> > > http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
> > 
> > -- 
> > 
> > Janina Sajka
> > 
> > Linux Foundation Fellow
> > Executive Chair, Accessibility Workgroup:	http://a11y.org
> > 
> > The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
> > Chair, Accessible Platform Architectures	http://www.w3.org/wai/apa
> > 
> > _______________________________________________
> > Speakup mailing list
> > Speakup@linux-speakup.org
> > http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
> > 
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup

-- 

Janina Sajka

Linux Foundation Fellow
Executive Chair, Accessibility Workgroup:	http://a11y.org

The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures	http://www.w3.org/wai/apa


^ permalink raw reply	[flat|nested] 25+ messages in thread

* Re: Speech-friendly alsa mixer (sam) released, another update
         ` Janina Sajka
@          ` Willem van der Walt
  0 siblings, 0 replies; 25+ messages in thread
From: Willem van der Walt @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Hi Janina,
Responses inline below:

On Fri, 12 Apr 2019, Janina Sajka wrote:

> [The e-mail server of the sender could not be verified (SPF Record)]
>
> Hi, Willem:
>
> Got it working now on Arch.
>
> I was a bit befuddled at first with the 5 sound cards presented by
> arrowing on the first screen. I got, pch, device, hedset av710, and
> lastly UR22mkII.
>
> It took a minute to grok that pch was the builtin Intel810, and that
> Device was my CE-Media USB "device." Maybe it's just a first time
> reaction, but I was wondering about numbering them? Not suggesting that,
> just thinking aloud at this point.
My feeling is that one should try to stay away from displaying things like 
the card index number by default.
If one finds that two cards has the same name, e.g. pch occurs twice, we 
must do something though.
There is a long name, but that seem to have no fixed format and includes 
stuff like pci address, IRQ etc.
That, again is too much.
Maybe some way of querying the long name with a keypress?

>
> I did come upon an error that I should explain before posting the
> output.
>
> I have a sixth card present that has not been working with recent
> kernels. It's my original RME Multiface that I've had for some 15 years
> now. I'm not sure why alsa sometimes sees it, and sometimes doesn't.
> lspci lists it, but also currently doesn't see it. It's defined as card
> 4 in /etc/modprobe.d/alsa.conf.
>
> The sixth card is showing up in sam as the fifth, the Yamaha UR22mkII
> which is defined as hw:5 in alsa.conf.  Selecting it gets:
>
> Traceback (most recent call last):
>  File "/usr/local/bin/sam", line 206, in <module>
>      mixers=alsaaudio.mixers(card)
>      alsaaudio.ALSAAudioError: No such file or directory [hw:4]
The best I can promis you here is a nicer error message so that the 
program does at least not crash.
What I have added, are tests to try and handle coming and going cards 
better.

>
> So, what I'm surmising is that any of my 3 USB audio cards, if pulled,
> might similarly confuse things. I'll plan on testing this. At the moment
> getting at "Device" and "Headset" to do the test is physically awkward.
The tests I added should allow you to plug and unplug USB cards.
Obviously, If one is working on a control of a card and unplug it when 
busy with that, you will get an error, but I hope the program does not 
crash then.
Kind Regards, Willem >
> Best,
>
> Janina
>
>
> Willem van der Walt writes:
>> Hi Janina and all,
>> I just did another update.
>> What happened is that when there is more than one card, the mixers/controls
>> of the second /20th card would be correctly listed, but when grabbing its
>> details, the program got the control by the same name from the default
>> soundcard.
>> This last update hopefully resolvs that issue.
>> If you missed this Janina, the program's latest version now works on both
>> python2 and 3, 3 being the default on arch.
>> You should therefore just need to install the latest version of pyalsaaudio
>> for python3 on arch.
>> When installing through pip, as suggested in the readme, replace pip with
>> pip3 to get the python module for python3 installed.
>> All testers should download again as I fixed the multiple card issue just
>> before writing this email.
>> wget http://www.sanote.co.za/downloads/sam-latest.tar.bz2
>> is possibly the most painless.  Just keep in mind that wget will add a dot
>> one at the end of the file if it already exists, so first delete it.
>> I got hold of a USB soundcard now, so can now test as I go along.
>> Kind regards, Willem
>>
>>
>> On Thu, 11 Apr 2019, Janina Sajka wrote:
>>
>>> [The e-mail server of the sender could not be verified (SPF Record)]
>>>
>>> Thanks, Chuck! I'm also on Arch, so you just resolved the first issue I
>>> encountered.
>>>
>>> Best,
>>>
>>> Janina
>>>
>>> Chuck Hallenbeck writes:
>>>> Hi Willem,
>>>>
>>>> I am using arch, and had to use pyalsaaudio from the AUR to satisfy the
>>>> requirements for sam, but on first executing it, I get this:
>>>>
>>>> [groucho@workshop ~]$ sam
>>>>   File "/usr/local/bin/sam", line 152
>>>>     print ''
>>>>            ^
>>>> SyntaxError: Missing parentheses in call to 'print'. Did you mean
>>>> print('')?
>>>> [groucho@workshop ~]$
>>>>
>>>>
>>>> Any suggestions? Looks like an interesting idea.
>>>>
>>>> Chuck
>>>>
>>>> --
>>>> Here In Northeast Ohio, The Moon is Waxing Crescent (25% of Full)
>>>> If you don't stand for something, you will fall for anything.
>>>> Sent from Lula's missing iPhone.
>>>> _______________________________________________
>>>> Speakup mailing list
>>>> Speakup@linux-speakup.org
>>>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>>>
>>> --
>>>
>>> Janina Sajka
>>>
>>> Linux Foundation Fellow
>>> Executive Chair, Accessibility Workgroup:	http://a11y.org
>>>
>>> The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
>>> Chair, Accessible Platform Architectures	http://www.w3.org/wai/apa
>>>
>>> _______________________________________________
>>> Speakup mailing list
>>> Speakup@linux-speakup.org
>>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>>>
>> _______________________________________________
>> Speakup mailing list
>> Speakup@linux-speakup.org
>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>
> -- 
>
> Janina Sajka
>
> Linux Foundation Fellow
> Executive Chair, Accessibility Workgroup:	http://a11y.org
>
> The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
> Chair, Accessible Platform Architectures	http://www.w3.org/wai/apa
>
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 Speech-friendly alsa mixer (sam) released, testers needed Willem van der Walt
 ` Chuck Hallenbeck
   ` Samuel Thibault
     ` Chuck Hallenbeck
       ` Samuel Thibault
         ` Willem van der Walt
           ` Didier Spaier
             ` Willem van der Walt
               ` Didier Spaier
       ` Willem van der Walt
   ` Willem van der Walt
     ` Chuck Hallenbeck
       ` Willem van der Walt
         ` Chuck Hallenbeck
           ` Willem van der Walt
   ` Janina Sajka
     ` Speech-friendly alsa mixer (sam) released, another update Willem van der Walt
       ` Chime Hart
         ` Willem van der Walt
           ` Chime Hart
             ` Didier Spaier
       ` Chuck Hallenbeck
       ` Janina Sajka
         ` Willem van der Walt
 ` Speech-friendly alsa mixer (sam) released, testers needed Janina Sajka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).