Noise on line, does not show up in recordings
Hi all, I frequently get noise during calls with my FreeSWITCH deployment. It sounds like a brief burst of distortion - typically less than a second. I've had it happen both when using playback with WAV (different formats - I found recommendations suggesting 8000Hz, 128 kb/s mono and it shows up with that format as well) and text-to-speech with flite. It happens at unpredictable moments - it's not the same from one call to the next. I've added a record_session statement to investigate in more detail, but the noise does not show up in the recording. Does anyone have advice on what might be causing this or how I could further debug this? Kind regards, Sam
Just thinking out loud: If it's working locally, but not externally, that sounds like some sort of networking issue. But what do you mean by noise? Not garbly or dropped packets, but added noise? How are you listening to it, that's different than the recording? Are you on the LAN or over the internet? If you're on the WAN, it could be some sort of congestion. If you're on the LAN, it could be an actual bug with a jitterbuffer or something wrong with the network card/driver or local network. Possible debugging step: get both a local and/or remote PCAP capture. That will let us see the network part. Because the most local audio within freeswitch you are finding fine as per the recordings.
Hi Avi, Thanks a lot for your reply. I find it a bit hard to describe the noise, so I made a recording. This is audio that I recorded when calling into the system over skype, the noise is around second 27: https://drive.google.com/file/d/1r36iAvd-Ym_qWrw1x_tig1owvQqkO9Id/view?usp=s... This is the same audio when using record_session on FreeSWITCH: https://drive.google.com/file/d/1scDSWlGc52PC9x8Ed5-OWQruZmdLnb_D/view?usp=s... It's actually not an SIP setup - the system runs over PRI. It uses a Sangoma A104 card with the wanpipe Sangoma driver and FreeTDM. So maybe there is something going on at that point in the stack (I hadn't considered that - thanks!). The setup is controlled using mod_erlang_event (though I suspect that's not relevant for this issue). Best, Sam On Tue, Jun 23, 2020 at 2:21 PM Avi Marcus <avi@avimarcus.net> wrote:
Just thinking out loud: If it's working locally, but not externally, that sounds like some sort of networking issue. But what do you mean by noise? Not garbly or dropped packets, but added noise?
How are you listening to it, that's different than the recording? Are you on the LAN or over the internet? If you're on the WAN, it could be some sort of congestion. If you're on the LAN, it could be an actual bug with a jitterbuffer or something wrong with the network card/driver or local network.
Possible debugging step: get both a local and/or remote PCAP capture. That will let us see the network part. Because the most local audio within freeswitch you are finding fine as per the recordings. _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
Maybe someone else listening to the recording (towards ~25s is the real distortion?) will make something of it. I just want to mention that your flite audio sounds *horrible *to me. If that's production audio, I suggest spending a few cents for Amazon Polly audio (Matthew voice is pretty nice.) https://aws.amazon.com/polly/ I made a full english sound set and some scripts to generate new audio here: https://github.com/avimar/freeswitch-sounds-polly
Thanks Avi - this is really just a proof of concept, all the audio will be replaced by human recordings in the final system. Using flite is easy for testing purposes, and helpful for me because the system will be in Bengali which I do not understand :) On Tue, Jun 23, 2020 at 3:05 PM Avi Marcus <avi@avimarcus.net> wrote:
Maybe someone else listening to the recording (towards ~25s is the real distortion?) will make something of it.
I just want to mention that your flite audio sounds *horrible *to me. If that's production audio, I suggest spending a few cents for Amazon Polly audio (Matthew voice is pretty nice.) https://aws.amazon.com/polly/
I made a full english sound set and some scripts to generate new audio here: https://github.com/avimar/freeswitch-sounds-polly
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
For anyone who finds this thread running into similar issues: the problem was one in the configuration of the PRI card. The telco provides a clock signal on the E1 line which the card should use to synchronize communication, but we had misconfigured the PRI card to provide its own clock signal, messing up synchronization and leading to overruns. (Well - this is how I understand it.) This was the information that led me to fix it: https://wiki.sangoma.com/display/PC/Overruns https://wiki.freepbx.org/pages/viewpage.action?pageId=79138050 Best, Sam On Tue, Jun 23, 2020 at 3:08 PM Sam van Herwaarden < svanherwaarden@precisionag.org> wrote:
Thanks Avi - this is really just a proof of concept, all the audio will be replaced by human recordings in the final system. Using flite is easy for testing purposes, and helpful for me because the system will be in Bengali which I do not understand :)
On Tue, Jun 23, 2020 at 3:05 PM Avi Marcus <avi@avimarcus.net> wrote:
Maybe someone else listening to the recording (towards ~25s is the real distortion?) will make something of it.
I just want to mention that your flite audio sounds *horrible *to me. If that's production audio, I suggest spending a few cents for Amazon Polly audio (Matthew voice is pretty nice.) https://aws.amazon.com/polly/
I made a full english sound set and some scripts to generate new audio here: https://github.com/avimar/freeswitch-sounds-polly
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
+1 for reporting back in with the solution rather than simply "thanks, solved." On Fri, Jun 26, 2020, 2:21 PM Sam van Herwaarden < svanherwaarden@precisionag.org> wrote:
For anyone who finds this thread running into similar issues: the problem was one in the configuration of the PRI card. The telco provides a clock signal on the E1 line which the card should use to synchronize communication, but we had misconfigured the PRI card to provide its own clock signal, messing up synchronization and leading to overruns. (Well - this is how I understand it.)
This was the information that led me to fix it: https://wiki.sangoma.com/display/PC/Overruns https://wiki.freepbx.org/pages/viewpage.action?pageId=79138050
Best, Sam
On Tue, Jun 23, 2020 at 3:08 PM Sam van Herwaarden < svanherwaarden@precisionag.org> wrote:
Thanks Avi - this is really just a proof of concept, all the audio will be replaced by human recordings in the final system. Using flite is easy for testing purposes, and helpful for me because the system will be in Bengali which I do not understand :)
On Tue, Jun 23, 2020 at 3:05 PM Avi Marcus <avi@avimarcus.net> wrote:
Maybe someone else listening to the recording (towards ~25s is the real distortion?) will make something of it.
I just want to mention that your flite audio sounds *horrible *to me. If that's production audio, I suggest spending a few cents for Amazon Polly audio (Matthew voice is pretty nice.) https://aws.amazon.com/polly/
I made a full english sound set and some scripts to generate new audio here: https://github.com/avimar/freeswitch-sounds-polly
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (2)
-
Avi Marcus
-
Sam van Herwaarden