sox soxio: Failed reading : unknown file type

I got this error on my Ubuntu system. It stuck me as odd because the script I had made, ran just fine previously.

sox soxio: Failed reading `hello-thank-you-for-calling.wav': unknown file type `raw'

Upon searching, I found that for some reason sox lost all it’s available formats.

$ sox
...
SUPPORTED FILE FORMATS: pls m3u

The following installed all the available file formats.

$ sudo apt-get install libsox-fmt-all
...
$ sox
...
SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa ao au auto avi avr caf cdda cdr cvs cvsd dat dvms fap ffmpeg flac fssd gsm hcom ima ircam la lpc lpc10 lu m3u m4a mat mat4 mat5 maud mp2 mp3 mp4 mpg nist nul null ogg oss ossdsp paf pls prc pvf raw s1 s2 s3 s4 sb sd2 sds sf sl smp snd sndfile sndt sou sph sw txw u1 u2 u3 u4 ub ul uw vms voc vorbis vox w64 wav wmv wve xa xi

Here is the command my script was running to convert a text2wav file into a GSM encoded file for my Asterisk setup.

sox --show-progress -V1 hello-thank-you-for-calling.wav -r 8000 -c 1 -t gsm hello-thank-you-for-calling.gsm resample -ql

Related posts:

  1. freebsd notes - compiling and installing using ports # compiling and installing using ports ex. whereis package cd...
  2. someone being bad I noticed someone/thing trying to do something nasty to my...
  3. it’s snowing #1 Click to Play At the time it was snowing...
  4. it’s snowing #2 Click to Play At the time it was snowing...
  5. space time in the 35th dimension a productive life be damned. $ ./days.between.sh 7/26/2001 4/25/2008 2465...

Related posts brought to you by Yet Another Related Posts Plugin.

One Trackback

  1. [...] upgrading to Hardy 8.04 I think) whenever I tried to use the sox or play commands. Turns out the solution is pretty simple, sox had just lost its available format [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

Bad Behavior has blocked 802 access attempts in the last 7 days.