-
Notifications
You must be signed in to change notification settings - Fork 38
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
Request: Make encoder options configurable at runtime #22
Comments
It looks like the file here contains the configuration for the Opus encoder: https://github.com/kbumsik/opus-media-recorder/blob/master/src/OpusEncoder.js If so, I guess this issue is changing from asking: |
Hmm. I changed that constant, however now the assert at this location is failing: https://github.com/kbumsik/opus-media-recorder/blob/master/src/ContainerInterface.cpp#L20 Is updating I'd need it to support a sampling rate of 16000 to send the resulting Opus audio to the DialogFlow api: https://cloud.google.com/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.AudioEncoding |
For others coming across this issue, I ended up solving the problem by using the opus-recorder library. The API is maybe not quite as nice, but it has more configuration options, including the one I need (sample rate). Here is the code I used, which works with uploading to DialogFlow:
|
Is there any way to customize the bitrate for the Opus encoding?
I'd like to use this library to record speech to a file, however some recordings might be long, so the user may want to lower the bit-rate/quality to reduce the resulting file-size.
The text was updated successfully, but these errors were encountered: