|
From: Jonas K. <jon...@te...> - 2010-08-17 10:47:32
|
On 08/17/2010 11:53 AM, Jan Stary wrote: > What does soxi(1) say about the file? > The original files : [root@asterisk testing]# soxi testExtended.wav Input File : 'testExtended.wav' Channels : 2 Sample Rate : 44100 Precision : 16-bit Duration : 00:00:56.57 = 2494953 samples = 4243.12 CDDA sectors Sample Encoding: 16-bit Signed Integer PCM [root@asterisk testing]# soxi testLong.wav Input File : 'testLong.wav' Channels : 2 Sample Rate : 44100 Precision : 16-bit Duration : 00:01:27.05 = 3839052 samples = 6529 CDDA sectors Sample Encoding: 16-bit Signed Integer PCM > Why are you using deprecated effects?? > > sox -V testExtended.wav testExtended2.wav remix - rate 8000 > sox -V testExtended.wav -c 1 -r 8000 testExtended2.wav > [root@asterisk testing]# sox -V testLong.wav -c 1 -r 8000 testLong3.wav sox: SoX v14.2.0 sox formats: detected file format type `wav' Input File : 'testLong.wav' Channels : 2 Sample Rate : 44100 Precision : 16-bit Duration : 00:01:27.05 = 3839052 samples = 6529 CDDA sectors Sample Encoding: 16-bit Signed Integer PCM Endian Type : little Reverse Nibbles: no Reverse Bits : no Output File : 'testLong3.wav' Channels : 1 Sample Rate : 8000 Precision : 16-bit Duration : 00:01:27.05 = 696427 samples ~ 6529 CDDA sectors Sample Encoding: 16-bit Signed Integer PCM Endian Type : little Reverse Nibbles: no Reverse Bits : no Comment : 'Processed by SoX' sox sox: effects chain: input 44100Hz 2 channels 16 bits (multi) sox sox: effects chain: rate 44100Hz 2 channels 16 bits sox sox: effects chain: mixer 8000Hz 2 channels 16 bits (multi) sox sox: effects chain: output 8000Hz 1 channels 16 bits (multi) sox effects: rate clipped 13 samples; decrease volume? > Looks good; what does soxi(1) say about the file? > Can you play the resulting mono/8000 file? > [root@asterisk testing]# soxi testLong3.wav Input File : 'testLong3.wav' Channels : 1 Sample Rate : 8000 Precision : 16-bit Duration : 00:01:27.05 = 696427 samples ~ 6529 CDDA sectors Sample Encoding: 16-bit Signed Integer PCM I can play this file in Gnome Mplayer. Does this mean the resulting Mono 8000Hz file is correct ?! If so, the problem indeed lies with the Asterisk software. A question there has been asked but left unanswered. If you are 100% sure the resulting file testLong3.wav should be a correct wav-file, then this topic is closed. Thank you for your help. Kind regards, Jonas. |