Reference documentation and code samples for the Cloud Speech V1p1beta1 Client class RecognizeResponse.
The only message returned to the client by the Recognize
method. It
contains the result as zero or more sequential SpeechRecognitionResult
messages.
Generated from protobuf message google.cloud.speech.v1p1beta1.RecognizeResponse
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ results
array< Google\Cloud\Speech\V1p1beta1\SpeechRecognitionResult
>
Sequential list of transcription results corresponding to sequential portions of audio.
↳ total_billed_time
↳ speech_adaptation_info
Google\Cloud\Speech\V1p1beta1\SpeechAdaptationInfo
Provides information on adaptation behavior in response
↳ request_id
int|string
The ID associated with the request. This is a unique ID specific only to the given request.
getResults
Sequential list of transcription results corresponding to sequential portions of audio.
setResults
Sequential list of transcription results corresponding to sequential portions of audio.
$this
getTotalBilledTime
When available, billed audio seconds for the corresponding request.
hasTotalBilledTime
clearTotalBilledTime
setTotalBilledTime
When available, billed audio seconds for the corresponding request.
$this
getSpeechAdaptationInfo
Provides information on adaptation behavior in response
hasSpeechAdaptationInfo
clearSpeechAdaptationInfo
setSpeechAdaptationInfo
Provides information on adaptation behavior in response
$this
getRequestId
The ID associated with the request. This is a unique ID specific only to the given request.
int|string
setRequestId
The ID associated with the request. This is a unique ID specific only to the given request.
var
int|string
$this