Uh oh!
There was an error while loading. Please reload this page.
add Speech API auto punctuation sample - #1446
Conversation
telpirion
commented
Apr 12, 2018
The auto punctuation sample helps greatly. Thank you! |
| # [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.
jgeorge-burwood
commented
Apr 12, 2018
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. |
jgeorge-burwood
commented
Apr 12, 2018
solved -- I needed the types and enums from v1p1beta1 as well. doh! |
dalmam11
commented
Apr 18, 2018
jgeorge-burwood I have the same issue where did you found v1p1beta1? |
dalmam11
commented
Apr 18, 2018
cannot import name 'speech_v1p1beta1' |
jgeorge-burwood
commented
Apr 24, 2018
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.