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

Speech region tag update #1644

Merged
merged 13 commits into from
Aug 21, 2018
Prev Previous commit
Next Next commit
update word level confidence tags to beta
  • Loading branch information
alixhami committed Aug 16, 2018
commit 394665f8d839a3ba5f74192c83faf005df4f7b06
4 changes: 2 additions & 2 deletions speech/cloud-client/beta_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def transcribe_file_with_multilanguage():
def transcribe_file_with_word_level_confidence():
"""Transcribe the given audio file synchronously with
word level confidence."""
# [START speech_transcribe_word_level_confidence]
# [START speech_transcribe_word_level_confidence_beta]
from google.cloud import speech_v1p1beta1 as speech
client = speech.SpeechClient()

Expand All @@ -270,7 +270,7 @@ def transcribe_file_with_word_level_confidence():
print(u'Transcript: {}'.format(alternative.transcript))
print(u'First Word and Confidence: ({}, {})'.format(
alternative.words[0].word, alternative.words[0].confidence))
# [END speech_transcribe_word_level_confidence]
# [END speech_transcribe_word_level_confidence_beta]


if __name__ == '__main__':
Expand Down