开发者文档

从这些内容开始

搜索标题与正文↑ ↓ 选择 · Enter 打开 · Esc 关闭

Audio speech

Generate speech audio from text with OpenAI-compatible text-to-speech requests.

Overview

The speech endpoint turns text into audio. Availability depends on the configured upstream providers and models.

Request

POST https://uouo.cloud/v1/audio/speech

Body parameters

ParameterTypeRequiredDescription
modelstringYesText-to-speech model ID.
inputstringYesText to synthesize.
voicestringYesVoice ID supported by the model.
response_formatstringNomp3, wav, opus, or provider-supported format.
speednumberNoSpeech speed for supported models.

Example

bash
curl https://uouo.cloud/v1/audio/speech \
  -H "Authorization: Bearer $UOUODUO_API_KEY" \
  -H "Content-Type: application/json" \
  -o speech.mp3 \
  -d '{
    "model": "tts-1",
    "voice": "alloy",
    "input": "The gateway is ready for production traffic."
  }'

Notes

  • Validate provider voice names before deploying.
  • Store generated audio according to your own privacy and retention policy.
  • Large text inputs can increase latency and cost.
Audio speech · uouo cloud