Asterisk audio file conversion: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
==Using Sox== | ==Using Sox== | ||
Converts 8kHz linear PCM 16 bit signed format into a wav file | Converts 8kHz linear PCM 16 bit signed single channel format into a wav file | ||
<pre> | <pre> |
Revision as of 23:30, 19 June 2016
Using Sox
Converts 8kHz linear PCM 16 bit signed single channel format into a wav file
/usr/bin/sox -t raw -r 8000 -e signed-integer -b 16 -c 1 recording.raw recording.wav
Using Asterisk
file convert recording.sln recording.wav
Only file formats that asterisk knows how to transcode can be converted with Asterisk. Sox supports more formats.