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

Help with Audio Conversions #3

Open
blinkor opened this issue Dec 4, 2023 · 0 comments
Open

Help with Audio Conversions #3

blinkor opened this issue Dec 4, 2023 · 0 comments

Comments

@blinkor
Copy link

blinkor commented Dec 4, 2023

Hello @mscdex,

I'm trying to follow your example (sendg711.js) on streaming RTP-based audio to a Cisco phone. I used https://g711.org/ to convert one of my .wav using the "Standard Definition 16-bit WAV (8Khz, Mono, 16-Bit PCM)" option. This produced the clearest audio on the phone, whereas the rest of the conversions were intercombined with static or completely unintelligible.

However, I'm having some issues with receiving the audio on my phone. Using the default code:

intvl = setInterval(writeData, 20);

yields the audio streaming for about 2 seconds, no audio for 2 seconds, and the audio continuing intermittently so on. If I decrease the param of 20 to 8 (for example), there are no more gaps of silence but the audio appears to 'overlap' during the streaming process. Increasing past 20 also respectively increases the gaps.

Do you have any tips on what the problem might be or how I should better convert my audio file?

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

1 participant