Class TextToSpeechResponseMetadata

java.lang.Object
org.springframework.ai.model.MutableResponseMetadata
org.springframework.ai.audio.tts.TextToSpeechResponseMetadata
All Implemented Interfaces:
ResponseMetadata
Direct Known Subclasses:
OpenAiAudioSpeechResponseMetadata

public class TextToSpeechResponseMetadata extends MutableResponseMetadata
Metadata associated with an audio transcription response.
Author:
Alexandros Pappas
  • Constructor Details

    • TextToSpeechResponseMetadata

      public TextToSpeechResponseMetadata()
  • Method Details

    • getUsage

      public Usage getUsage()
      Returns AI provider specific metadata on API usage.
      Returns:
      AI provider specific metadata on API usage.
      Since:
      2.0.2
      See Also:
    • setUsage

      public void setUsage(Usage usage)
      Sets the AI provider specific metadata on API usage.
      Parameters:
      usage - the API usage metadata
      Since:
      2.0.2