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

Fix VAD interface to support audio chunks of any length #218

Merged
merged 1 commit into from
Jun 10, 2021
Merged

Conversation

gcampax
Copy link
Contributor

@gcampax gcampax commented Jun 8, 2021

The webrtcvad library expects frames of fixed size, but Genie will
pass the buffers as they come from nodejs streaming code without
any slicing. Do the slicing and concatenation of frames here so
we only call the library with frames of fixed size.

@gcampax gcampax added the bug label Jun 8, 2021
@gcampax gcampax requested a review from ad31c0 June 8, 2021 15:56
The webrtcvad library expects frames of fixed size, but Genie will
pass the buffers as they come from nodejs streaming code without
any slicing. Do the slicing and concatenation of frames here so
we only call the library with frames of fixed size.
@gcampax gcampax merged commit c21119e into master Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants