LanguageWithScore class final
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.
Constructors
- LanguageWithScore({LanguageCode? languageCode, double? score})
-
Creates a LanguageWithScore from the given values.
const
- LanguageWithScore.fromJson(String source)
-
Creates a LanguageWithScore from the given JSON string.
factory
-
LanguageWithScore.fromMap(Map<
String, dynamic> map) -
Creates a LanguageWithScore from the given Map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- languageCode → LanguageCode?
-
The language code of the identified language.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → double?
-
The confidence score associated with the identified language code.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Returns the JSON string representation of this LanguageWithScore.
-
toMap(
) → Map< String, dynamic> - Returns the Map representation of this LanguageWithScore.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited