Create speech with an OpenAI-compatible API
Create speech from an OpenAI Audio Speech API-compatible request and return WAV audio. voice accepts a VOICEVOX style ID, an AI SDK voice alias, or an OpenAI voice name. speed is applied to VOICEVOX speedScale. model, instructions, response_format, and stream_format are accepted for compatibility, but the Laravel implementation currently always returns WAV audio.
Laravel Implementation Status: ✅ Fully supported by Core (fallback implemented)
Corpo
Text to synthesize
4096VOICEVOX style ID, AI SDK voice alias, or OpenAI voice name
OpenAI-compatible model name. Accepted for compatibility in the Laravel implementation.
OpenAI-compatible parameter. Currently unused by the Laravel implementation.
4096OpenAI-compatible parameter. The Laravel implementation currently always returns WAV audio.
Speech speed applied to VOICEVOX speedScale
0.25 <= x <= 4OpenAI-compatible parameter. Currently unused by the Laravel implementation.
Risposta
Successful Response
The response is of type file.
Argomenti correlati
Modalità API Engine: Talk (sintesi vocale da testo) - VOICEVOX for LaravelCreare un provider personalizzato per l'AI SDKLaravel AI SDKCreate query for speech synthesisCreate query for speech synthesis using preset