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

Commit

Permalink
fix: migrated to speech 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
b-loved-dreamer committed Oct 5, 2020
1 parent e87a81e commit abb9e53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/microphone/transcribe_streaming_infinite.py
Expand Up @@ -255,6 +255,7 @@ def main():
=======
language_code='en-US',
max_alternatives=1)

streaming_config = speech.StreamingRecognitionConfig(
config=config,
interim_results=True)
Expand Down
1 change: 1 addition & 0 deletions samples/microphone/transcribe_streaming_mic.py
Expand Up @@ -178,6 +178,7 @@ def main():
sample_rate_hertz=RATE,
language_code=language_code,
)

streaming_config = speech.StreamingRecognitionConfig(
config=config, interim_results=True
)
Expand Down

0 comments on commit abb9e53

Please sign in to comment.