Skip to content
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

Create an example of endless streaming for speech-to-text. #3356

Closed
coryan opened this issue Jan 29, 2020 · 4 comments
Closed

Create an example of endless streaming for speech-to-text. #3356

coryan opened this issue Jan 29, 2020 · 4 comments
Labels
api: speech Issues related to the Speech-to-Text API. lang: cpp Issues specific to C++. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@coryan
Copy link
Contributor

coryan commented Jan 29, 2020

The Cloud Speech-to-Text service limits streams to 305 seconds:

https://cloud.google.com/speech-to-text/quotas

There are examples in other languages showing how to implement "endless" or "infinite" streaming:

https://cloud.google.com/speech-to-text/docs/endless-streaming-tutorial

We should write such an example in C++.

@coryan coryan added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. api: speech Issues related to the Speech-to-Text API. labels Jan 29, 2020
@tumusudheer
Copy link

Hi,

It would be great if this can be along the lines of streaming_transcribe.cc where one thread is writing the audio to google speech stream while another thread is reading responses from the stream and processing them.
Main complexity is

  1. Resetting the stream properly every x seconds
  2. synchronizing the stream and other object between multiple threads
  3. Make sure audio that is coming while the stream is getting reset does get processed without any loss

May be a pseudo code to start with will be very helpful.

Thank you.

@nicain nicain added the lang: cpp Issues specific to C++. label Nov 6, 2021
@devjgm
Copy link
Contributor

devjgm commented May 12, 2022

Unassigned, but we still want this.

@coryan
Copy link
Contributor Author

coryan commented Sep 21, 2022

Seems like we will not have time to work on this for the foreseeable future.

@coryan coryan closed this as completed Sep 21, 2022
@mohammadkhair7
Copy link

It is key and important to provide such features by Google per the link below. Please work on it and test it well to enable development applications using it.

M. Khair

[> Hi,

It would be great if this can be along the lines of streaming_transcribe.cc where one thread is writing the audio to google speech stream while another thread is reading responses from the stream and processing them. Main complexity is

  1. Resetting the stream properly every x seconds
  2. synchronizing the stream and other object between multiple threads
  3. Make sure audio that is coming while the stream is getting reset does get processed without any loss

May be a pseudo code to start with will be very helpful.

Thank you.

](#3356 (comment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: speech Issues related to the Speech-to-Text API. lang: cpp Issues specific to C++. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

5 participants