Blog Archive

Tuesday, October 6, 2015

Wav file convert command on different corpoa(wv1,wv2,wav) - My Graduate Life



Wav file convert command on different corpoa(wv1,wv2,wav)


Aurora2 Aurora4
cat scripts/raw2wav.scp | awk '{system("sox -x -c 1 -s -2 -r 8000 -t raw " $1 " -t wav " $2)}'
or
cat scripts/raw2wav.scp | awk '{system("sox -x -c 1 -s -w -r 8000 -t raw " $1 " -t wav " $2)}'
-w or -2 sample data size in 2 bytes, 16 bits
-x swap bytes
-c number of channels
-r sample rates
--------------------------------------------------
WSJ0,WSJ1
sph2pipe -f raw <in> -f wav <out>
Source:
https://sites.google.com/site/gradlifeofshilin/techblog/wavfileconvertcommandondifferentcorpoawv1wv2wav

No comments:

Post a Comment