Op den Inhalt sprangen

Async Text to Speech Pro V1.0

Integréieren

Modell-ID async/tts-pro/v1.0
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/async/tts-pro/v1.0?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "transcript": "Hello from Doitong. This is a short test sentence.",
    "voice": {
      "name": "Jennie"
    }
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro: 0,001 $ 1 API-Kredit Op dëser Säit ausféieren

API-Schlëssel kréien
Async Text zu Sprooch Lipsync #text-to-speech#voice-clone

Text-zu-Sprooch mat Stëmmewiel, optionalem Stëmmeklonen a sechs forcéierte Sproochoptiounen

Async · Audio

Äin éischt Resultat kënnt hei hin

Baut hei drënner eng Ufro a féiert se mat Ärem API-Schlëssel aus. Output gëtt an eis Späicherung kopéiert, fir ëmmer oder 7 Deeg gratis gespäichert.

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch

Textinhalt, deen als Sprooch synthetiséiert soll ginn.

•obligatoresch

Stëmm, déi fir d'Sproochsynthees ausgewielt gouf.

Erweidert language · output_format
language

Sprooch, déi während der Synthees erzwonge gëtt, spezifizéiert mat ISO 639-1.

Konfiguratioun fir de generéierten Audio.

POST /run/async/tts-pro/v1.0?wait=20 Präis → 0,001 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/async/tts-pro/v1.0?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "transcript": "Hello from Doitong. This is a short test sentence.",
    "voice": {
      "name": "Jennie"
    }
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer Async Text to Speech Pro V1.0

Konvertéiert en `transcript` mat engem gewielten `voice`-Objet a Sprooch. Den optionalen `language`-Parameter forcéiert d'Synthes op English, French, Spanish, German, Italian oder Portuguese. En `output_format`-Objet konfiguréiert den Audio, an d'Resultat enthält d'Audiodatei, hire MIME-Typ an hir Gréisst a Bytes. Gëeegent fir Voiceovers, bei deenen Dir eng spezifesch Stëmm wielt.

Parameteren

NummTyp StandardErlaabt Beschreiwung
transcriptobligatoresch
Typstring
Textinhalt, deen als Sprooch synthetiséiert soll ginn.
voiceobligatoresch
Typobject
Stëmm, déi fir d'Sproochsynthees ausgewielt gouf.
voice.nameoptional
Typenum
StandardJennie
JennieStellaMaxHayesElaraCleoFisherCorinThaddeusLucinaAcadiaHuxleyWinsletJethroElioRupert
+84 méiEiraNyraArianLilyPierceKaelaElowenFreyaLennyAlessaPandoraFiaAbbottKaelOrlaSableMarnieSeraVirelLioraRivenElysDreenaRheaVelaNymeraIsoldeLirienZellaAvennaMirelleCaliaLuneaLucanTarianArloJovanNeronZivenDaxOrienLiorEryxTyrenNoxElricVarianZoranMiroDalenRonixJarekNyxieSorenVionaSeleneRachielCorbinAbigailFaithKimberlyDaveGraceAldenRenlyVioletJoelXavierEsmeraldaRobertLilaBrooksLennoxVanessaSimonNyomiJackPenelopeBraydenAbelNellieConnieAndrewLincoln
Benannt Standardstëmm, déi benotzt soll ginn. Huet keen Effekt, wann `id` uginn ass.
output_formatoptional
Typobject
Konfiguratioun fir de generéierten Audio.
output_format.containeroptional
Typenum
Standardmp3
mp3raw
Containerformat fir de generéierten Audio.
output_format.encodingoptional
Typenum
pcm_s16lepcm_f32lepcm_mulaw
PCM-Kodéierung, déi nëmmen applizéiert gëtt, wann de Container 'raw' ass.
output_format.sample_rateoptional
Typinteger
Standard44100
8.000 – 48.000
Samplingfrequenz vum Output a Hz.
output_format.bit_rateoptional
Typinteger | null
32.000 – 320.000
Bitrate vum Output; gëllt nëmme fir de 'mp3'-Container.
languageoptional
Typenum
enfresdeitpt
Sprooch, déi während der Synthees erzwonge gëtt, spezifizéiert mat ISO 639-1.
obligatoresch

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "async/tts-pro/v1.0",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "transcript": "Hello from Doitong. This is a short test sentence.",
    "voice": {
      "name": "Jennie"
    }
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    },
    "content_type": "audio/mpeg",
    "size_bytes": 1
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
audio
object {url, content_type, file_name, file_size}
content_type
stringAudio-MIME-Typ.
size_bytes
integerGréisst vum Audio a Bytes.

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/async/tts-pro/v1.0.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt