Google Cloud Dialogflow Cx V3 Client - Class SpeechSettings (0.4.0)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class SpeechSettings.

Define behaviors of speech to text detection.

Generated from protobuf message google.cloud.dialogflow.cx.v3.AdvancedSettings.SpeechSettings

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ AdvancedSettings

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ endpointer_sensitivity int

Sensitivity of the speech model that detects the end of speech. Scale from 0 to 100.

↳ no_speech_timeout Google\Protobuf\Duration

Timeout before detecting no speech.

↳ use_timeout_based_endpointing bool

Use timeout based endpointing, interpreting endpointer sensitivy as seconds of timeout value.

↳ models array|Google\Protobuf\Internal\MapField

Mapping from language to Speech-to-Text model. The mapped Speech-to-Text model will be selected for requests from its corresponding language. For more information, see Speech models.

getEndpointerSensitivity

Sensitivity of the speech model that detects the end of speech.

Scale from 0 to 100.

Returns
Type Description
int

setEndpointerSensitivity

Sensitivity of the speech model that detects the end of speech.

Scale from 0 to 100.

Parameter
Name Description
var int
Returns
Type Description
$this

getNoSpeechTimeout

Timeout before detecting no speech.

Returns
Type Description
Google\Protobuf\Duration|null

hasNoSpeechTimeout

clearNoSpeechTimeout

setNoSpeechTimeout

Timeout before detecting no speech.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getUseTimeoutBasedEndpointing

Use timeout based endpointing, interpreting endpointer sensitivy as seconds of timeout value.

Returns
Type Description
bool

setUseTimeoutBasedEndpointing

Use timeout based endpointing, interpreting endpointer sensitivy as seconds of timeout value.

Parameter
Name Description
var bool
Returns
Type Description
$this

getModels

Mapping from language to Speech-to-Text model. The mapped Speech-to-Text model will be selected for requests from its corresponding language.

For more information, see Speech models.

Returns
Type Description
Google\Protobuf\Internal\MapField

setModels

Mapping from language to Speech-to-Text model. The mapped Speech-to-Text model will be selected for requests from its corresponding language.

For more information, see Speech models.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this