Cloud Speech V1p1beta1 Client - Class VoiceActivityTimeout (1.18.3)

Reference documentation and code samples for the Cloud Speech V1p1beta1 Client class VoiceActivityTimeout.

Events that a timeout can be set on for voice activity.

Generated from protobuf message google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.VoiceActivityTimeout

Namespace

Google \ Cloud \ Speech \ V1p1beta1 \ StreamingRecognitionConfig

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ speech_start_timeout
Google\Protobuf\Duration

Duration to timeout the stream if no speech begins.

↳ speech_end_timeout
Google\Protobuf\Duration

Duration to timeout the stream after speech ends.

getSpeechStartTimeout

Duration to timeout the stream if no speech begins.

Returns
Type
Description

hasSpeechStartTimeout

clearSpeechStartTimeout

setSpeechStartTimeout

Duration to timeout the stream if no speech begins.

Parameter
Name
Description
Returns
Type
Description
$this

getSpeechEndTimeout

Duration to timeout the stream after speech ends.

Returns
Type
Description

hasSpeechEndTimeout

clearSpeechEndTimeout

setSpeechEndTimeout

Duration to timeout the stream after speech ends.

Parameter
Name
Description
Returns
Type
Description
$this