[hts-users:01173] Re: wav to raw format
Hi,
Lazaridis Alexandros wrote (2008/02/15 5:08):
for wav ./wav/*.wav
do
raw=./raw/`basename $wav .wav`.raw
sox -c 1 -s -w -t wav -r 16000 $wav -c 1 -s -w -t wav -r 16000 $raw
done
the only thing it does, is to change the file extension .wav to .raw,
nothing more. How can I convert the wav files to raw files? Is there
another script?
Do as follows:
for wav ./wav/*.wav; do
raw=./raw/`basename $wav .wav`.raw
sox -c 1 -s -w -t wav -r 16000 $wav -c 1 -s -w -t raw -r 16000 $raw
done
I am working on windows and cygwin (windows use big endian I think).
Windows uses little endian.
Regards,
Heiga ZEN (Byung Ha CHUN)
--
------------------------------------------------
Heiga ZEN (in Japanese pronunciation)
Byung Ha CHUN (in Korean pronunciation)
Department of Computer Science and Engineering
Nagoya Institute of Technology
Gokiso-cho, Showa-ku, Nagoya 466-8555 Japan
http://www.sp.nitech.ac.jp/~zen
------------------------------------------------
- References
-
- [hts-users:01171] wav to raw format, Lazaridis Alexandros