Skip to content

Missing exceptions for cloud speech errors #16

@MarkMarcel

Description

@MarkMarcel

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions