You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update samples for google-cloud-speech to improve usability #11248
An issue was filed in google-cloud-python related to usability issues with the google-cloud-speech sample located here.
Currently there are 2 imports in speech/snippets/transcribe_streaming_v2.py with similar names. SpeechClient and cloud_speech could be confusing to readers as they appear to be similar.
Right now we have
from google.cloud.speech_v2 import SpeechClient
from google.cloud.speech_v2.types import cloud_speech
Instead we could have
from google.cloud.speech_v2 import SpeechClient
from google.cloud.speech_v2.types import cloud_speech as cloud_speech_types
or this could also work
from google.cloud.speech_v2 import SpeechClient
from google.cloud.speech_v2 import StreamingRecognizeRequest
from google.cloud.speech_v2 import RecognitionConfig
from google.cloud.speech_v2 import StreamingRecognizeResponse
hey @magar51, apologies I had asked @jping0220 to take a look at this issue last week and she had started working on this already. Please do take a look at her PR and give feedback if you can. Thank you!
Activity
magar51 commentedon Mar 5, 2024
I am taking it up
jping0220 commentedon Mar 6, 2024
This problem is being fixed. Let me know if there is any more questions. Thank you!
iennae commentedon Mar 6, 2024
hey @magar51, apologies I had asked @jping0220 to take a look at this issue last week and she had started working on this already. Please do take a look at her PR and give feedback if you can. Thank you!
Handling Issue GoogleCloudPlatform#11248
Merge pull request GoogleCloudPlatform#1 from magar51/feat/speech_usa…
Merge branch 'main' of https://github.aexp.com/magar51/python-docs-sa…
Outdated bash operator import on Composer 2 Docs #11433 (#11440)
There are typos in a comment and a log message #11294 (#11332)