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

bugfix: not able to use options "show_all" and "preferred_phrases" #701

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamlass
Copy link

@adamlass adamlass commented Aug 7, 2023

I was not able to use the options "show_all" and "preferred_phrases" when using recognize_google_cloud.

I got the following errors:

Unknown field for RecognitionConfig: enableWordTimeOffsets

and

Unknown field for RecognitionConfig: speechContexts

I found that the issue was a wrong integration with the google cloud API where camelCasing was used and not the python snake_casing convention as defined in the Google Cloud Python Documentation.

After manually making these changes I was able to use both options successfully.

…en using recognize_google_cloud

I was not able to use the options "show_all" and "preferred_phrases" when using recognize_google_cloud.

I found that the issue was a wrong integration with the google cloud API where camelCasing was used and not the python snake_casing convention as defined in the documentation from google: https://cloud.google.com/python/docs/reference/speech/latest/google.cloud.speech_v1.types.RecognitionConfig
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

Successfully merging this pull request may close these issues.

1 participant