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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the metadata associated with the result of an AI model.Retrieves the output generated by the AI model.inthashCode()toString()withTranscriptionMetadata(AudioTranscriptionMetadata transcriptionMetadata)
-
Constructor Details
-
AudioTranscription
-
-
Method Details
-
getOutput
Description copied from interface:ModelResultRetrieves the output generated by the AI model.- Specified by:
getOutputin interfaceModelResult<String>- Returns:
- the output generated by the AI model
-
getMetadata
Description copied from interface:ModelResultRetrieves the metadata associated with the result of an AI model.- Specified by:
getMetadatain interfaceModelResult<String>- Returns:
- the metadata associated with the result
-
withTranscriptionMetadata
public AudioTranscription withTranscriptionMetadata(@Nullable AudioTranscriptionMetadata transcriptionMetadata) -
equals
-
hashCode
public int hashCode() -
toString
-