[Freeswitch-users] 8000 rate .wav files

Dan Lane null at invalid.name
Mon Feb 22 09:39:20 PST 2010


On Mon, Feb 22, 2010 at 5:21 PM, Mark Sobkow
<m.sobkow at marketelsystems.com> wrote:
> I've got the 8000 sample rate .wav files installed for Freeswitch.
> According to the logs, my SIP phone is connecting with an 8000 rate.
> However, when I try to play_and_get_digits using those sound files, I
> get errors:
>
> 2010-02-22 11:15:22.029347 [ERR] switch_core_file.c:122 Invalid file
> format [wav] for
> [/opt/freeswitch/sounds/en/us/callie/conference/8000/conf-pin.wav]!
> 2010-02-22 11:15:22.029347 [ERR] switch_core_file.c:122 Invalid file
> format [wav] for
> [/opt/freeswitch/sounds/en/us/callie/conference/8000/conf-bad-pin.wav]!
>
> Aren't .wav files supposed to be compatible with all codecs for
> playback?  If not, what do I have to do to convert them to the proper
> formats?  How do I find out what the proper formats are?

Try resampling the file using sox... something like the following
should do the trick:

sox input.wav -r 8000 -c 1 -s -w output.wav resample -ql




More information about the FreeSWITCH-users mailing list