public static interface Result.Builder extends SdkPojo, CopyableBuilder<Result.Builder,Result>
Modifier and Type | Method and Description |
---|---|
Result.Builder |
alternatives(Alternative... alternatives)
A list of possible transcriptions for the audio.
|
Result.Builder |
alternatives(Collection<Alternative> alternatives)
A list of possible transcriptions for the audio.
|
Result.Builder |
alternatives(Consumer<Alternative.Builder>... alternatives)
A list of possible transcriptions for the audio.
|
Result.Builder |
endTime(Double endTime)
The offset in milliseconds from the beginning of the audio stream to the end of the result.
|
Result.Builder |
isPartial(Boolean isPartial)
true to indicate that Amazon Transcribe has additional transcription data to send,
false to indicate that this is the last transcription result for the audio stream. |
Result.Builder |
resultId(String resultId)
A unique identifier for the result.
|
Result.Builder |
startTime(Double startTime)
The offset in milliseconds from the beginning of the audio stream to the beginning of the result.
|
copy
applyMutation, build
Result.Builder resultId(String resultId)
A unique identifier for the result.
resultId
- A unique identifier for the result.Result.Builder startTime(Double startTime)
The offset in milliseconds from the beginning of the audio stream to the beginning of the result.
startTime
- The offset in milliseconds from the beginning of the audio stream to the beginning of the result.Result.Builder endTime(Double endTime)
The offset in milliseconds from the beginning of the audio stream to the end of the result.
endTime
- The offset in milliseconds from the beginning of the audio stream to the end of the result.Result.Builder isPartial(Boolean isPartial)
true
to indicate that Amazon Transcribe has additional transcription data to send,
false
to indicate that this is the last transcription result for the audio stream.
isPartial
- true
to indicate that Amazon Transcribe has additional transcription data to send,
false
to indicate that this is the last transcription result for the audio stream.Result.Builder alternatives(Collection<Alternative> alternatives)
A list of possible transcriptions for the audio. Each alternative typically contains one item
that contains the result of the transcription.
alternatives
- A list of possible transcriptions for the audio. Each alternative typically contains one
item
that contains the result of the transcription.Result.Builder alternatives(Alternative... alternatives)
A list of possible transcriptions for the audio. Each alternative typically contains one item
that contains the result of the transcription.
alternatives
- A list of possible transcriptions for the audio. Each alternative typically contains one
item
that contains the result of the transcription.Result.Builder alternatives(Consumer<Alternative.Builder>... alternatives)
A list of possible transcriptions for the audio. Each alternative typically contains one item
that contains the result of the transcription.
List.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #alternatives(List)
.alternatives
- a consumer that will call methods on List.Builder
#alternatives(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.