Interface StreamingRecognitionFeaturesOrBuilder (4.44.0)

public interface StreamingRecognitionFeaturesOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnableVoiceActivityEvents()

public abstract boolean getEnableVoiceActivityEvents()

If true, responses with voice activity speech events will be returned as they are detected.

bool enable_voice_activity_events = 1;

Returns
Type Description
boolean

The enableVoiceActivityEvents.

getInterimResults()

public abstract boolean getInterimResults()

Whether or not to stream interim results to the client. If set to true, interim results will be streamed to the client. Otherwise, only the final response will be streamed back.

bool interim_results = 2;

Returns
Type Description
boolean

The interimResults.

getVoiceActivityTimeout()

public abstract StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout()

If set, the server will automatically close the stream after the specified duration has elapsed after the last VOICE_ACTIVITY speech event has been sent. The field voice_activity_events must also be set to true.

.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3;

Returns
Type Description
StreamingRecognitionFeatures.VoiceActivityTimeout

The voiceActivityTimeout.

getVoiceActivityTimeoutOrBuilder()

public abstract StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder()

If set, the server will automatically close the stream after the specified duration has elapsed after the last VOICE_ACTIVITY speech event has been sent. The field voice_activity_events must also be set to true.

.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3;

Returns
Type Description
StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder

hasVoiceActivityTimeout()

public abstract boolean hasVoiceActivityTimeout()

If set, the server will automatically close the stream after the specified duration has elapsed after the last VOICE_ACTIVITY speech event has been sent. The field voice_activity_events must also be set to true.

.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3;

Returns
Type Description
boolean

Whether the voiceActivityTimeout field is set.