add Speech API auto punctuation sample#1446
add Speech API auto punctuation sample#1446michaelawyu merged 2 commits intoGoogleCloudPlatform:masterfrom
Conversation
|
The auto punctuation sample helps greatly. Thank you! |
speech/cloud-client/beta_snippets.py
Outdated
|
|
||
| # [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.
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.
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.