-
Notifications
You must be signed in to change notification settings - Fork 57
Missing exceptions for cloud speech errors #16
Copy link
Copy link
Open
Description
Describe the bug
In order to use model adaptation and model adaptation boost features, I passed an array of strings to speechContext in recognitionConfig. However, the length exceeded the limit of phrases found here. Recognition did not work and the package didn't raise an exception.
To Reproduce
Steps to reproduce the behavior:
- Initialise RecognitionConfig with speechContext
- Provide speechContext object with a list exceeding 5,000 phrases
- Create StreamRecognitionConfig passing in previously instantiated RecognitionConfig
- Call speechToText.streamRecognize with the configs
- No transcription received
Expected behavior
An exception to indicate API limits that have been exceeded
Smartphone (please complete the following information):
- Device: [e.g. Samsung Galaxy Tab S3]
- OS: [e.g. Android 9]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels