From 138549b8fa488b38df13ee91fc77d2e64bddee2d Mon Sep 17 00:00:00 2001 From: Mariana Quinde Garcia Date: Fri, 7 May 2021 15:49:53 -0400 Subject: [PATCH] Spoken punctuation and emojis sample test --- samples/snippets/beta_snippets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/snippets/beta_snippets.py b/samples/snippets/beta_snippets.py index de49308f..e225461b 100644 --- a/samples/snippets/beta_snippets.py +++ b/samples/snippets/beta_snippets.py @@ -293,7 +293,7 @@ def transcribe_file_with_word_level_confidence(): def transcribe_file_with_spoken_punctuation_end_emojis(): """Transcribe the given audio file with spoken punctuation and emojis enabled.""" - # [START speech_transcribe_spoken_punctuation_emoji_beta] + # [START speech_transcribe_spoken_punctuation_emojis_beta] from google.cloud import speech_v1p1beta1 as speech from google.protobuf import wrappers_pb2 @@ -311,8 +311,8 @@ def transcribe_file_with_spoken_punctuation_end_emojis(): language_code="en-US", # Enable spoken punctuation enable_spoken_punctuation=wrappers_pb2.BoolValue(value=True), - # Enable spoken emoji - enable_spoken_emoji=wrappers_pb2.BoolValue(value=True), + # Enable spoken emojis + enable_spoken_emojis=wrappers_pb2.BoolValue(value=True), ) response = client.recognize(config=config, audio=audio) @@ -322,7 +322,7 @@ def transcribe_file_with_spoken_punctuation_end_emojis(): print("-" * 20) print(u"First alternative of result {}".format(i)) print(u"Transcript: {}".format(alternative.transcript)) - # [END speech_transcribe_spoken_punctuation_emoji_beta] + # [END speech_transcribe_spoken_punctuation_emojis_beta] if __name__ == "__main__":