Result¶
Structure Class¶
Result
dataclass
¶
The Result associated with a .
Contains a set of transcription results from one or more audio segments, along with additional information per your request parameters. This can include information relating to alternative transcriptions, channel identification, partial result stabilization, language identification, and other transcription-related data.
Attributes¶
alternatives
class-attribute
instance-attribute
¶
alternatives: list[Alternative] | None = None
A list of possible alternative transcriptions for the input audio. Each
alternative may contain one or more of Items, Entities, or
Transcript.
channel_id
class-attribute
instance-attribute
¶
channel_id: str | None = None
Indicates which audio channel is associated with the Result.
end_time
class-attribute
instance-attribute
¶
end_time: float = 0
The end time of the Result in seconds, with millisecond precision
(e.g., 1.056).
is_partial
class-attribute
instance-attribute
¶
is_partial: bool = False
Indicates if the segment is complete.
If IsPartial is true, the segment is not complete. If IsPartial is
false, the segment is complete.
language_code
class-attribute
instance-attribute
¶
language_code: LanguageCode | None = None
The language code that represents the language spoken in your audio stream.
language_identification
class-attribute
instance-attribute
¶
language_identification: list[LanguageWithScore] | None = None
The language code of the dominant language identified in your stream.
If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.
result_id
class-attribute
instance-attribute
¶
result_id: str | None = None
Provides a unique identifier for the Result.
start_time
class-attribute
instance-attribute
¶
start_time: float = 0
The start time of the Result in seconds, with millisecond precision
(e.g., 1.056).