Cloud Speech V1p1beta1 Client - Class SpeechAdaptationInfo (1.8.0)

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
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.

Generated from protobuf field bool adaptation_timeout = 1;

Returns
TypeDescription
bool

setAdaptationTimeout

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

Generated from protobuf field bool adaptation_timeout = 1;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getTimeoutMessage

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

Generated from protobuf field string timeout_message = 4;

Returns
TypeDescription
string

setTimeoutMessage

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

Generated from protobuf field string timeout_message = 4;

Parameter
NameDescription
var string
Returns
TypeDescription
$this