ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Kotoba Text-to-Speech

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ 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"

ਇਹ ਬੇਨਤੀ: $0.003 3 API ਕ੍ਰੈਡਿਟ · ≈ ₽0.32 ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Kotoba Technologies ਟੈਕਸਟ ਤੋਂ ਬੋਲੀ #commercial-use#text-to-speech#japanese#streaming

ਜਾਪਾਨੀ ਟੈਕਸਟ-ਟੂ-ਸਪੀਚ ਜੋ ਤਿਆਰ ਹੁੰਦੇ ਸਮੇਂ ਸਟ੍ਰੀਮ ਕੀਤਾ ਜਾਂਦਾ ਹੈ, ਦੋ ਆਵਾਜ਼ਾਂ ਅਤੇ WAV ਆਉਟਪੁੱਟ ਸਮੇਤ

Kotoba Technologies · ਆਡੀਓ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ 50 / 400

ਜਪਾਨੀ ਭਾਸ਼ਣ ਇਨਪੁੱਟ ਟੈਕਸਟ, ਜੋ 400 ਅੱਖਰਾਂ ਤੱਕ ਸੀਮਿਤ ਹੈ।

language •ਲੋੜੀਂਦਾ

ਟੈਕਸਟ ਵਿੱਚ ਵਰਤੀ ਗਈ ਭਾਸ਼ਾ।

speaker_id •ਲੋੜੀਂਦਾ

ਆਵਾਜ਼ ਦੀ ਚੋਣ।

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

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Kotoba Text-to-Speech ਬਾਰੇ

ਵੱਧ ਤੋਂ ਵੱਧ 400 ਅੱਖਰਾਂ ਵਾਲਾ ਜਾਪਾਨੀ `text` ਬੋਲਦਾ ਹੈ, ਜਿਸ ਵਿੱਚ `language` ja ’ਤੇ ਸਥਿਰ ਹੈ। `speaker_id` ਰਾਹੀਂ ਆਵਾਜ਼ ਚੁਣੋ: male-01 ਜਾਂ female-01। ਆਉਟਪੁੱਟ 24 kHz ਮੋਨੋ, 16-bit WAV ਫ਼ਾਈਲ ਹੈ, ਨਾਲ ਹੀ ਸਕਿੰਟਾਂ ਵਿੱਚ ਮਿਆਦ ਅਤੇ ਸੰਸ਼ਲੇਸ਼ਿਤ ਟੈਕਸਟ ਵੀ ਮਿਲਦਾ ਹੈ। ਆਡੀਓ ਤਿਆਰ ਹੁੰਦੇ ਸਮੇਂ ਸਟ੍ਰੀਮ ਕੀਤਾ ਜਾਂਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
textਲੋੜੀਂਦਾ
ਕਿਸਮstring
≤ 400 ਅੱਖਰ
ਜਪਾਨੀ ਭਾਸ਼ਣ ਇਨਪੁੱਟ ਟੈਕਸਟ, ਜੋ 400 ਅੱਖਰਾਂ ਤੱਕ ਸੀਮਿਤ ਹੈ।
languageਲੋੜੀਂਦਾ
ਕਿਸਮenum
ja
ਟੈਕਸਟ ਵਿੱਚ ਵਰਤੀ ਗਈ ਭਾਸ਼ਾ।
speaker_idਲੋੜੀਂਦਾ
ਕਿਸਮenum
male-01female-01
ਆਵਾਜ਼ ਦੀ ਚੋਣ।
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

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"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
audio
object {content_type, file_name, file_size, url}WAV ਫਾਰਮੈਟ ਵਿੱਚ ਸੰਸ਼ਲੇਸ਼ਿਤ ਭਾਸ਼ਣ ਫ਼ਾਈਲ ਦਾ ਲਿੰਕ, ਜਿਸ ਵਿੱਚ mono ਆਡੀਓ 24 kHz ਅਤੇ 16-bit ਡੈਪਥ ਨਾਲ ਹੈ।
audio_duration_secs
numberਸੰਸ਼ਲੇਸ਼ਿਤ ਆਡੀਓ ਦੀ ਮਿਆਦ ਸਕਿੰਟਾਂ ਵਿੱਚ।
text
stringਭਾਸ਼ਣ ਸੰਸ਼ਲੇਸ਼ਣ ਲਈ ਵਰਤਿਆ ਗਿਆ ਟੈਕਸਟ।

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/kotoba-technologies/kotoba-tts/v2/tts/ws.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt