Interface StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder (4.40.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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the speechStartTimeout field is set.