Cloud Speech V1p1beta1 Client - Class VoiceActivityTimeout (1.15.0)

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
NameDescription
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
TypeDescription
Google\Protobuf\Duration|null

hasSpeechStartTimeout

clearSpeechStartTimeout

setSpeechStartTimeout

Duration to timeout the stream if no speech begins.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getSpeechEndTimeout

Duration to timeout the stream after speech ends.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasSpeechEndTimeout

clearSpeechEndTimeout

setSpeechEndTimeout

Duration to timeout the stream after speech ends.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this