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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190711/d56fbb38/attachment.html>
Maybe streaming will be helpful, https://www.agix.com.au/streaming-internet-music-for-asterisk-10-on-hold-music/ Doug
>>Maybe streaming will be helpful,>>https://www.agix.com.au/streaming-internet-music-for-asterisk-10-on-hold-music/>>DougI 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>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190711/f985a6cf/attachment.html>
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. On Thu, Jul 11, 2019 at 11:21 AM Jerry Geis <jerry.geis at gmail.com> wrote:> >>Maybe streaming will be helpful, > > >> > https://www.agix.com.au/streaming-internet-music-for-asterisk-10-on-hold-music/ > > >>Doug > > 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 > >> -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. ---Heinlein -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190711/7a27ac24/attachment.html>
>>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.>>On Thu, Jul 11, 2019 at 11:21 AM Jerry Geis <jerry.geis at gmail.com>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>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190711/f3b7b3e2/attachment.html>