Interface Result.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Result.Builder,
,Result> SdkBuilder<Result.Builder,
,Result> SdkPojo
- Enclosing class:
Result
-
Method Summary
Modifier and TypeMethodDescriptionalternatives
(Collection<Alternative> alternatives) A list of possible alternative transcriptions for the input audio.alternatives
(Consumer<Alternative.Builder>... alternatives) A list of possible alternative transcriptions for the input audio.alternatives
(Alternative... alternatives) A list of possible alternative transcriptions for the input audio.Indicates which audio channel is associated with theResult
.The end time, in milliseconds, of theResult
.Indicates if the segment is complete.languageCode
(String languageCode) The language code that represents the language spoken in your audio stream.languageCode
(LanguageCode languageCode) The language code that represents the language spoken in your audio stream.languageIdentification
(Collection<LanguageWithScore> languageIdentification) The language code of the dominant language identified in your stream.languageIdentification
(Consumer<LanguageWithScore.Builder>... languageIdentification) The language code of the dominant language identified in your stream.languageIdentification
(LanguageWithScore... languageIdentification) The language code of the dominant language identified in your stream.Provides a unique identifier for theResult
.The start time, in milliseconds, of theResult
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
resultId
Provides a unique identifier for the
Result
.- Parameters:
resultId
- Provides a unique identifier for theResult
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
The start time, in milliseconds, of the
Result
.- Parameters:
startTime
- The start time, in milliseconds, of theResult
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
The end time, in milliseconds, of the
Result
.- Parameters:
endTime
- The end time, in milliseconds, of theResult
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPartial
Indicates if the segment is complete.
If
IsPartial
istrue
, the segment is not complete. IfIsPartial
isfalse
, the segment is complete.- Parameters:
isPartial
- Indicates if the segment is complete.If
IsPartial
istrue
, the segment is not complete. IfIsPartial
isfalse
, the segment is complete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alternatives
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of
Items
,Entities
, orTranscript
.- Parameters:
alternatives
- A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more ofItems
,Entities
, orTranscript
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alternatives
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of
Items
,Entities
, orTranscript
.- Parameters:
alternatives
- A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more ofItems
,Entities
, orTranscript
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alternatives
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of
This is a convenience method that creates an instance of theItems
,Entities
, orTranscript
.Alternative.Builder
avoiding the need to create one manually viaAlternative.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toalternatives(List<Alternative>)
.- Parameters:
alternatives
- a consumer that will call methods onAlternative.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
channelId
Indicates which audio channel is associated with the
Result
.- Parameters:
channelId
- Indicates which audio channel is associated with theResult
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languageCode
The language code that represents the language spoken in your audio stream.
- Parameters:
languageCode
- The language code that represents the language spoken in your audio stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
languageCode
The language code that represents the language spoken in your audio stream.
- Parameters:
languageCode
- The language code that represents the language spoken in your audio stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
languageIdentification
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.
- Parameters:
languageIdentification
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languageIdentification
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.
- Parameters:
languageIdentification
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
languageIdentification
Result.Builder languageIdentification(Consumer<LanguageWithScore.Builder>... languageIdentification) 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.
This is a convenience method that creates an instance of theLanguageWithScore.Builder
avoiding the need to create one manually viaLanguageWithScore.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolanguageIdentification(List<LanguageWithScore>)
.- Parameters:
languageIdentification
- a consumer that will call methods onLanguageWithScore.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-