@Generated(value="software.amazon.awssdk:codegen") public final class LanguageWithScore extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LanguageWithScore.Builder,LanguageWithScore>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LanguageWithScore.Builder |
| Modifier and Type | Method and Description |
|---|---|
static LanguageWithScore.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
LanguageCode |
languageCode()
The language code of the identified language.
|
String |
languageCodeAsString()
The language code of the identified language.
|
Double |
score()
The confidence score associated with the identified language code.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LanguageWithScore.Builder> |
serializableBuilderClass() |
LanguageWithScore.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final LanguageCode languageCode()
The language code of the identified language.
If the service returns an enum value that is not available in the current SDK version, languageCode will
return LanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
languageCodeAsString().
LanguageCodepublic final String languageCodeAsString()
The language code of the identified language.
If the service returns an enum value that is not available in the current SDK version, languageCode will
return LanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
languageCodeAsString().
LanguageCodepublic final Double score()
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.
public LanguageWithScore.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LanguageWithScore.Builder,LanguageWithScore>public static LanguageWithScore.Builder builder()
public static Class<? extends LanguageWithScore.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.