Asterisk audio file conversion

From voipsupport
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

Converts 8kHz linear PCM 16 bit signed single channel format into a wav file. It must have the right file extension (in this case .sln) for Asterisk to recognize the input format.

file convert recording.sln recording.wav

Only file formats for which Asterisk has transcoders can be converted with Asterisk. See

core show translation