Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artifacts in voice #11

Open
SkyWar-design opened this issue Apr 1, 2022 · 2 comments
Open

Artifacts in voice #11

SkyWar-design opened this issue Apr 1, 2022 · 2 comments

Comments

@SkyWar-design
Copy link

Hello, I am using Asterisk 18.11.0 and your voice bot application.

I follow your example but play my own wav files, after I pick up the phone, at the very beginning of playing the file I get a "hit" voice artifact, and when I hear the answer in my application and analyze the voice - I also get a "hit" "an example of which I will attach to this appeal

hxKQFDaFpLSjFbc.wav.zip

@Ulexus
Copy link
Member

Ulexus commented May 29, 2023

I encountered this, as well. It seems Asterisk's implementation of AudioSocket no longer actually sends SLIN, even though it sends the type byte saying it is.

I worked around this problem by forcing it with the dialed channel instantiation, adding c(slin) to the end, like so:

AudioSocket/127.0.0.1/0549ec21-a181-4339-8ae7-f935be7bb040/c(slin)

@nghianv19940
Copy link

nghianv19940 commented May 11, 2024

I encountered this, as well. It seems Asterisk's implementation of AudioSocket no longer actually sends SLIN, even though it sends the type byte saying it is.

I worked around this problem by forcing it with the dialed channel instantiation, adding c(slin) to the end, like so:

AudioSocket/127.0.0.1/0549ec21-a181-4339-8ae7-f935be7bb040/c(slin)

Thanks a lot for this info.
I need to use Dial to be able to keep dialplan running after audiosocket server hangup.
When I use app AudioSocket directly, dialplan ends right away.
But use Dial like this makes asterisk send some strange, inaudible audio:
Dial(AudioSocket/127.0.0.1/0549ec21-a181-4339-8ae7-f935be7bb040
This is what i use now:
Dial(AudioSocket/127.0.0.1/0549ec21-a181-4339-8ae7-f935be7bb040/c(slin))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants