Riferimento API di Qwen-Audio 3.0 TTS Flash
Parlato a bassa latenza per assistenti e assistenza clienti
Con una sola chiave API di PopNow chiami Qwen-Audio 3.0 TTS Flash dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanto costa ogni richiesta in USD e una richiesta da incollare nel terminale così com’è.
Le descrizioni dei parametri provengono dallo schema di input del modello e sono disponibili solo in inglese.
In sintesi
- Sviluppato da
- Alibaba
- Risultato
- Audio
- Da
- $0.01425 USD ogni 1.000 caratteri
- ID del modello
I prezzi sono indicati in USD e gli importi vengono addebitati sul tuo saldo PopNow. Alla ricezione viene riservato il massimo importo; al termine viene addebitato il consumo effettivo e il resto viene sbloccato. Le attività fallite non vengono addebitate. Per un preventivo esatto prima di eseguire, usa POST /api/v1/jobs/quote.
Sintesi vocale
alibaba/qwen-audio-3.0-tts-flash/text-to-speech
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.01425 ogni 1.000 caratteri |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
textObbligatorio | string | — | fino a 10.000 caratteri | The words to speak. Billed per 1,000 characters. Turn on enable_ssml to use SSML tags. |
voice_idFacoltativo | string | qwen-audio-3.0-tts-flash-loonglunawang | qwen-audio-3.0-tts-flash-longcanzhuyue, qwen-audio-3.0-tts-flash-longrongzhihe, qwen-audio-3.0-tts-flash-longlanghongmo, qwen-audio-3.0-tts-flash-longfengyueyao, qwen-audio-3.0-tts-flash-longxiaoyuyue, qwen-audio-3.0-tts-flash-longtongxuxian, qwen-audio-3.0-tts-flash-longzhiqingxi, qwen-audio-3.0-tts-flash-longlanbaixian, qwen-audio-3.0-tts-flash-longyingsongliu, qwen-audio-3.0-tts-flash-longzhengyaohe, qwen-audio-3.0-tts-flash-longlanyufu, qwen-audio-3.0-tts-flash-longnixiulian, qwen-audio-3.0-tts-flash-longxilingxuan, qwen-audio-3.0-tts-flash-longchengtaohui, … (+583) | Preset voice for this model. |
instructionsFacoltativo | string | — | fino a 1000 caratteri | How to read the text: emotion, tone, persona, pace or dialect. Not spoken and not billed. |
languageFacoltativo | string | auto | auto, zh, en, ja, ko, fr, de, pt, it, vi, id | Reading language hint, or auto to detect it from the text. |
speedFacoltativo | number | 1 | da 0.5 a 2 | Speaking speed from 0.5 to 2. |
pitchFacoltativo | number | 1 | da 0.5 a 2 | Pitch from 0.5 to 2. |
volumeFacoltativo | integer | 50 | da 0 a 100 | Output volume from 0 to 100. |
output_formatFacoltativo | string | mp3 | mp3, wav, pcm, opus | Audio encoding. pcm is raw 16-bit audio without a file header. |
sample_rateFacoltativo | integer | 24000 | 8000, 12000, 16000, 22050, 24000, 44100, 48000 | Sample rate in Hz. |
bitrateFacoltativo | integer | — | 32000, 64000, 96000, 128000, 192000, 256000 | Opus bit rate in bits per second. Only applies to opus. |
enable_ssmlFacoltativo | boolean | false | — | Read text as SSML markup. |
seedFacoltativo | integer | — | da 0 a 65535 | Random seed for controlled comparisons. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in 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-flash/text-to-speech",
"input": {
"text": "Hi there! This voice was created with the PopNow API in just a few seconds."
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
