SpeechRecognitionResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A speech recognition result corresponding to a portion of the audio.
Attributes |
|
---|---|
Name | Description |
alternatives |
MutableSequence[google.cloud.speech_v2.types.SpeechRecognitionAlternative]
May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer. |
channel_tag |
int
For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For audio_channel_count = N , its
output values can range from 1 to N .
|
result_end_offset |
google.protobuf.duration_pb2.Duration
Time offset of the end of this result relative to the beginning of the audio. |
language_code |
str
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.
|