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

Missing exceptions for cloud speech errors #16

Open
MarkMarcel opened this issue May 28, 2021 · 2 comments
Open

Missing exceptions for cloud speech errors #16

MarkMarcel opened this issue May 28, 2021 · 2 comments

Comments

@MarkMarcel
Copy link

MarkMarcel commented May 28, 2021

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:

  1. Initialise RecognitionConfig with speechContext
  2. Provide speechContext object with a list exceeding 5,000 phrases
  3. Create StreamRecognitionConfig passing in previously instantiated RecognitionConfig
  4. Call speechToText.streamRecognize with the configs
  5. 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]
@MarkMarcel
Copy link
Author

SpeechContext is missing model adaption boost parameters as well

@felixjunghans
Copy link
Owner

Thanks for your feedback. I will take it into account in the next update.

The boost parameter should be present in the latest version. However, only in SpeechConfigBeta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants