Tiago Ferreira
2017-May-12 11:10 UTC
[asterisk-users] Asterisk 14 audio quality with remote files
Hello everyone, I am using the Asterisk REST API in order to establish a call to an endpoint and to send over a remote file (HTTP). The issue is that I am experiencing an audio quality issue. I have tried encoding the file differently, but everytime Asterisk is cutting the audio frequencies above 4Khz. The call is established with G.722 and the audio file is mono 16Khz 16 bit sln16 extension. What can I do to improve the sound quality? Is there any way to not have asterisk cut the audio frequencies? best regards Tiago -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170512/1e6c7342/attachment.html>
Tiago Ferreira
2017-May-16 20:00 UTC
[asterisk-users] Asterisk 14 audio quality with remote files
Anyone? I tried converting the file to g722 with ffmpeg and got the same result. regards Tiago On 12-05-2017 12:10, Tiago Ferreira wrote:> Hello everyone, > > I am using the Asterisk REST API in order to establish a call to an > endpoint and to send over a remote file (HTTP). > The issue is that I am experiencing an audio quality issue. > I have tried encoding the file differently, but everytime Asterisk is > cutting the audio frequencies above 4Khz. > The call is established with G.722 and the audio file is mono 16Khz 16 > bit sln16 extension. > What can I do to improve the sound quality? Is there any way to not > have asterisk cut the audio frequencies? > > best regards > Tiago > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170516/c1dad324/attachment.html>
Matthew Jordan
2017-May-21 00:33 UTC
[asterisk-users] Asterisk 14 audio quality with remote files
On Tue, May 16, 2017 at 3:00 PM, Tiago Ferreira <cyberneticrevolution at gmail.com> wrote:> Anyone? > I tried converting the file to g722 with ffmpeg and got the same result. > > regards > Tiago > On 12-05-2017 12:10, Tiago Ferreira wrote: > > Hello everyone, > > I am using the Asterisk REST API in order to establish a call to an endpoint > and to send over a remote file (HTTP). > The issue is that I am experiencing an audio quality issue. > I have tried encoding the file differently, but everytime Asterisk is > cutting the audio frequencies above 4Khz. > The call is established with G.722 and the audio file is mono 16Khz 16 bit > sln16 extension. > What can I do to improve the sound quality? Is there any way to not have > asterisk cut the audio frequencies? >The remote playback option doesn't manipulate the audio file in any way that is different than playing the file back from disk. At a high level, the cURL'd file is stored in a temporary location, mapped to the URL for future referencing, and handed off to the file core. At that point, it's the same as playing back any media file with a known format, where that format - just like all media files in Asterisk - is indicated by the file extension. What extension is the file? What format does Asterisk think the file is? It should tell you that when your verbosity is 3 or higher: ast_verb(3, "<%s> Playing '%s.%s' (language '%s')\n", ast_channel_name(chan), filename, ast_format_get_name(ast_channel_writeformat(chan)), preflang ? preflang : "default"); Matt -- Matthew Jordan Digium, Inc. | CTO 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: http://digium.com & http://asterisk.org