Talk:Sox

From LQWiki
Jump to navigation Jump to search

Thanks to Scott, this has become a great article! One problem: play does not work for me, mplayer does:

play phaser2.wav
play formats: can't open input file `phaser2.wav': Could not find data chunk.

--ThorstenStaerk 06:29, August 10, 2009 (UTC)

Play not working with .wav

Thanks for the thanks :) It could be that SuSe doesn't include the .wav support for sox. I installed from the kubuntu package, and it doesn't play .mp3, I'd have to compile it from source to do it. Try phaser2.flac instead of .wav and see if play works with the .flac file, that should narrow it down to being a wav issue :)

Yes, the following works:
# sox -n phaser.flac synth .5 sine 10000-5
# play phaser.flac

To see what audio formats are supported, you can try:

sox -h

If 'wav' and I think 'wavpcm' are not listed in the 'AUDIO FORMAT' section, it won't work. If you're using suse, i'm not sure what the package name would be, in the ubuntu package it's called libsox-fmt-wav or libsox-fmt-all for everything. I hope that helps in some way.