Cloud Speech V1p1beta1 Client - Class SpeechAdaptationInfo (1.9.1)

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

Information on speech adaptation use in results

Generated from protobuf message google.cloud.speech.v1p1beta1.SpeechAdaptationInfo

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ adaptation_timeout
bool

Whether there was a timeout when applying speech adaptation. If true, adaptation had no effect in the response transcript.

↳ timeout_message
string

If set, returns a message specifying which part of the speech adaptation request timed out.

getAdaptationTimeout

Whether there was a timeout when applying speech adaptation. If true, adaptation had no effect in the response transcript.

Returns
Type
Description
bool

setAdaptationTimeout

Whether there was a timeout when applying speech adaptation. If true, adaptation had no effect in the response transcript.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getTimeoutMessage

If set, returns a message specifying which part of the speech adaptation request timed out.

Returns
Type
Description
string

setTimeoutMessage

If set, returns a message specifying which part of the speech adaptation request timed out.

Parameter
Name
Description
var
string
Returns
Type
Description
$this