Asterisk audio file conversion: Difference between revisions

From voipsupport
Jump to navigation Jump to search
Line 9: Line 9:
==Using Asterisk==
==Using Asterisk==


<pre>
file convert /tmp/recording.sln /tmp/recording.wav
file convert /tmp/recording.sln /tmp/recording.wav
</pre>

Revision as of 23:27, 19 June 2016

Using SOX

Converts 8kHz sln linear PCM 16 bit signed 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 /tmp/recording.sln /tmp/recording.wav