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 alternative transcriptions for the input audio.
|
Result.Builder |
alternatives(Collection<Alternative> alternatives)
A list of possible alternative transcriptions for the input audio.
|
Result.Builder |
alternatives(Consumer<Alternative.Builder>... alternatives)
A list of possible alternative transcriptions for the input audio.
|
Result.Builder |
channelId(String channelId)
Indicates which audio channel is associated with the
Result. |
Result.Builder |
endTime(Double endTime)
The end time, in milliseconds, of the
Result. |
Result.Builder |
isPartial(Boolean isPartial)
Indicates if the segment is complete.
|
Result.Builder |
languageCode(LanguageCode languageCode)
The language code that represents the language spoken in your audio stream.
|
Result.Builder |
languageCode(String languageCode)
The language code that represents the language spoken in your audio stream.
|
Result.Builder |
languageIdentification(Collection<LanguageWithScore> languageIdentification)
The language code of the dominant language identified in your stream.
|
Result.Builder |
languageIdentification(Consumer<LanguageWithScore.Builder>... languageIdentification)
The language code of the dominant language identified in your stream.
|
Result.Builder |
languageIdentification(LanguageWithScore... languageIdentification)
The language code of the dominant language identified in your stream.
|
Result.Builder |
resultId(String resultId)
Provides a unique identifier for the
Result. |
Result.Builder |
startTime(Double startTime)
The start time, in milliseconds, of the
Result. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildResult.Builder resultId(String resultId)
Provides a unique identifier for the Result.
resultId - Provides a unique identifier for the Result.Result.Builder startTime(Double startTime)
The start time, in milliseconds, of the Result.
startTime - The start time, in milliseconds, of the Result.Result.Builder endTime(Double endTime)
The end time, in milliseconds, of the Result.
endTime - The end time, in milliseconds, of the Result.Result.Builder isPartial(Boolean isPartial)
Indicates if the segment is complete.
If IsPartial is true, the segment is not complete. If IsPartial is
false, the segment is complete.
isPartial - Indicates if the segment is complete.
If IsPartial is true, the segment is not complete. If IsPartial
is false, the segment is complete.
Result.Builder alternatives(Collection<Alternative> alternatives)
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more
of Items, Entities, or Transcript.
alternatives - A list of possible alternative transcriptions for the input audio. Each alternative may contain one or
more of Items, Entities, or Transcript.Result.Builder alternatives(Alternative... alternatives)
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more
of Items, Entities, or Transcript.
alternatives - A list of possible alternative transcriptions for the input audio. Each alternative may contain one or
more of Items, Entities, or Transcript.Result.Builder alternatives(Consumer<Alternative.Builder>... alternatives)
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more
of Items, Entities, or Transcript.
Alternative.Builder avoiding the need to
create one manually via
Alternative.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #alternatives(List.
alternatives - a consumer that will call methods on
Alternative.Builder#alternatives(java.util.Collection) Result.Builder channelId(String channelId)
Indicates which audio channel is associated with the Result.
channelId - Indicates which audio channel is associated with the Result.Result.Builder languageCode(String languageCode)
The language code that represents the language spoken in your audio stream.
languageCode - The language code that represents the language spoken in your audio stream.LanguageCode,
LanguageCodeResult.Builder languageCode(LanguageCode languageCode)
The language code that represents the language spoken in your audio stream.
languageCode - The language code that represents the language spoken in your audio stream.LanguageCode,
LanguageCodeResult.Builder languageIdentification(Collection<LanguageWithScore> 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.
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.
Result.Builder languageIdentification(LanguageWithScore... 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.
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.
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 via
LanguageWithScore.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #languageIdentification(List.
languageIdentification - a consumer that will call methods on
LanguageWithScore.Builder#languageIdentification(java.util.Collection) Copyright © 2023. All rights reserved.