Class Speech

java.lang.Object
org.springframework.ai.audio.tts.Speech
All Implemented Interfaces:
ModelResult<byte[]>

public class Speech extends Object implements 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 interface ModelResult<byte[]>
      Returns:
      the output generated by the AI model
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMetadata

      public ResultMetadata getMetadata()
      Description copied from interface: ModelResult
      Retrieves the metadata associated with the result of an AI model.
      Specified by:
      getMetadata in interface ModelResult<byte[]>
      Returns:
      the metadata associated with the result