Class TranscriptionStreamEvent
-
- All Implemented Interfaces:
public final class TranscriptionStreamEvent
Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you create a transcription with the
Stream
parameter set totrue
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
TranscriptionStreamEvent.Visitor
An interface that defines how to map each variant of TranscriptionStreamEvent to a value of type T.
-
Method Summary
-
-
Method Detail
-
transcriptTextDelta
final Optional<TranscriptionTextDeltaEvent> transcriptTextDelta()
Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you create a transcription with the
Stream
parameter set totrue
.
-
transcriptTextDone
final Optional<TranscriptionTextDoneEvent> transcriptTextDone()
Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you create a transcription with the
Stream
parameter set totrue
.
-
isTranscriptTextDelta
final Boolean isTranscriptTextDelta()
-
isTranscriptTextDone
final Boolean isTranscriptTextDone()
-
asTranscriptTextDelta
final TranscriptionTextDeltaEvent asTranscriptTextDelta()
Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you create a transcription with the
Stream
parameter set totrue
.
-
asTranscriptTextDone
final TranscriptionTextDoneEvent asTranscriptTextDone()
Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you create a transcription with the
Stream
parameter set totrue
.
-
accept
final <T extends Any> T accept(TranscriptionStreamEvent.Visitor<T> visitor)
-
validate
final TranscriptionStreamEvent validate()
-
ofTranscriptTextDelta
final static TranscriptionStreamEvent ofTranscriptTextDelta(TranscriptionTextDeltaEvent transcriptTextDelta)
Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you create a transcription with the
Stream
parameter set totrue
.
-
ofTranscriptTextDone
final static TranscriptionStreamEvent ofTranscriptTextDone(TranscriptionTextDoneEvent transcriptTextDone)
Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you create a transcription with the
Stream
parameter set totrue
.
-
-
-
-