Op den Inhalt sprangen

Kotoba Text-to-Speech

Integréieren

Modell-ID kotoba-technologies/kotoba-tts/v2/tts/ws
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/kotoba-technologies/kotoba-tts/v2/tts/ws?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence.",
    "language": "ja",
    "speaker_id": "male-01"
  }'

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

Dës Ufro: 0,003 $ 3 API-Kreditter · ≈ 0,32 ₽ Op dëser Säit ausféieren

API-Schlëssel kréien
Kotoba Technologies Text zu Sprooch #commercial-use#text-to-speech#japanese#streaming

Japanesch Text-zu-Sprooch, gestreamt wärend der Generatioun, mat zwou Stëmmen a WAV-Ausgab

Kotoba Technologies · 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 50 / 400

Japaneschen Textinput fir Sprooch, limitéiert op 400 Zeechen.

language •obligatoresch

Sprooch vum Text.

speaker_id •obligatoresch

Auswiel vun der Stëmm.

POST /run/kotoba-technologies/kotoba-tts/v2/tts/ws?wait=20 Präis → 0,003 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/kotoba-technologies/kotoba-tts/v2/tts/ws?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence.",
    "language": "ja",
    "speaker_id": "male-01"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/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 Kotoba Text-to-Speech

Schwätzt japaneschen `text` mat bis zu 400 Zeechen, mat `language` fix op ja. Wielt d'Stëmm iwwer `speaker_id`: male-01 oder female-01. D'Ausgab ass eng WAV-Datei mat 24 kHz mono, 16-Bit, plus Dauer a synthetiséiertem Text. Den Audio gëtt gestreamt, wärend en erstallt gëtt.

Parameteren

NummTyp StandardErlaabt Beschreiwung
textobligatoresch
Typstring
≤ 400 Zeechen
Japaneschen Textinput fir Sprooch, limitéiert op 400 Zeechen.
languageobligatoresch
Typenum
ja
Sprooch vum Text.
speaker_idobligatoresch
Typenum
male-01female-01
Auswiel vun der Stëmm.
obligatoresch

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kotoba-technologies/kotoba-tts/v2/tts/ws",
  "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": 3,
    "usd": "0.003",
    "charged": 3,
    "refunded": 0
  },
  "input": {
    "text": "Hello from Doitong. This is a short test sentence.",
    "language": "ja",
    "speaker_id": "male-01"
  },
  "output": {
    "audio": {
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200,
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3"
    },
    "audio_duration_secs": 1.0,
    "text": "string"
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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 {content_type, file_name, file_size, url}Link op d'Datei mat synthetiséierter Sprooch am WAV-Format, mat Mono-Audio bei 24 kHz an 16-Bit Déift.
audio_duration_secs
numberDauer vum synthetiséierten Audio a Sekonnen.
text
stringText fir d'Sproochsynthese.

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/kotoba-technologies/kotoba-tts/v2/tts/ws.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt