Re: [Discuss-gnuradio] How to specify Audio Source device_name?

2016-09-23 Thread Paul Zander
So HW:1,0 does work on a "sink". Possibly, the documentation was just copied 
over to source, but maybe not actually implemented yet...  If so, that should 
be on the bug list.

BTW, my signals happen to be of audio frequency range, but not really sounds.
I was hoping that I could eventually have one source using "HW:1,0" and another 
"HW:2,0", HW:3,0 ... to have multiple inputs without having to buy a sound card 
with several  "stereo microphone" inputs.   

For now, my one channel input is working very well.

  From: Cinaed Simson <cinaed.sim...@gmail.com>
 To: GNURadio Discussion List <discuss-gnuradio@gnu.org> 
 Sent: Friday, September 23, 2016 12:56 PM
 Subject: Re: [Discuss-gnuradio] How to specify Audio Source device_name?
   
On 09/22/2016 12:06 PM, Paul Zander wrote:
> Problem solved.  I used the Sound GUI under the Settingsmenu to select
> the audio source.  
> I am not sure if that is PulseAudio, but the selections and gain
> settings do work.
> 
> I even found that I could switch the device while the flowgraph was running.
> 
> That said, I am puzzled about the intended usage of HW:1,0 and and
> similar device names.

It occurred to me last night where hw:1,0 is used - it can be used as
the device in the audio sink in grc.

I just tried it and it works.


> Suppose I create |~/.asoundrc |following the instructions at:
>  http://gnuradio.org/redmine/projects/gnuradio/wiki/ALSAPulseAudio
> |
> |
> |Then should I be able to specify the device name in GRC
> |
> |and not have to rely on the audio setings?
> |
> 
> 
> On 09/21/2016 12:40 PM,Cinaed Simson wrote:
>>
>> On 09/21/2016 09:40 AM, Paul Zander wrote:
>>> Cinaed,
>>>
>>> Your suggestion about testing the audio suggested an new experiment that
>>> may be a work-around.
>>>
>>> With Settings >> Sound >> Input >> Internal Microphone,  my GRC with (QT
>>> GUI Time Sink) shows a signal that responds to the internal microphone.
>>> Speaking or clapping hands causes a response on the graph.
>>>
>>> When I change the Input to Microphone, USB Audio Device, and re-execute
>>> the flowgraph,  the signal is very small and does not respond to
>>> sounds.  Maybe Audio Source only works with the default input from the
>>> system.
>>
>> Use the PulseAudio Volume control to turn up the volume on the input
>> device. You can find the find the input device under Inputs.


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


   ___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] How to specify Audio Source device_name?

2016-09-23 Thread Cinaed Simson
On 09/22/2016 12:06 PM, Paul Zander wrote:
> Problem solved.  I used the Sound GUI under the Settingsmenu to select
> the audio source.  
> I am not sure if that is PulseAudio, but the selections and gain
> settings do work.
> 
> I even found that I could switch the device while the flowgraph was running.
> 
> That said, I am puzzled about the intended usage of HW:1,0 and and
> similar device names.

It occurred to me last night where hw:1,0 is used - it can be used as
the device in the audio sink in grc.

I just tried it and it works.


> Suppose I create |~/.asoundrc |following the instructions at:
>   http://gnuradio.org/redmine/projects/gnuradio/wiki/ALSAPulseAudio
> |
> |
> |Then should I be able to specify the device name in GRC
> |
> |and not have to rely on the audio setings?
> |
> 
> 
> On 09/21/2016 12:40 PM,Cinaed Simson wrote:
>>
>> On 09/21/2016 09:40 AM, Paul Zander wrote:
>>> Cinaed,
>>>
>>> Your suggestion about testing the audio suggested an new experiment that
>>> may be a work-around.
>>>
>>> With Settings >> Sound >> Input >> Internal Microphone,  my GRC with (QT
>>> GUI Time Sink) shows a signal that responds to the internal microphone.
>>> Speaking or clapping hands causes a response on the graph.
>>>
>>> When I change the Input to Microphone, USB Audio Device, and re-execute
>>> the flowgraph,  the signal is very small and does not respond to
>>> sounds.  Maybe Audio Source only works with the default input from the
>>> system.
>>
>> Use the PulseAudio Volume control to turn up the volume on the input
>> device. You can find the find the input device under Inputs.


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] How to specify Audio Source device_name?

2016-09-22 Thread Cinaed Simson
On 09/22/2016 12:06 PM, Paul Zander wrote:
> Problem solved.  I used the Sound GUI under the Settingsmenu to select
> the audio source.  
> I am not sure if that is PulseAudio, but the selections and gain
> settings do work.
> 
> I even found that I could switch the device while the flowgraph was running.
> 
> That said, I am puzzled about the intended usage of HW:1,0 and and
> similar device names.
> Suppose I create |~/.asoundrc |following the instructions at:
>   http://gnuradio.org/redmine/projects/gnuradio/wiki/ALSAPulseAudio
> |
> |
> |Then should I be able to specify the device name in GRC
> |
> |and not have to rely on the audio setings?
> |
> 

Under Debian, the pulseaudio server is started in the daemon mode on
system startup - it takes control of all audio devices.

If you're running Ubuntu which is a fork of Debian, it should behave in
a manner, i.e., you have to use pulseaudio to use alsa device drivers.

I presume the syntax hw:1,0 is for alsa - although I've never seen it
displayed by aplay/arecord - but then I've always used pulseaudio.

And yes, under Find PulseAudio monitors

 http://gnuradio.org/redmine/projects/gnuradio/wiki/ALSAPulseAudio

should work as long as there is alsa monitor entry for the USB device.

I've never tried it.

-- Cinaed

> 
> On 09/21/2016 12:40 PM,Cinaed Simson wrote:
>>
>> On 09/21/2016 09:40 AM, Paul Zander wrote:
>>> Cinaed,
>>>
>>> Your suggestion about testing the audio suggested an new experiment that
>>> may be a work-around.
>>>
>>> With Settings >> Sound >> Input >> Internal Microphone,  my GRC with (QT
>>> GUI Time Sink) shows a signal that responds to the internal microphone.
>>> Speaking or clapping hands causes a response on the graph.
>>>
>>> When I change the Input to Microphone, USB Audio Device, and re-execute
>>> the flowgraph,  the signal is very small and does not respond to
>>> sounds.  Maybe Audio Source only works with the default input from the
>>> system.
>>
>> Use the PulseAudio Volume control to turn up the volume on the input
>> device. You can find the find the input device under Inputs.


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] How to specify Audio Source device_name?

2016-09-22 Thread Paul Zander
Problem solved.  I used the Sound GUI under the Settingsmenu to select the 
audio source.   
I am not sure if that is PulseAudio, but the selections and gain settings do 
work.

I even found that I could switch the device while the flowgraph was running.
That said, I am puzzled about the intended usage of HW:1,0 and and similar 
device names.Suppose I create ~/.asoundrc following the instructions at:  
http://gnuradio.org/redmine/projects/gnuradio/wiki/ALSAPulseAudio 

Then should I be able to specify the device name in GRC 
and not have to rely on the audio setings?


On 09/21/2016 12:40 PM,Cinaed Simson wrote:
>
> On 09/21/2016 09:40 AM, Paul Zander wrote:
>> Cinaed,
>>
>> Your suggestion about testing the audio suggested an new experiment that
>> may be a work-around.
>>
>> With Settings >> Sound >> Input >> Internal Microphone,  my GRC with (QT
>> GUI Time Sink) shows a signal that responds to the internal microphone.
>> Speaking or clapping hands causes a response on the graph.
>>
>> When I change the Input to Microphone, USB Audio Device, and re-execute
>> the flowgraph,  the signal is very small and does not respond to
>> sounds.  Maybe Audio Source only works with the default input from the
>> system.
>
> Use the PulseAudio Volume control to turn up the volume on the input
> device. You can find the find the input device under Inputs.
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] How to specify Audio Source device_name?

2016-09-21 Thread Cinaed Simson
On 09/21/2016 09:40 AM, Paul Zander wrote:
> Cinaed,
> 
> Your suggestion about testing the audio suggested an new experiment that
> may be a work-around.
> 
> With Settings >> Sound >> Input >> Internal Microphone,  my GRC with (QT
> GUI Time Sink) shows a signal that responds to the internal microphone. 
> Speaking or clapping hands causes a response on the graph.
> 
> When I change the Input to Microphone, USB Audio Device, and re-execute
> the flowgraph,  the signal is very small and does not respond to
> sounds.   Maybe Audio Source only works with the default input from the
> system. 

Use the PulseAudio Volume control to turn up the volume on the input
device. You can find the find the input device under Inputs.

> 
> See additional comments below.
> 
>>On 9/21/2016 1:22 AM  Cinaed Simson wrote:
>>
>>> On 09/20/2016 11:23 PM, Paul Zander wrote:
>>
>>> My problem needs to use an external signal as the Audio Source. GNURadio
>>> defaults to using the microphone in the laptop. I added an external
>>> USB/audio device to connect the external signal.
>>>
>>> downloaded ubuntu-14.04.5-desktop-amd64-gnuradio-3.7.10.1.iso and am
>> running it “live” off a USB stick.
>>
>>Type
>>
>>  groups
>>
>>You should be member of pulse, pulse-access, and audio at the minimum.
> 
> Ah, exactly where am I supposed to type "groups"?
> 
> Am I being naive to expect that a live distribution named gnuradio
> would have all of the required dependencies?
> 
>>>
>>> When the USB dongle is installed,
>>> `arecord -l`
>>...
>>>The specific audio device to use can be specified as the device_name
>>>parameter. Typical choices are:
>>>- pulse, hw:0,0, plughw:0,0, surround51, /dev/dsp
>>>
>>>
>>
>>Are hw:1,0 or plughw:1,0 ones you thought of?
> 
> Yes. Those were my first choices.
> 
> 
>>In any case, pulseaudio is probably controlling the device. Under
>>Multimedia, start PulseAudio Volume Control and click on the device it
>>displays and it should drop down a menu with both devices. Select the
>>device you want.
>>
>>Confirm the device actually works.
>>
> 
> I am running ubuntu-14.04.5-desktop-amd64-gnuradio-3.7.10.1.iso
> There is no "Multimedia", but under system settings, there is "Sound"
> It shows the USB Audio Device (when it is plugged in).
> 
> 
> 


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] How to specify Audio Source device_name?

2016-09-21 Thread Cinaed Simson
On 09/20/2016 11:23 PM, Paul Zander wrote:
> First, I want to thank the group for the wonderful tutorials on GNU
> Radio Companion.
> 
> My problem needs to use an external signal as the Audio Source. GNURadio
> defaults to using the microphone in the laptop. I added an external
> USB/audio device to connect the external signal.
> 
> After unsuccessfully trying several other ways to run GNUradio, I
> downloaded ubuntu-14.04.5-desktop-amd64-gnuradio-3.7.10.1.iso and am
> running it “live” off a USB stick.

Type

  groups

You should be member of pulse, pulse-access, and audio at the minimum.

> 
> When the USB dongle is installed,
> `arecord -l`
> 
> ...
> card 1: Device [C-Media USB Audio Device], device 0: USB Audio [USB
> Audio]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> 
> Also there is a device /dev/hidraw1.
> 
> So the system recognizes the device when it is present.
> 
> The documentation for Audio Source says:
> 
> The specific audio device to use can be specified as the device_name
> parameter. Typical choices are:
> - pulse, hw:0,0, plughw:0,0, surround51, /dev/dsp
> 
> 
> Well, I have tried every variation of the above I and think of. No entry
> and “pulse” use the internal microphone. Everything else returns:
> RuntimeError: audio_alsa_source

Are hw:1,0 or plughw:1,0 ones you thought of?

In any case, pulseaudio is probably controlling the device. Under
Multimedia, start PulseAudio Volume Control and click on the device it
displays and it should drop down a menu with both devices. Select the
device you want.

Confirm the device actually works.

> 
> I repeated the identical results on a different computer running Debian
> testing (aka squeeze) and GRC 3.7.10
> 
> Google could not find any helpful information for this error message.
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio