Package org.springframework.ai.openai.audio.speech
package org.springframework.ai.openai.audio.speech
-
ClassDescriptionThe Speech class represents the result of speech synthesis from an AI model.The
SpeechMessage
class represents a single text message to be converted to speech by the OpenAI TTS API.TheSpeechModel
interface provides a way to interact with the OpenAI Text-to-Speech (TTS) API.TheSpeechPrompt
class represents a request to the OpenAI Text-to-Speech (TTS) API.Creates a new instance of SpeechResponse with the given speech result.TheStreamingSpeechModel
interface provides a way to interact with the OpenAI Text-to-Speech (TTS) API using a streaming approach, allowing you to receive the generated audio in a real-time fashion.