Interface StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder (4.23.0)

public static interface StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getSpeechEndTimeout()

public abstract Duration getSpeechEndTimeout()

Duration to timeout the stream after speech ends. If this is set and no speech is detected in this duration after speech was detected, the server will close the stream.

.google.protobuf.Duration speech_end_timeout = 2;

Returns
TypeDescription
Duration

The speechEndTimeout.

getSpeechEndTimeoutOrBuilder()

public abstract DurationOrBuilder getSpeechEndTimeoutOrBuilder()

Duration to timeout the stream after speech ends. If this is set and no speech is detected in this duration after speech was detected, the server will close the stream.

.google.protobuf.Duration speech_end_timeout = 2;

Returns
TypeDescription
DurationOrBuilder

getSpeechStartTimeout()

public abstract Duration getSpeechStartTimeout()

Duration to timeout the stream if no speech begins. If this is set and no speech is detected in this duration at the start of the stream, the server will close the stream.

.google.protobuf.Duration speech_start_timeout = 1;

Returns
TypeDescription
Duration

The speechStartTimeout.

getSpeechStartTimeoutOrBuilder()

public abstract DurationOrBuilder getSpeechStartTimeoutOrBuilder()

Duration to timeout the stream if no speech begins. If this is set and no speech is detected in this duration at the start of the stream, the server will close the stream.

.google.protobuf.Duration speech_start_timeout = 1;

Returns
TypeDescription
DurationOrBuilder

hasSpeechEndTimeout()

public abstract boolean hasSpeechEndTimeout()

Duration to timeout the stream after speech ends. If this is set and no speech is detected in this duration after speech was detected, the server will close the stream.

.google.protobuf.Duration speech_end_timeout = 2;

Returns
TypeDescription
boolean

Whether the speechEndTimeout field is set.

hasSpeechStartTimeout()

public abstract boolean hasSpeechStartTimeout()

Duration to timeout the stream if no speech begins. If this is set and no speech is detected in this duration at the start of the stream, the server will close the stream.

.google.protobuf.Duration speech_start_timeout = 1;

Returns
TypeDescription
boolean

Whether the speechStartTimeout field is set.