Asterisk audio file conversion: Difference between revisions

From voipsupport
Jump to navigation Jump to search
(Created page with "Converts 8kHz sln linear PCM 16 bit signed format into a wav file <pre> /usr/bin/sox -t raw -r 8000 -e signed-integer -b 16 -c 1 /tmp/recording.raw /tmp/recording.wav </pre>")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
Converts 8kHz sln linear PCM 16 bit signed format into a wav file
==Using Sox==
 
Converts 8kHz linear PCM 16 bit signed single channel format into a wav file
 
<pre>
/usr/bin/sox -t raw -r 8000 -e signed-integer -b 16 -c 1 recording.raw recording.wav
</pre>
 
==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.


<pre>
<pre>
/usr/bin/sox -t raw -r 8000 -e signed-integer -b 16 -c 1 /tmp/recording.raw /tmp/recording.wav
file convert recording.sln recording.wav
</pre>
</pre>
Only file formats for which Asterisk has transcoders can be converted with Asterisk. See
<pre>core show translation</pre>

Latest revision as of 23:32, 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

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