Package org.springframework.ai.audio.tts
Class Speech
java.lang.Object
org.springframework.ai.audio.tts.Speech
- All Implemented Interfaces:
ModelResult<byte[]>
Implementation of the
ModelResult interface for the speech model.- Author:
- Alexandros Pappas
-
Constructor Details
-
Speech
public Speech(byte[] speech)
-
-
Method Details
-
getOutput
public byte[] getOutput()Description copied from interface:ModelResultRetrieves the output generated by the AI model.- Specified by:
getOutputin interfaceModelResult<byte[]>- Returns:
- the output generated by the AI model
-
equals
-
hashCode
public int hashCode() -
toString
-
getMetadata
Description copied from interface:ModelResultRetrieves the metadata associated with the result of an AI model.- Specified by:
getMetadatain interfaceModelResult<byte[]>- Returns:
- the metadata associated with the result
-