feat: adds new multi region sample #96
feat: adds new multi region sample #96
Conversation
…mitations on local files for the long_running_recognize
…mitations on local files for the long_running_recognize
…ime limitations on local files for the long_running_recognize
… time limitations on local files for the long_running_recognize
pick f510e8f chore: I updated the comments on the transcribe_async file to reflect time limitations on local files for the long_running_recognize
Here is the summary of changes. You added 2 region tags.
This comment is generated by snippet-bot.
|
samples/snippets/multi_region.py
Outdated
from google.cloud import speech | ||
from google.api_core import client_options | ||
|
||
# [END speech_python_migration_imports] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove--we only need these in the actual quickstart.
samples/snippets/multi_region.py
Outdated
# limitations under the License. | ||
|
||
|
||
def run_multi_region(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rename this. We usually try to give functions names that are a bit more descriptive.
Maybe try transcribe_with_multi_region
?
samples/snippets/multi_region.py
Outdated
# [END speech_multi_region] | ||
|
||
|
||
if __name__ == "__main__": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove. We're moving towards a paradigm where Python samples aren't CLI runnable.
samples/snippets/profanity_filter.py
Outdated
|
||
# [END speech_recognize_with_profanity_filter_gcs] | ||
|
||
if __name__ == "__main__": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this. The team is moving away from CLI presentation of samples.
This new sample shows how to provide an endpoint to the speech service