discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Audio Sample rate problem


From: Bob McGwier
Subject: Re: [Discuss-gnuradio] Audio Sample rate problem
Date: Wed, 08 Jul 2009 09:38:58 -0400
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

In gnuradio-examples/python/audio there is a completely worked out example block to do EXACTLY what was requested, go to and from 32000 and 48000. It is good practice to look in the examples directory because with very high probability, the developers who check stuff in have faced the kinds of problems you want to tackle. Ask after you have looked there.

In this case it is test_resampler.py

It does a PERFECT 3/2 polyphase resampling ( and back 2/3) since that is a rational fraction, not an approximation. If you use the low_pass_2 filters, you gain better control over the number of taps required. It uses the brilliant study by fred harris of finding the minimum number of taps that will just exceed the number required to get in band ripple, transition bandwidth, and stop band rejection you are targeting.

Bob


davek wrote:
On Tue, Jul 7, 2009 at 11:20 PM, Abdalla Sokar<address@hidden> wrote:


thanx very much this way really worx and wonderfully too

--- On Wed, 7/8/09, davek <address@hidden> wrote:

From: davek <address@hidden>
Subject: Re: [Discuss-gnuradio] Audio Sample rate problem
To: "Abdalla Sokar" <address@hidden>
Date: Wednesday, July 8, 2009, 5:14 AM

i dont know much about this so it might be wrong but
if you cant figure it out you could put a fractional interpolation
filter before your audio block set to 2/3


On Tue, Jul 7, 2009 at 8:58 PM, Abdalla Sokar<address@hidden> wrote:
my audio sampling rate is 48000 not 32000 so all the the gnu examples that
output an audio dont work and due to this 48000 i cant configure the
decimation and interpolation to be even integers as required

so is there away to change sampling rate of my audio card to 32000

i am using Dell Inspiron 1525 with ubuntu 9.04 with the latest version of
GNU
and my USRP is rev 4.2

Please i need help ASAP
Thanx





reply via email to

[Prev in Thread] Current Thread [Next in Thread]