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

add Speech API auto punctuation sample #1446

Merged
merged 2 commits into from
Apr 12, 2018

Conversation

dizcology
Copy link
Member

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 10, 2018
@telpirion
Copy link
Contributor

The auto punctuation sample helps greatly. Thank you!

Copy link
Contributor

@beccasaurus beccasaurus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. Sure. 😛

LGTM!

@@ -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."""
Copy link
Contributor

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)

Copy link
Member Author

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.

@michaelawyu michaelawyu merged commit 41e8754 into GoogleCloudPlatform:master Apr 12, 2018
@jgeorge-burwood
Copy link

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
Copy link

solved -- I needed the types and enums from v1p1beta1 as well. doh!

@dalmam11
Copy link

jgeorge-burwood I have the same issue where did you found v1p1beta1?

@dalmam11
Copy link

cannot import name 'speech_v1p1beta1'

@jgeorge-burwood
Copy link

dalmam11 make sure you're using at least 0.33.0 of the client library.
pip install --upgrade google-cloud-speech

Then just add the imports, you'll probably want something like:
...
from google.cloud import speech_v1p1beta1 as speech
from google.cloud.speech_v1p1beta1 import enums
...

busunkim96 pushed a commit to busunkim96/python-speech that referenced this pull request Sep 1, 2020
busunkim96 pushed a commit to googleapis/python-speech that referenced this pull request Sep 3, 2020
telpirion pushed a commit that referenced this pull request Jan 13, 2023
* add auto punctuation sample

* correct docstring
dandhlee pushed a commit that referenced this pull request Feb 9, 2023
* add auto punctuation sample

* correct docstring
telpirion pushed a commit that referenced this pull request Mar 13, 2023
* add auto punctuation sample

* correct docstring
atulep pushed a commit to googleapis/google-cloud-python that referenced this pull request Apr 6, 2023
atulep pushed a commit to googleapis/google-cloud-python that referenced this pull request Apr 6, 2023
atulep pushed a commit to googleapis/google-cloud-python that referenced this pull request Apr 18, 2023
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants