Class TranscriptUtterance.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.transcripts.types.TranscriptUtterance.Builder
-
- All Implemented Interfaces:
TranscriptUtterance._FinalStage,TranscriptUtterance.ConfidenceStage,TranscriptUtterance.EndStage,TranscriptUtterance.SpeakerStage,TranscriptUtterance.StartStage,TranscriptUtterance.TextStage
- Enclosing class:
- TranscriptUtterance
public static final class TranscriptUtterance.Builder extends java.lang.Object implements TranscriptUtterance.ConfidenceStage, TranscriptUtterance.StartStage, TranscriptUtterance.EndStage, TranscriptUtterance.TextStage, TranscriptUtterance.SpeakerStage, TranscriptUtterance._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranscriptUtterance._FinalStageaddAllWords(java.util.List<TranscriptWord> words)The words in the utterance.TranscriptUtterance._FinalStageaddWords(TranscriptWord words)The words in the utterance.TranscriptUtterancebuild()TranscriptUtterance.StartStageconfidence(double confidence)The confidence score for the transcript of this utteranceTranscriptUtterance.TextStageend(int end)The ending time, in milliseconds, of the utterance in the audio fileTranscriptUtterance.Builderfrom(TranscriptUtterance other)TranscriptUtterance._FinalStagespeaker(java.lang.String speaker)The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g.TranscriptUtterance.EndStagestart(int start)The starting time, in milliseconds, of the utterance in the audio fileTranscriptUtterance.SpeakerStagetext(java.lang.String text)The text for this utteranceTranscriptUtterance._FinalStagewords(java.util.List<TranscriptWord> words)
-
-
-
Method Detail
-
from
public TranscriptUtterance.Builder from(TranscriptUtterance other)
- Specified by:
fromin interfaceTranscriptUtterance.ConfidenceStage
-
confidence
public TranscriptUtterance.StartStage confidence(double confidence)
The confidence score for the transcript of this utterance
- Specified by:
confidencein interfaceTranscriptUtterance.ConfidenceStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
start
public TranscriptUtterance.EndStage start(int start)
The starting time, in milliseconds, of the utterance in the audio file
- Specified by:
startin interfaceTranscriptUtterance.StartStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
end
public TranscriptUtterance.TextStage end(int end)
The ending time, in milliseconds, of the utterance in the audio file
- Specified by:
endin interfaceTranscriptUtterance.EndStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
text
public TranscriptUtterance.SpeakerStage text(java.lang.String text)
The text for this utterance
- Specified by:
textin interfaceTranscriptUtterance.TextStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
speaker
public TranscriptUtterance._FinalStage speaker(java.lang.String speaker)
The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g. "A" for Speaker A, "B" for Speaker B, etc.
- Specified by:
speakerin interfaceTranscriptUtterance.SpeakerStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllWords
public TranscriptUtterance._FinalStage addAllWords(java.util.List<TranscriptWord> words)
The words in the utterance.
- Specified by:
addAllWordsin interfaceTranscriptUtterance._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addWords
public TranscriptUtterance._FinalStage addWords(TranscriptWord words)
The words in the utterance.
- Specified by:
addWordsin interfaceTranscriptUtterance._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
words
public TranscriptUtterance._FinalStage words(java.util.List<TranscriptWord> words)
- Specified by:
wordsin interfaceTranscriptUtterance._FinalStage
-
build
public TranscriptUtterance build()
- Specified by:
buildin interfaceTranscriptUtterance._FinalStage
-
-