Class AudioTranscriptionResponse
java.lang.Object
org.springframework.ai.audio.transcription.AudioTranscriptionResponse
- All Implemented Interfaces:
ModelResponse<AudioTranscription>
- Since:
- 0.8.1
- Author:
- Michael Lavelle, Piotr Olaszewski
-
Constructor Summary
ConstructorDescriptionAudioTranscriptionResponse
(AudioTranscription transcript) AudioTranscriptionResponse
(AudioTranscription transcript, AudioTranscriptionResponseMetadata transcriptionResponseMetadata) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the response metadata associated with the AI model's response.Retrieves the result of the AI model.Retrieves the list of generated outputs by the AI model.
-
Constructor Details
-
AudioTranscriptionResponse
-
AudioTranscriptionResponse
public AudioTranscriptionResponse(AudioTranscription transcript, AudioTranscriptionResponseMetadata transcriptionResponseMetadata)
-
-
Method Details
-
getResult
Description copied from interface:ModelResponse
Retrieves the result of the AI model.- Specified by:
getResult
in interfaceModelResponse<AudioTranscription>
- Returns:
- the result generated by the AI model
-
getResults
Description copied from interface:ModelResponse
Retrieves the list of generated outputs by the AI model.- Specified by:
getResults
in interfaceModelResponse<AudioTranscription>
- Returns:
- the list of generated outputs
-
getMetadata
Description copied from interface:ModelResponse
Retrieves the response metadata associated with the AI model's response.- Specified by:
getMetadata
in interfaceModelResponse<AudioTranscription>
- Returns:
- the response metadata
-