Interface TranscriptionCreateResponse.Visitor
-
- All Implemented Interfaces:
public interface TranscriptionCreateResponse.Visitor<T extends Object>An interface that defines how to map each variant of TranscriptionCreateResponse to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitTranscription(Transcription transcription)Represents a transcription response returned by model, based on the provided input. abstract TvisitDiarized(TranscriptionDiarized diarized)Represents a diarized transcription response returned by the model, including the combined transcript and speaker-segment annotations. abstract TvisitVerbose(TranscriptionVerbose verbose)Represents a verbose json transcription response returned by model, based on the provided input. Tunknown(JsonValue json)Maps an unknown variant of TranscriptionCreateResponse to a value of type T. -
-
Method Detail
-
visitTranscription
abstract T visitTranscription(Transcription transcription)
Represents a transcription response returned by model, based on the provided input.
-
visitDiarized
abstract T visitDiarized(TranscriptionDiarized diarized)
Represents a diarized transcription response returned by the model, including the combined transcript and speaker-segment annotations.
-
visitVerbose
abstract T visitVerbose(TranscriptionVerbose verbose)
Represents a verbose json transcription response returned by model, based on the provided input.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of TranscriptionCreateResponse to a value of type T.
An instance of TranscriptionCreateResponse can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-