Class Word.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.realtime.types.Word.Builder
-
- All Implemented Interfaces:
Word._FinalStage,Word.ConfidenceStage,Word.EndStage,Word.StartStage,Word.TextStage
- Enclosing class:
- Word
public static final class Word.Builder extends java.lang.Object implements Word.StartStage, Word.EndStage, Word.ConfidenceStage, Word.TextStage, Word._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Wordbuild()Word.TextStageconfidence(double confidence)Confidence score of the wordWord.ConfidenceStageend(int end)End time of the word in millisecondsWord.Builderfrom(Word other)Word.EndStagestart(int start)Start time of the word in millisecondsWord._FinalStagetext(java.lang.String text)The word itself
-
-
-
Method Detail
-
from
public Word.Builder from(Word other)
- Specified by:
fromin interfaceWord.StartStage
-
start
public Word.EndStage start(int start)
Start time of the word in milliseconds
- Specified by:
startin interfaceWord.StartStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
end
public Word.ConfidenceStage end(int end)
End time of the word in milliseconds
- Specified by:
endin interfaceWord.EndStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
confidence
public Word.TextStage confidence(double confidence)
Confidence score of the word
- Specified by:
confidencein interfaceWord.ConfidenceStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
text
public Word._FinalStage text(java.lang.String text)
The word itself
- Specified by:
textin interfaceWord.TextStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public Word build()
- Specified by:
buildin interfaceWord._FinalStage
-
-