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

Delay in playback #18

Open
BARBERTONY1 opened this issue Jan 21, 2020 · 2 comments
Open

Delay in playback #18

BARBERTONY1 opened this issue Jan 21, 2020 · 2 comments

Comments

@BARBERTONY1
Copy link

Hello! I'm currently working on audio decoding with Websocket. So far, I've decode the opus packet successfully, but the voices was off and on, how to resolve the problem? For example to set a buffer area to play. I'm sorry my English is not very good, If you see it, please give me a reply. Thank you

@samirkumardas
Copy link
Owner

  1. Make sure you have set correct number of channels.

  2. Which player are you using to play the decoded PCM data? Is this the player available in the example https://github.com/samirkumardas/opus-to-pcm/blob/master/example/player/pcm_player.js?
    If yes, try adjusting flushingTime value.

It looks like you are receiving fewer data via socket than the rate of its playing

@BARBERTONY1
Copy link
Author

Hello, I'm glad you can reply to me. I try to set the flushing time value, but the effect is not obvious, the sound is still broken, how can I set it?

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

2 participants