Class AudioTranscription
java.lang.Object
org.springframework.ai.audio.transcription.AudioTranscription
- All Implemented Interfaces:
ModelResult<String>
Represents a response returned by the AI.
- Since:
- 0.8.1
- Author:
- Michael Lavelle, Piotr Olaszewski
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves the metadata associated with the result of an AI model.Retrieves the output generated by the AI model.int
hashCode()
toString()
withTranscriptionMetadata
(AudioTranscriptionMetadata transcriptionMetadata)
-
Constructor Details
-
AudioTranscription
-
-
Method Details
-
getOutput
Description copied from interface:ModelResult
Retrieves the output generated by the AI model.- Specified by:
getOutput
in interfaceModelResult<String>
- Returns:
- the output generated by the AI model
-
getMetadata
Description copied from interface:ModelResult
Retrieves the metadata associated with the result of an AI model.- Specified by:
getMetadata
in interfaceModelResult<String>
- Returns:
- the metadata associated with the result
-
withTranscriptionMetadata
public AudioTranscription withTranscriptionMetadata(@Nullable AudioTranscriptionMetadata transcriptionMetadata) -
equals
-
hashCode
public int hashCode() -
toString
-