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

support 8 kHz sampling rate #132

Closed
ehussain opened this issue Feb 2, 2023 · 2 comments
Closed

support 8 kHz sampling rate #132

ehussain opened this issue Feb 2, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ehussain
Copy link

ehussain commented Feb 2, 2023

Is your feature request related to a problem? Please describe.
I am using python library to detect voice activity in audio file. but we are going to receive input from stream and it is going to be 8000hz single channel audio. But when I try to test with audio of 8khz sampling rate then library fails because it is not 16000hz rate.

Describe the solution you'd like
Please provide option to set sampling rate for input file.

Additional context
Audio stream will be coming from twilio and we do not have control on the frequency they provide, it is always going to be 8000hz single channel audio. But here we want to use picovoice cobra for activity detection but it is not supported.

@ehussain ehussain added the enhancement New feature or request label Feb 2, 2023
@kenarsa
Copy link
Member

kenarsa commented Feb 2, 2023

you need to upsample the 8kHz audio (yourself) to 16kHz and then pass it to Cobra. Cobra at this time only accepts 16kHz linear PCM. I keep this open to see if we can add it to our roadmap but to be clear we are not working on this at this time.

@kenarsa kenarsa self-assigned this Feb 2, 2023
@kenarsa kenarsa changed the title Cobra Python Library - Ability to detect Voice activity on 8000hz sampling rate support 8 kHz sampling rate Feb 4, 2023
@kenarsa
Copy link
Member

kenarsa commented Mar 6, 2023

closing due to inactivity. re-open if needed.

@kenarsa kenarsa closed this as completed Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants