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)
본문
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.
응답
Successful Response
The response is of type file.
관련 항목
엔진 API 모드: 토크 (텍스트 음성 합성) - VOICEVOX for LaravelLaravel AI SDKCreate query for speech synthesisAI SDK의 커스텀 프로바이더 만들기Create query for speech synthesis using preset