-
Notifications
You must be signed in to change notification settings - Fork 55
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
datasets: Handle converting int16
audio data in VoiceSample
.
#26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's easy, suggest adding a test to datasets_test.py, a la the existing create_sample
.
Added tests, using some type hints in the test resulted in the need to enhance Will wait a bit to merge in case there's feedback on the tests. |
We saw `VoiceSample` failing the assert on `float32` audio data when playing around with the Gradio infer app and submitting an `mp3` file. We didn't dig deeper into Gradio (I'm sure it's possible to alter/convert there as well), but it seems potentially useful for `VoiceSample` to handle `int16` and `int32` audio data on top of what it already handles.
Merged and gave you write access. Thanks! |
We saw
VoiceSample
failing the assert onfloat32
audio data when playing around with the Gradio infer app and submitting anmp3
file. We didn't dig deeper into Gradio (I'm sure it's possible to alter/convert there as well), but it seems potentially useful forVoiceSample
to handleint16
audio data on top of what it already handles.