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
SpeechMessageclass represents a single text message to be converted to speech by the OpenAI TTS API.TheSpeechModelinterface provides a way to interact with the OpenAI Text-to-Speech (TTS) API.TheSpeechPromptclass represents a request to the OpenAI Text-to-Speech (TTS) API.Creates a new instance of SpeechResponse with the given speech result.TheStreamingSpeechModelinterface 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.