discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Re: Creatihg data for ayfabtu?


From: Charles Swiger
Subject: Re: [Discuss-gnuradio] Re: Creatihg data for ayfabtu?
Date: Mon, 30 Jan 2006 09:25:01 -0500

On Fri, 2006-01-27 at 11:30 -0800, Matt Ettus wrote:
> > Is there a magic sox incantation (or other tool) to convert, say, a .wav
> > file into the raw format that gr.file_source can read?
> 
> use gnuradio-examples/python/audio/audio_to_file.py and make sure to use
> the right sample rate (32k I think)
> 

The gnuradio "short" is called "signed word" in audioese, sox uses *.sw
or -s -w

sox audio.wav -r 32000 -c 1 audio.sw

will convert a wav file to 32khz single channel signed word you can
open with src = gr.file_source(gr.sizeof_short,"audio.sw").

--Chuck






reply via email to

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