Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails
48000 did the trick. The program now works. Many thanks. Al Vinegar - Original Message - From: "Scott Storck" To: "Allen Vinegar" Sent: Monday, November 08, 2010 7:58 PM Subject: Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails I ran into the same problem, but I can't remember exactly how I solved it. I think initially I was able to get it working using 48000 as the sample rate, so you might try that value. On 11/8/10, Allen Vinegar wrote: I tried changing the sampling rate to 44100 and tried using plughw and I get the following results: The following is with plughw: audio_alsa_sink[plughw:0,0]: set_period_time_near failed: Invalid argument Traceback (most recent call last): File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", line 120, in tb = dial_tone() File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", line 85, in __init__ self.audio_sink = audio.sink(44100, "plughw:0,0", True) File "/usr/local/lib/python2.6/dist-packages/gnuradio/audio_alsa.py", line 321, in sink return _audio_alsa.sink(*args, **kwargs) RuntimeError: audio_alsa_sink The following is without plugw: audio_alsa_sink[hw:0,0]: set_period_time_near failed: Invalid argument Traceback (most recent call last): File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", line 120, in tb = dial_tone() File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", line 85, in __init__ self.audio_sink = audio.sink(44100, "", True) File "/usr/local/lib/python2.6/dist-packages/gnuradio/audio_alsa.py", line 321, in sink return _audio_alsa.sink(*args, **kwargs) RuntimeError: audio_alsa_sink What do I try next? Many thanks, Al Vinegar - Original Message ----- From: "Marcus D. Leech" To: Sent: Sunday, November 07, 2010 10:15 PM Subject: Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails On 11/07/2010 10:02 PM, Josh Blum wrote: So, from what I gather, you build and ran 3.2.2 and dial tone worked fine. However, building and running dial done on the next branch gives you the following error? audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000 card requested 44100 instead. Maybe the underlying implementation of the alsa sink changed from 3.2.2 to next? Anybody aware of this? Take a look at the docs in the Audio sink block, I think there is a note to enable the resampler, or just pick a sample rate that your sound card agrees with. -josh When I use alsa audio, I generally use the "plughw" device, which does resampling. This didn't work for a while on some Fedora distributions a couple of releases back, but I recall that a system update corrected it. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio -- Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails
I tried changing the sampling rate to 44100 and tried using plughw and I get the following results: The following is with plughw: audio_alsa_sink[plughw:0,0]: set_period_time_near failed: Invalid argument Traceback (most recent call last): File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", line 120, in tb = dial_tone() File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", line 85, in __init__ self.audio_sink = audio.sink(44100, "plughw:0,0", True) File "/usr/local/lib/python2.6/dist-packages/gnuradio/audio_alsa.py", line 321, in sink return _audio_alsa.sink(*args, **kwargs) RuntimeError: audio_alsa_sink The following is without plugw: audio_alsa_sink[hw:0,0]: set_period_time_near failed: Invalid argument Traceback (most recent call last): File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", line 120, in tb = dial_tone() File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", line 85, in __init__ self.audio_sink = audio.sink(44100, "", True) File "/usr/local/lib/python2.6/dist-packages/gnuradio/audio_alsa.py", line 321, in sink return _audio_alsa.sink(*args, **kwargs) RuntimeError: audio_alsa_sink What do I try next? Many thanks, Al Vinegar - Original Message - From: "Marcus D. Leech" To: Sent: Sunday, November 07, 2010 10:15 PM Subject: Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails On 11/07/2010 10:02 PM, Josh Blum wrote: So, from what I gather, you build and ran 3.2.2 and dial tone worked fine. However, building and running dial done on the next branch gives you the following error? audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000 card requested 44100 instead. Maybe the underlying implementation of the alsa sink changed from 3.2.2 to next? Anybody aware of this? Take a look at the docs in the Audio sink block, I think there is a note to enable the resampler, or just pick a sample rate that your sound card agrees with. -josh When I use alsa audio, I generally use the "plughw" device, which does resampling. This didn't work for a while on some Fedora distributions a couple of releases back, but I recall that a system update corrected it. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio -- Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails
On 11/07/2010 10:02 PM, Josh Blum wrote: > So, from what I gather, you build and ran 3.2.2 and dial tone worked > fine. However, building and running dial done on the next branch gives > you the following error? > >> >> audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000 >> >> card requested 44100 instead. >> > > Maybe the underlying implementation of the alsa sink changed from > 3.2.2 to next? Anybody aware of this? > > Take a look at the docs in the Audio sink block, I think there is a > note to enable the resampler, or just pick a sample rate that your > sound card agrees with. > > -josh When I use alsa audio, I generally use the "plughw" device, which does resampling. This didn't work for a while on some Fedora distributions a couple of releases back, but I recall that a system update corrected it. > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > -- Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Dial tone under GNU Radio Companion fails
So, from what I gather, you build and ran 3.2.2 and dial tone worked fine. However, building and running dial done on the next branch gives you the following error? audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000 card requested 44100 instead. Maybe the underlying implementation of the alsa sink changed from 3.2.2 to next? Anybody aware of this? Take a look at the docs in the Audio sink block, I think there is a note to enable the resampler, or just pick a sample rate that your sound card agrees with. -josh ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Dial tone under GNU Radio Companion fails
I have installed GNU radio and UHD as per instruction of Marc Epard (3Aug). I am running UBUNTU 10.04. When running GNU Radio Companion and trying to run the dial tone example I get the following output on the terminal with failure of the program to run. When using the 3.2.2 version of GNU Radio and invoking GRC the program ran fine. I am "GNUbee" and would appreciate help with this problem. Thank you, Al Vinegar a...@ubuntu:~$ gnuradio-companion <<< Welcome to GNU Radio Companion v3.3.1git-196-g2aef0484 >>> Loading: "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.grc" >>> Done Showing: "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.grc" ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed Generating: "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py" ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed Executing: "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py" ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed audio_alsa_sink[hw:0,0]: unable to support sampling rate 32000 card requested 44100 instead. ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed audio_alsa_sink[hw:0,0]: set_period_time_near failed: Invalid argument ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed Traceback (most recent call last): File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", line 120, in tb = dial_tone() File "/home/al/gnuradio-uhd/gnuradio/gnuradio-examples/grc/audio/dial_tone.py", line 85, in __init__ self.audio_sink = audio.sink(32000, "", True) File "/usr/local/lib/python2.6/dist-packages/gnuradio/audio_alsa.py", line 321, in sink ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed return _audio_alsa.sink(*args, **kwargs) RuntimeError: audio_alsa_sink ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed >>> Done ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed ** (gnuradio-companion:22602): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failed a...@ubuntu:~$ ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio