@Generated(value="software.amazon.awssdk:codegen") public final class Result extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Result.Builder,Result>
The result of transcribing a portion of the input audio stream.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Result.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<Alternative> |
alternatives()
A list of possible transcriptions for the audio.
|
static Result.Builder |
builder() |
String |
channelId()
When channel identification is enabled, Amazon Transcribe transcribes the speech from each audio channel
separately.
|
Double |
endTime()
The offset in seconds from the beginning of the audio stream to the end of the result.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAlternatives()
For responses, this returns true if the service returned a value for the Alternatives property.
|
int |
hashCode() |
boolean |
hasLanguageIdentification()
For responses, this returns true if the service returned a value for the LanguageIdentification property.
|
Boolean |
isPartial()
Amazon Transcribe divides the incoming audio stream into segments at natural points in the audio.
|
LanguageCode |
languageCode()
The language code of the identified language in your media stream.
|
String |
languageCodeAsString()
The language code of the identified language in your media stream.
|
List<LanguageWithScore> |
languageIdentification()
The language code of the dominant language identified in your media.
|
String |
resultId()
A unique identifier for the result.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Result.Builder> |
serializableBuilderClass() |
Double |
startTime()
The offset in seconds from the beginning of the audio stream to the beginning of the result.
|
Result.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String resultId()
A unique identifier for the result.
public final Double startTime()
The offset in seconds from the beginning of the audio stream to the beginning of the result.
public final Double endTime()
The offset in seconds from the beginning of the audio stream to the end of the result.
public final Boolean isPartial()
Amazon Transcribe divides the incoming audio stream into segments at natural points in the audio. Transcription results are returned based on these segments.
The IsPartial field is true to indicate that Amazon Transcribe has additional
transcription data to send, false to indicate that this is the last transcription result for the
segment.
The IsPartial field is true to indicate that Amazon Transcribe has additional
transcription data to send, false to indicate that this is the last transcription result for
the segment.
public final boolean hasAlternatives()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Alternative> alternatives()
A list of possible transcriptions for the audio. Each alternative typically contains one item that
contains the result of the transcription.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAlternatives() method.
item that contains the result of the transcription.public final String channelId()
When channel identification is enabled, Amazon Transcribe transcribes the speech from each audio channel separately.
You can use ChannelId to retrieve the transcription results for a single channel in your audio
stream.
You can use ChannelId to retrieve the transcription results for a single channel in your
audio stream.
public final LanguageCode languageCode()
The language code of the identified language in your media stream.
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 in your media stream.
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 boolean hasLanguageIdentification()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<LanguageWithScore> languageIdentification()
The language code of the dominant language identified in your media.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLanguageIdentification() method.
public Result.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Result.Builder,Result>public static Result.Builder builder()
public static Class<? extends Result.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.