Class Speech
java.lang.Object
org.springframework.ai.openai.audio.speech.Speech
- All Implemented Interfaces:
ModelResult<byte[]>
Deprecated.
The Speech class represents the result of speech synthesis from an AI model. It
implements the ModelResult interface with the output type of byte array.
- Since:
- 1.0.0-M1
- Author:
- Ahmed Yousri
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Deprecated.Retrieves the metadata associated with the result of an AI model.byte[]Deprecated.Retrieves the output generated by the AI model.inthashCode()Deprecated.toString()Deprecated.withSpeechMetadata(OpenAiAudioSpeechMetadata speechMetadata) Deprecated.
-
Constructor Details
-
Speech
public Speech(byte[] audio) Deprecated.
-
-
Method Details
-
getOutput
public byte[] getOutput()Deprecated.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
-
getMetadata
Deprecated.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
-
withSpeechMetadata
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
Speechfrom the core package instead. This class will be removed in a future release.