|
From: Jonas K. <jon...@te...> - 2010-08-17 08:18:37
|
Hello list, hope you can help me out. 2 files : [root@asterisk testing]# file testExtended.wav testExtended.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz [root@asterisk testing]# file testLong.wav testLong.wav: RIFF (little-endian) data, WAVE audio, 20294 channels 1414676809 Hz to mono : [root@asterisk testing]# sox testExtended.wav -r 8000 -c1 testExtended2.wav resample -ql sox sox: effect `resample' is deprecated; see sox(1) for an alternative [root@asterisk testing]# sox testLong.wav -r 8000 -c1 testLong2.wav resample -ql sox sox: effect `resample' is deprecated; see sox(1) for an alternative sox effects: resample clipped 2 samples; decrease volume? afterwards : [root@asterisk testing]# file testLong2.wav testLong2.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz [root@asterisk testing]# file testExtended2.wav testExtended2.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz But my Asterisk-server can not open them : [root@asterisk testing]# asterisk -rx "file convert testExtended2.wav testExtended2.alaw" Unable to open input file: testExtended2.wav [root@asterisk testing]# asterisk -rx "file convert testLong2.wav testLong2.alaw" Unable to open input file: testLong2.wav The file has decreased in file size : -rw-r--r-- 1 root root 885K 2010-08-17 08:59 testExtended2.wav -rw-r--r-- 1 root root 9.6M 2010-08-17 08:57 testExtended.wav I can play the original and the resampled file perfectly in Gnome Mplayer, but my Asterisk-server can not read the file to convert it to alaw. Could there be something wrong with the wav-file ?! Kind regards, Jonas. |