Qwen-Audio 3.1 TTS Flash API リファレンス
70 種類の声で多言語を素早く読み上げ
PopNow の API キー 1 つで、Qwen-Audio 3.1 TTS Flash を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- Alibaba
- 出力
- 音声
- 最安
- $0.00285 USD 1,000 文字あたり
- 目安の所要時間
- 約 23 秒
料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。
テキスト読み上げ
alibaba/qwen-audio-3.1-tts-flash/text-to-speech
料金
| オプション | USD |
|---|---|
既定 | $0.00285 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 | Emily_v3.1 | longanhuan_v3.1, longanlingxin_v3.1, longanfengyue_v3.1, xunanchuan_v3.1, Emily_v3.1, Luna_v3.1, Eric_v3.1, Luca_v3.1, Abby_v3.1, Annie_v3.1, Ava_v3.1, Beth_v3.1, Betty_v3.1, Cally_v3.1, … (+56) | 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?wait=60" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "alibaba/qwen-audio-3.1-tts-flash/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"
