You can prepare a raw file from a regular Windows WAV file using the SOX
utility (http://sox.sourceforge.net/).
The following batch file script encodes all WAV files in the current
directory to SPX (at a sample rate of 16000). You need to have both sox.exe
and speexenc.exe in your path.
for %%i in (*.wav) do sox %%i -r 16000 %%~ni.raw
for %%i in (*.raw) do speexenc -w --vbr --8bit --rate 16000 %%i %%~ni.spx
Regards,
David
> -----Original Message-----
> From: speex-dev-bounces@xiph.org [mailto:speex-dev-bounces@xiph.org] On
> Behalf Of marcin
> Sent: Tuesday, September 06, 2005 15:00
> To: speex-dev@xiph.org; speex-dev-request@xiph.org
> Subject: [Speex-dev] speex-problem
>
> Witam!
>
> I have a question about speex. how to prepare wave file to use with
> sample code that is on your site:
> http://www.speex.org/manual2/node12.html .
> If u can please answer me soon.
>
> --
> Pozdrawiam
> Marcin Sliwa mailto:marcin_sl@wp.pl
>
> _______________________________________________
> Speex-dev mailing list
> Speex-dev@xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev