Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
fix: deleted a duplicate line that calls the recognizer
Browse files Browse the repository at this point in the history
  • Loading branch information
b-loved-dreamer committed Oct 28, 2020
1 parent c37dbd0 commit 8a42cd4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions samples/snippets/transcribe_async.py
Expand Up @@ -49,13 +49,9 @@ def transcribe_file(speech_file):
language_code="en-US",
)

# [START speech_python_migration_async_response
operation = client.long_running_recognize(
request={"config": config, "audio": audio}
)
operation = client.long_running_recognize(config=config, audio=audio)
# [END speech_python_migration_async_request]

# [START speech_python_migration_async_response
print("Waiting for operation to complete...")
response = operation.result(timeout=90)

Expand Down Expand Up @@ -85,10 +81,6 @@ def transcribe_gcs(gcs_uri):
language_code="en-US",
)

operation = client.long_running_recognize(
request={"config": config, "audio": audio}
)

operation = client.long_running_recognize(config=config, audio=audio)

print("Waiting for operation to complete...")
Expand Down

0 comments on commit 8a42cd4

Please sign in to comment.