-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Example of Infinite Streaming for Google Speech-to-Text API v2 #11596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I found this code sample for endless streaming from microphone input using V1. Linked in this documentation: https://cloud.google.com/speech-to-text/docs/endless-streaming-tutorial This code sample should work mostly the same for V2, you would just need to swap the imports from v1 to v2. I believe the client methods are the same. |
No, the code is not interchangeable. The way to start the client, the API response, and I suspect the way it operates have changed. Here is a basic example I am working on, not based on the infinite streaming of v1, which does work, but I haven’t finished it yet. There are things I still don't understand about the library; I find it quite unfriendly to use. Version 1 was already not user-friendly, but version 2 is even more so. |
Signed-off-by: Gang Chen <[email protected]>
Submitted a PR #11847 |
Fixes #11596 --------- Signed-off-by: Gang Chen <[email protected]>
Thank you @gangchen03 it was helpful.
and the script stops working. It also doesn't work correctly with smaller models like telephony_short, which I understand are the desired ones to use in this scenario.
|
I have not found any examples of Infinite Streaming with the Google Speech-to-Text API v2, and it's unclear whether there is a mechanism in version 2 of the API that facilitates this functionality. Could you provide an example of implementation or confirm if this capability is supported?
Thanks!
The text was updated successfully, but these errors were encountered: