由 Alibaba 提供
Alibaba's Qwen-Audio 3.1 TTS Plus text-to-speech for Chinese and English, billed per character (a Chinese character counts as 2). Up to 6000 bytes of UTF-8 text per request (about 2000 Chinese or 6000 Latin characters); MP3, WAV, PCM or Opus audio at 24 kHz; four voices with volume and pitch controls.
$30
每 100 萬字元
MP3 · WAV · PCM · OPUS
每次請求最多 6000 位元組的文字:約 2000 個中文字或日文字,英文則為 6000
curl "https://router-api.0g.ai/v1/audio/speech" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "qwen-audio-3.1-tts-plus",
"input": "Hello from 0G Private Computer.",
"voice": "longanlingxin_v3.1",
"response_format": "mp3"
}' \
--output speech.mp3| 欄位 | 值 | 預設 | 備註 |
|---|---|---|---|
| voice | 4 種語音,詳列如下 | 必填 | Only the voice ids listed are accepted. |
| response_format | mp3 · wav · pcm · opus | — | |
| speed | 0.5–2 | — | |
| volume | 0–100 | 50 | Loudness. |
| pitch | 0.5–2 | 1 | Pitch multiplier. |
| 語音 | id | 語言 |
|---|---|---|
| Long Anlingxin | ||
| Xu Nanchuan | ||
| Long Anhuan | ||
| Long Anfengyue |