Audio Sample rate problem

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

On Tue, Jul 7, 2009 at 11:20 PM, Abdalla Sokar[email protected]
wrote:

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

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 [email protected] writes:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs