Peke ki ngā ihirangi

Kotoba Text-to-Speech

Whakauru

id tauira 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"

Tēnei tono: $ 0.003 3 whiwhinga API · ≈ ₽ 0.32 Whakahaerehia ki tēnei whārangi

Tikina he kī API
Kotoba Technologies Kuputuhi ki te Kōrero #commercial-use#text-to-speech#japanese#streaming

He text-to-speech Hapanihi ka rere tonu i a ia e waihangatia ana, me ngā reo e rua me te putanga WAV

Kotoba Technologies · Ororongo

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana 50 / 400

Kuputuhi tāuru kōrero Hapanihi, e herea ana ki te 400 pūāhua.

language •e hiahiatia ana

Te reo e whakamahia ana i te kuputuhi.

speaker_id •e hiahiatia ana

Kōwhiringa reo.

POST /run/kotoba-technologies/kotoba-tts/v2/tts/ws?wait=20 utu → $ 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"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Kotoba Text-to-Speech

Ka kōrero i te `text` Hapanihi tae atu ki te 400 pūāhua, me `language` kua mau ki ja. Kōwhiria te reo mā `speaker_id`: male-01, female-01 rānei. Ko te putanga he kōnae WAV 24 kHz mono, 16-bit, me te roanga i roto i ngā hēkona me te kuputuhi kua waihangatia. Ka rere te oro i a ia e waihangatia ana.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
texte hiahiatia ana
Momostring
≤ 400 pūāhua
Kuputuhi tāuru kōrero Hapanihi, e herea ana ki te 400 pūāhua.
languagee hiahiatia ana
Momoenum
ja
Te reo e whakamahia ana i te kuputuhi.
speaker_ide hiahiatia ana
Momoenum
male-01female-01
Kōwhiringa reo.
e hiahiatia ana

Putanga

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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
audio
object {content_type, file_name, file_size, url}Hononga ki te kōnae kōrero kua waihangatia ki te hōputu WAV, me te ororongo hongere kotahi i te 24 kHz me te hōhonutanga 16-bit.
audio_duration_secs
numberTe roanga o te ororongo kua waihangatia ki te hēkona.
text
stringTe kuputuhi hei waihanga i te kōrero.

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/kotoba-technologies/kotoba-tts/v2/tts/ws.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt