[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Audio Sample Rate Solution
From: |
Richard Jaeger |
Subject: |
[Discuss-gnuradio] Audio Sample Rate Solution |
Date: |
Sat, 1 Mar 2008 12:25:15 -0600 |
I have finally found a simple solution to my audio sample rate issue.
I stumbled across test_resampler.py in the audio examples
and there found the rational resampler block.
rr = blks2.rational_resampler_fff(interp, decim)
The following clears up the audio sample rate problem for the examples
that decimate to a 32 kS/s rate by resampling to 48 kS/s.
interp = 3
decim = 2
rr = blks2.rational_resampler_fff(interp, decim)
audio_rate = audio_rate*interp/decim
Then add rr to the connection graph.
self.connect(... self.volume_control, rr, audio_sink)
An alternative kluge that was working was to change the three
decimation rates in the (AM/FM/NBFM) examples to 222/1/6 which results
in
an audio rate of 48048 which was close enough to 48000 to sound ok.
Dick...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Discuss-gnuradio] Audio Sample Rate Solution,
Richard Jaeger <=