[asterisk-users] wav to gsm can't play

Zhang Shukun bitzsk at gmail.com
Wed Jan 20 19:21:11 CST 2010


yes. asterisk can playback wav file . but need transfer to 8000hz.

Using WAV files
Asterisk has codecs for wav (pcm), gsm, g729, g726, and wav49, all of
which can be used for Playback and Background. However, Asterisk does
not understand ADPCM WAV files. To convert your WAV files to a format
which Asterisk can understand, use the following command:

   sox foo-in.wav -r 8000 -c 1 -s -w foo-out.wav resample -ql

2010/1/21 Kyle Kienapfel <doctor.whom at gmail.com>:
> The playback command is designed to work with multiple formats
> If the channel in question is gsm it'll use a .gsm file before a .wav file
>
> if the .wav file is in the directory, is it playable by asterisk?
> (8000hz sample rate, etc etc)
>
> On Tue, Jan 19, 2010 at 8:20 AM, Danny Nicholas <danny at debsinc.com> wrote:
>> Just a WAG - Playback is freaking out because you have the wav and gsm file
>> there concurrently.  Remove the wav file and try it again.
>>
>> -----Original Message-----
>> From: asterisk-users-bounces at lists.digium.com
>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Zhang Shukun
>> Sent: Tuesday, January 19, 2010 12:47 AM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: [asterisk-users] wav to gsm can't play
>>
>> hi,
>>
>> i try to convert wav file to gsm format.use following commands;
>>
>> sox net263-welcome.wav -r 8000 -g -c 1 net263-welcome.gsm resample -ql
>>
>> the file is located in /var/lib/asterisk/sounds/net263
>>  but cant' play.do you know what's wrong?
>>
>>    -- Executing Playback("SIP/1001-00000091", "net263/net263-welcome")
>>    -- <SIP/1001-00000091> Playing 'net263/net263-welcome' (language 'en')
>> [Jan 19 14:36:06] WARNING[21397]: app_playback.c:440 playback_exec:
>> ast_streamfile failed on SIP/1001-00000091 for net263/net263-welcome
>>    -- Executing WaitExten("SIP/1001-00000091", "60")
>>
>>
>> --
>> Best regards,
>> Sucan
>>
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>>
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Best regards,
Sucan



More information about the asterisk-users mailing list