Qwen-Audio 3.0 TTS Plus API リファレンス
SNS やコンパニオン向けのキャラクター音声、プリセット 597 種
PopNow の API キー 1 つで、Qwen-Audio 3.0 TTS Plus を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- Alibaba
- 出力
- 音声
- 最安
- $0.019 USD 1,000 文字あたり
料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。
テキスト読み上げ
alibaba/qwen-audio-3.0-tts-plus/text-to-speech
料金
| オプション | USD |
|---|---|
既定 | $0.019 1,000 文字あたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
text必須 | string | — | 10,000 文字まで | The words to speak. Billed per 1,000 characters. Turn on enable_ssml to use SSML tags. |
voice_id任意 | string | qwen-audio-3.0-tts-plus-loonglunawang | qwen-audio-3.0-tts-plus-longcanzhuyue, qwen-audio-3.0-tts-plus-longrongzhihe, qwen-audio-3.0-tts-plus-longlanghongmo, qwen-audio-3.0-tts-plus-longfengyueyao, qwen-audio-3.0-tts-plus-longxiaoyuyue, qwen-audio-3.0-tts-plus-longtongxuxian, qwen-audio-3.0-tts-plus-longzhiqingxi, qwen-audio-3.0-tts-plus-longlanbaixian, qwen-audio-3.0-tts-plus-longyingsongliu, qwen-audio-3.0-tts-plus-longzhengyaohe, qwen-audio-3.0-tts-plus-longlanyufu, qwen-audio-3.0-tts-plus-longnixiulian, qwen-audio-3.0-tts-plus-longxilingxuan, qwen-audio-3.0-tts-plus-longchengtaohui, … (+583) | Preset voice for this model. |
instructions任意 | string | — | 1,000 文字まで | How to read the text: emotion, tone, persona, pace or dialect. Not spoken and not billed. |
language任意 | string | auto | auto, zh, en, ja, ko, fr, de, pt, it, vi, id | Reading language hint, or auto to detect it from the text. |
speed任意 | number | 1 | 0.5〜2 | Speaking speed from 0.5 to 2. |
pitch任意 | number | 1 | 0.5〜2 | Pitch from 0.5 to 2. |
volume任意 | integer | 50 | 0〜100 | Output volume from 0 to 100. |
output_format任意 | string | mp3 | mp3, wav, pcm, opus | Audio encoding. pcm is raw 16-bit audio without a file header. |
sample_rate任意 | integer | 24000 | 8000, 12000, 16000, 22050, 24000, 44100, 48000 | Sample rate in Hz. |
bitrate任意 | integer | — | 32000, 64000, 96000, 128000, 192000, 256000 | Opus bit rate in bits per second. Only applies to opus. |
enable_ssml任意 | boolean | false | — | Read text as SSML markup. |
seed任意 | integer | — | 0〜65535 | Random seed for controlled comparisons. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "alibaba/qwen-audio-3.0-tts-plus/text-to-speech",
"input": {
"text": "Hi there! This voice was created with the PopNow API in just a few seconds."
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
