Skip to content
Discussion options

You must be logged in to vote

I think these features are only available with Speech V2. They are both documented here:

https://cloud.google.com/speech-to-text/v2/docs/reference/rpc/google.cloud.speech.v2#voiceactivitytimeout

Assuming you are using AsyncStreamingRecognize() you need to fill the right fields in the StreamingRecognizeRequest message:

https://cloud.google.com/speech-to-text/v2/docs/reference/rpc/google.cloud.speech.v2#streamingrecognizerequest

That is, something like:

google::cloud::speech::v2::StreamingRecognize request;
auto& features = *request.mutable_streaming_config()->mutable_streaming_features();
features.set_enable_voice_activity_events(true);
auto& va = features.mutable_voice_activity_timeout();…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gauravG2021
Comment options

@coryan
Comment options

coryan Nov 28, 2022
Collaborator

Answer selected by coryan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants