Cloud Speech V1 Client - Class SpeechAdaptationInfo (1.16.0)

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

Information on speech adaptation use in results

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

Namespace

Google \ Cloud \ Speech \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
bool

setAdaptationTimeout

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getTimeoutMessage

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

Returns
TypeDescription
string

setTimeoutMessage

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this