Monday, August 26, 2019

Re: [Discuss-gnuradio] unable to get sound from alsa sink

Hi Chris,

You might try 'pavucontrol' as suggested to me by Kyeong Su Shin. Since
you are operating outside the GRC environment, it might help. Also, I
would compare the Python code generated by GRC with your modified code
to see areas which address the audio.

Good luck,
---
Barry Duggan


On 2019-08-26 10:30, Chris Gorman wrote:
> Hi Barry,
>
> Thanks for your time and expertise. I should have been more verbose
> in my email. I can get sound out of my code when I use the
> gnuradio-companion program, but not when I run the snippet I gave you.
> The purpose of the hacked code is to try to tie a 4x4 Qt.PushButton to
> the various frequencies needed to make a Touch tone generator. (I
> currently have it working with radio buittons, through
> gnuraidio-companion, but want to use Qt.PushButtons instead.) I tried
> your suggestion and can get the sound working, but not outside of grc.
>
> I am using gnuradio-companion 3.7.13.5 on ubuntu 18.04. aplay -L
> gives me lots of options but the one that appears to be default is...
>
> sysdefault:CARD=Intel
> HDA Intel, STAC9221 A1 Analog
> Default Audio Device
>
> I'm wondering if this is a sound system permission issue?
>
> Thanks for your help.
>
> Chris
>
>
> Chris
>
> On Mon, Aug 26, 2019 at 9:36 AM Barry Duggan <barry@dcsmail.net> wrote:
>>
>> Hi Chris,
>>
>> You didn't mention your OS or your platform, but this works for a
>> Linux
>> system:
>>
>> Using a terminal screen, enter 'aplay -L'
>>
>> Here is an excerpt from my Raspberry Pi:
>>
>> """
>> default:CARD=ALSA
>> bcm2835 ALSA, bcm2835 ALSA
>> Default Audio Device
>> hw:CARD=ALSA,DEV=1
>> bcm2835 ALSA, bcm2835 IEC958/HDMI
>> Direct hardware device without any conversions
>> hw:CARD=Device,DEV=0
>> USB Audio Device, USB Audio
>> Direct hardware device without any conversions
>> """
>>
>> The Pi has a headphone jack, an HDMI port, and I have a USB audio
>> dongle. What you need to do is pick the appropriate entry for your
>> system, and the enter the Device Name in the Audio Sink properties.
>> For
>> example, I use "hw:CARD=ALSA,DEV=1" to get sound on my monitor.
>>
>> On Windows or Mac, you might just enter "default:CARD=ALSA".
>>
>> Good luck,
>> --
>> Barry Duggan
>>
>> On Sun, 25 Aug 2019 17:27:31 -0400, Chris Gorman wrote:
>>
>> Hello All,
>>
>> I have been hacking at a python script with an attempt to pass two
>> frequencies to be added to audio sink. I can't seem to get any sound
>> out of the sound card, though. When I run the script I get "gr::log
>> :INFO: audio source - Audio sink arch: alsa". The script follows. My
>> python and QT skills are very poor, I simply started with
>> gnuradio-companion code and tried to hack the result. Can anyone see
>> where I might fix this?
>>
>> Thanks in advance.
>>
>> Chris
>>
>> <snip>

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

No comments:

Post a Comment