<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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 lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Greetings,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m using a 3<sup>rd</sup> party application (ndev dragonmobile) to get the transcription of some audio recorded by FreeSWITCH. Think about it as a voicemail transcription service. The problem I’m facing is that, when I record a session using uuid_record, the output file is encoded in PCM 16-bit @ 8khz. Correct me if I’m wrong, but my understanding is that if I want to capture audio from calls coming from the PSTN (analog/landlines), the best I can do is to record it in 8-bits (using G.711). <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I don’t want to use sox (or any other tool) to resample the output file, and what I’ve tried so far is setting the sample_rate variable on the diaplan as recommended on the wiki: <a href="http://wiki.freeswitch.org/wiki/Variable_record_rate">http://wiki.freeswitch.org/wiki/Variable_record_rate</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <action application="set" data="record_sample_rate=8000"/><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This doesn’t have any effect on the generated wav file, which is still encoded in 16-bits. So my question is: does this variable affects the behavior of the uuid_record command? Or, do I really need to encode the audio output in 8-bits when the origin of the call comes from the PSTN? How is FreeSWITCH encoding the audio in 16-bits if, in theory, the best rate we can get from an analog line is 8-bits?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sorry if I’m misunderstanding something, but I’m not a telephony/voip guy, more like a java developer.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks for your help.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>