Skip to content

LanguageWithScore

Structure Class

LanguageWithScore dataclass

Bases: _SerdeShape

The language code that represents the language identified in your audio, including the associated confidence score. If you enabled channel identification in your request and each channel contained a different language, you will have more than one LanguageWithScore result.

Attributes

language_code class-attribute instance-attribute
language_code: str | None = ...

The language code of the identified language.

score class-attribute instance-attribute
score: float = ...

The confidence score associated with the identified language code. Confidence scores are values between zero and one; larger values indicate a higher confidence in the identified language.