Better Audio In Than Just 8k
Hi all,
If I use a SIP softphone and set to gsm codec clearly I get a 8K sample… if I change that to something like opus I get a much better sounding input…
How do I get a “better” than 8K sampled input ?
I “desire” to have that input be from a pipe. I have cd quality audio in this pipe – I would like to get that audio into asterisk to then send out to endpoints. How do I make that happen ?
Thanks,
Jerry
4 thoughts on - Better Audio In Than Just 8k
Maybe streaming will be helpful,
https://www.agix.com.au/streaming-internet-music-for-asterisk-10-on-hold-music/
Doug
—
https://www.agix.com.au/streaming-internet-music-for-asterisk-10-on-hold-music/
I had played with that also – but it still down converts to 8k:
application=/usr/local/bin/mpg123 -q -s –mono -r 8000 -f 8192 -b 0 -@
http://media.on.net/radio/155.m3u
I was looking for a way to get something like an opus codec quality – not just 8k.
Jerry
Jerry, What if you specify a higher bitrate to mpg123?
You are limiting it to 8k with the ‘r’ option.
I convert my source audio files with sox to 16khz signed linear for wideband hold music.
sox -c1 hold.wav -r 16000 -c 1 -e signed-integer -r 16k hold.raw
Then I rename the .raw file to a .sln16 and place it in the moh directory.
wrote:
HI John, Thanks – I guess I was assuming the audio from MOH had to be at 8k as perhaps asterisk was expecting it to be at that rate. from the source everything was using mp123 and converting to 8k was what it appeared to me. I was looking at MP3Player source. When I tried other things like (the audio is also available on pulseaudio)
I was getting static. All these things were leading me down the 8K path.
Jerry