G711 is 64kbs so my guess is to do 8000 RAW or WAV in PCM 8bits. If you send me the file I can try it. If you put a .wav extension on it doesn't Freeswitch play it? spx may not be doable with sndfile, but I don't know it's real format..who knows. The supported formats are here: http://www.mega-nerd.com/libsndfile/ and in the source sndfile.h VOX is not listed there but it records and plays now by using RAW|VOX_APCM format, but that's not the only VOX format out there. The thing is all these file extensions could have different formats so you have to know what you have. Kris email: livecallcom@hotmail.com ----- Original Message ----- From: "Madovsky" <infos@madovsky.org> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Wednesday, June 29, 2011 1:15 PM Subject: Re: [Freeswitch-users] change sounds file format of voicemail
I kris,
I just converted all wav in spx, and also G711 would be great.. do yo need I send to you some spx samples ?
Thanks ----- Original Message ----- From: "Kris" <kris@livecall.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Wednesday, June 29, 2011 3:05 PM Subject: Re: [Freeswitch-users] change sounds file format of voicemail
I am doing testing and I am about to submit changes to the GIT to allow 8000x8 bit wav and 8000x4bit vox recording. What formats would you like to use?..maybe I can add them before I submit. This is my test extension and it works with my modifications: Kris <extension name="playtest">
<condition field="destination_number" expression="^playtest$">
<action application="answer" data=""/>
<action application="set" data="tts_engine=flite"/>
<action application="set" data="tts_voice=kal"/>
<!--
-->
<action application="set" data="record_sample_rate=8000"/>
<action application="set" data="record_format= major=WAV,subtype=PCM_U8"/>
<action application="record" data="Test1.wav 20"/>
<action application="playback" data="tone_stream://%(100,0,1004);loops=5"/>
<action application="set" data="record_format= major=WAV,subtype=PCM_16"/>
<action application="record" data="Test2.wav 20"/>
<action application="playback" data="tone_stream://%(100,0,1004);loops=5"/>
<action application="set" data="record_format= major=RAW,subtype=VOX_ADPCM"/>
<action application="sleep" data="200"/>
<action application="record" data="Test3.vox 20"/>
<action application="set" data="playback_delimiter=!"/>
<action application="read" data="0 1 'say:this starts at 5 seconds and plays for 10 at volume 2!Test1.wav{start_ms=5000,timeout_ms=10000,speed=0,vol=2}!say:this is at volume -1!Test2.wav{start_ms=5000,timeout_ms=10000,speed=0,vol=-1}!say:this is vox!Test3.vox{start_ms=0,timeout_ms=8000,speed=2,vol=4}' digits 5000 #"/>
<action application="hangup"/>
</condition>
</extension>
----- Original Message ----- From: "Madovsky" <infos@madovsky.org> To: <freeswitch-users@lists.freeswitch.org> Sent: Wednesday, June 29, 2011 9:31 AM Subject: [Freeswitch-users] change sounds file format of voicemail
Where can I force voicemail to use sounds other than .wav ?
Thanks
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org