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:ModelResult
Retrieves the output generated by the AI model.- Specified by:
getOutput
in interfaceModelResult<byte[]>
- Returns:
- the output generated by the AI model
-
equals
-
hashCode
public int hashCode() -
toString
-
getMetadata
Description copied from interface:ModelResult
Retrieves the metadata associated with the result of an AI model.- Specified by:
getMetadata
in interfaceModelResult<byte[]>
- Returns:
- the metadata associated with the result
-