Reference documentation and code samples for the Cloud Video Intelligence V1 Client class SpeechTranscription.
A speech recognition result corresponding to a portion of the audio.
Generated from protobuf message google.cloud.videointelligence.v1.SpeechTranscription
Namespace
Google \ Cloud \ VideoIntelligence \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ alternatives |
array<Google\Cloud\VideoIntelligence\V1\SpeechRecognitionAlternative>
May contain one or more recognition hypotheses (up to the maximum specified in |
↳ language_code |
string
Output only. The BCP-47 language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio. |
getAlternatives
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives
). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setAlternatives
May contain one or more recognition hypotheses (up to the maximum specified
in max_alternatives
). These alternatives are ordered in terms of
accuracy, with the top (first) alternative being the most probable, as
ranked by the recognizer.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\VideoIntelligence\V1\SpeechRecognitionAlternative>
|
Returns | |
---|---|
Type | Description |
$this |
getLanguageCode
Output only. The BCP-47 language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
Returns | |
---|---|
Type | Description |
string |
setLanguageCode
Output only. The BCP-47 language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |