Skip to content

enable intentional restart of endless streaming.#67

Open
harajune wants to merge 1 commit intofelixjunghans:masterfrom
harajune:feature/intensive-reset
Open

enable intentional restart of endless streaming.#67
harajune wants to merge 1 commit intofelixjunghans:masterfrom
harajune:feature/intensive-reset

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