-
Notifications
You must be signed in to change notification settings - Fork 0
Add speechmatics #1
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
Conversation
jamied157
left a comment
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.
Looks good, few small things in the examples and I don't know how we deal with sample rate
speech_recognition/__init__.py
Outdated
| raise RequestError("missing speechmatics python module: install using `pip install speechmatics-python`") | ||
|
|
||
| wav_data = audio_data.get_wav_data( | ||
| convert_rate=None if audio_data.sample_rate >= 16000 else 16000 # audio samples must be at least 16 kHz |
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.
You might know better than me - is this correct? Do we deal with sample rate >= 16000 ourselves?
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.
Not sure, let me check with some of the heads
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.
I asked Dan, he reckons we don't get anything less than 8000, but may be able to support lower than that. It's not documented anywhere that I can see. Maybe we just let the runtime deal with it and pass any errors to users?
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.
Yeah sounds good to me, we can keep an eye on the repo and see if anyone is having issues if it gets merged
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.
Removed that now, will resolve and merge and then open a PR into the upstream
No description provided.