-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
add Speech API auto punctuation sample #1446
add Speech API auto punctuation sample #1446
Conversation
The auto punctuation sample helps greatly. Thank you! |
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.
Okay. Sure. 😛
LGTM!
speech/cloud-client/beta_snippets.py
Outdated
@@ -99,6 +100,32 @@ def transcribe_file_with_metadata(path): | |||
# [END speech_transcribe_file_with_metadata] | |||
|
|||
|
|||
# [START speech_transcribe_file_with_auto_punctuation] | |||
def transcribe_file_with_auto_punctuation(path): | |||
"""Transcribe the given audio file using an enhanced model.""" |
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.
the "enhanced model" bit, this is where I'm confused between the one type of enhanced models and the model selected enhanced models. (Not sure if this point really matters though)
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 failed to update the docstring - fixing it now.
Is this functionality available in python client library 0.33.0? Trying to test but its coming back with: Protocol message RecognitionConfig has no "enable_automatic_punctuation" field. |
solved -- I needed the types and enums from v1p1beta1 as well. doh! |
jgeorge-burwood I have the same issue where did you found v1p1beta1? |
cannot import name 'speech_v1p1beta1' |
dalmam11 make sure you're using at least 0.33.0 of the client library. Then just add the imports, you'll probably want something like: |
…python-docs-samples#1446) * add auto punctuation sample * correct docstring
…python-docs-samples#1446) * add auto punctuation sample * correct docstring
…python-docs-samples#1446) * add auto punctuation sample * correct docstring
…python-docs-samples#1446) * add auto punctuation sample * correct docstring
…python-docs-samples#1446) * add auto punctuation sample * correct docstring
…python-docs-samples#1446) * add auto punctuation sample * correct docstring
No description provided.