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: Oswald Berthold
Subject: Re: [Discuss-gnuradio] Audio Sample rate problem
Date: Sat, 11 Jul 2009 13:24:03 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

for future searches and in case it's linux, i did this when i bumped
into the same problem a while ago:

$ cat ~/.asoundrc 
pcm.rate_convert {
    type plug
    slave {
        pcm "hw:0,0"
        rate 32000
    }
}


bst, opt

Bob McGwier <address@hidden> writes:

> 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
>>>>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

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