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
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.
Generated from protobuf field bool adaptation_timeout = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |