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

enable intentional restart of endless streaming. #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

harajune
Copy link

Goal: enable the intentional restart of endless streaming.

Google Speech to Text streaming API doesn't finalize the result until the connections close.
This behavior is sometimes inconvenient because the result text is too long to handle.

So. It is convenient to restart the recognition intentionally.

What I did: make _restart public

To realize the goal, I modified the EndlessStreamingService class to make _restart public.

  • renamed the function to restart()
  • reset the _resetTimer timer.
  • modified v1/v2/beta classes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant