<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=EN-US link=blue vlink=blue>
<div class=Section1>
<div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Jonas Kellens<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users] Convert
wav-file to alaw-file</span></font><font color=black><span style='color:windowtext'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=navy face=Helvetica><span
style='font-size:12.0pt;font-family:Helvetica;color:navy'>></span></font><font
face=Helvetica><span style='font-family:Helvetica'>Hello list,<br>
<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>it seems that Asterisk is unable to convert a wav-file into an
alaw-file :<br>
<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>[root@asterisk testing]# asterisk -rx "file convert
testExtended2.wav testExtended2.alaw"<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>Unable to open input file: testExtended2.wav<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>[root@asterisk testing]# asterisk -rx "file convert
testLong2.wav testLong2.alaw"<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>Unable to open input file: testLong2.wav<br>
<br>
<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>The wav-file is MONO, 8000Hz according to SoX and confirmed by the
sox mailinglist </span></font><font color=navy face=Helvetica><span
style='font-family:Helvetica;color:navy'>></span></font><font
face=Helvetica><span style='font-family:Helvetica'>(<a
href="http://sourceforge.net/mailarchive/message.php?msg_name=4C6A4661.9000209%40telenet.be">http://sourceforge.net/mailarchive/message.php?msg_name=4C6A4661.9000209%40telenet.be</a>)<br>
<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>[root@asterisk testing]# soxi testLong2.wav<br>
<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>Input File : 'testLong2.wav'<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>Channels : 1<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>Sample Rate : 8000<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>Precision : 16-bit<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>Duration : 00:01:27.05 = 696427
samples ~ 6529 CDDA sectors<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>Sample Encoding: 16-bit Signed Integer PCM<br>
<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>Why then can I not use Asterisk to 'convert' to alaw ?!<br>
<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>Kind regards,<br>
<br>
</span></font><font color=navy face=Helvetica><span style='font-family:Helvetica;
color:navy'>></span></font><font face=Helvetica><span style='font-family:
Helvetica'>Jonas.</span></font><font color=navy face=Helvetica><span
style='font-family:Helvetica;color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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.<o:p></o:p></span></font></p>
</div>
</body>
</html>