Hello list, it seems that Asterisk is unable to convert a wav-file into an alaw-file : [root at asterisk testing]# asterisk -rx "file convert testExtended2.wav testExtended2.alaw" Unable to open input file: testExtended2.wav [root at asterisk testing]# asterisk -rx "file convert testLong2.wav testLong2.alaw" Unable to open input file: testLong2.wav The wav-file is MONO, 8000Hz according to SoX and confirmed by the sox mailinglist (http://sourceforge.net/mailarchive/message.php?msg_name=4C6A4661.9000209%40telenet.be) [root at asterisk testing]# soxi testLong2.wav Input File : 'testLong2.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 Why then can I not use Asterisk to 'convert' to alaw ?! Kind regards, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100817/78ec3671/attachment-0001.htm
On 8/17/2010 9:00 AM, Jonas Kellens wrote:> Hello list, > > it seems that Asterisk is unable to convert a wav-file into an alaw-file : > > [root at asterisk testing]# asterisk -rx "file convert testExtended2.wav > testExtended2.alaw" > Unable to open input file: testExtended2.wav > [root at asterisk testing]# asterisk -rx "file convert testLong2.wav > testLong2.alaw" > Unable to open input file: testLong2.wavTry using an absolute path to the files: asterisk -rx "file convert /path/to/testExtended2.wav /path/to/textExtended2.alaw" Sean -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100817/eb1ea428/attachment.htm
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonas Kellens Subject: [asterisk-users] Convert wav-file to alaw-file>Hello list,>it seems that Asterisk is unable to convert a wav-file into an alaw-file :>[root at asterisk testing]# asterisk -rx "file convert testExtended2.wavtestExtended2.alaw">Unable to open input file: testExtended2.wav >[root at asterisk testing]# asterisk -rx "file convert testLong2.wavtestLong2.alaw">Unable to open input file: testLong2.wav>The wav-file is MONO, 8000Hz according to SoX and confirmed by the soxmailinglist>(http://sourceforge.net/mailarchive/message.php?msg_name=4C6A4661.9000209%40telenet.be)>[root at asterisk testing]# soxi testLong2.wav>Input File : 'testLong2.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>Why then can I not use Asterisk to 'convert' to alaw ?!>Kind regards,>Jonas.As I interpret what I have read in this forum over the last several months, there is not really an "ALAW" format. If you do a sox (don't remember if you can do in native Asterisk) convert to RAW (headerless) format, Asterisk is happy to consider that as ALAW. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100817/5795b953/attachment.htm
On 18/08/10 1:15 AM, Danny Nicholas wrote:> As I interpret what I have read in this forum over the last several > months, there is not really an ?ALAW? format. If you do a sox (don?t > remember if you can do in native Asterisk) convert to RAW (headerless) > format, Asterisk is happy to consider that as ALAW.That would be signed linear (SLIN). -- Cheers, Matt Riddell _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/exchange.php (Full ITSP Solution) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer)
Possibly Parallel Threads
- I can do alaw, ulaw and gsm; remote can do g729 and alaw; asterisk wants to translate g729 -> alaw. WHY?
- I can do alaw, ulaw and gsm; remote can do g729 and alaw; asterisk wants to translate g729 -> alaw. WHY?
- I can do alaw, ulaw and gsm; remote can do g729 and alaw; asterisk wants to translate g729 -> alaw. WHY?
- Asked to transmit frame type slin, while native formats is 0x8 (alaw) read/write = 0x4 (ulaw)/0x8 (alaw)
- I can do alaw, ulaw and gsm; remote can do g729 and alaw; asterisk wants to translate g729 -> alaw. WHY?