Neidio i'r cynnwys

Kotoba Speech-to-Text

Integreiddio

ID y model kotoba-technologies/kotoba-stt/v1/speech-to-text
# 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-stt/v1/speech-to-text?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "language": "ja"
  }'

# 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"

Ffeiliau fel yr enghraifft: $0.001 1 credyd API · ≈ ₽0.11 caiff eich ffeiliau eu mesur cyn y rhediad Ei redeg ar y dudalen hon

Cael allwedd API
Kotoba Technologies Lleferydd i Destun #commercial-use#speech-to-text#japanese#multilingual

Lleferydd-i-destun ar gyfer clipiau hyd at 2 funud, wedi'i diwnio ar gyfer Japaneeg, gyda stampiau amser geiriau ac awgrymiadau allweddeiriau

Kotoba Technologies · Testun

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol audio_url
Gollyngwch ffeil, neu

Hyd sain wedi’i gyfyngu i 2 funud.

language •gofynnol

Iaith a ddefnyddir gan siaradwyr y sain.

Uwch with_timestamps · diarization · kana · keywords

Termau y dylid ffafrio eu sillafiadau yn y trawsgrifiad, gan gynnwys enwau neu derminoleg cynnyrch. Derbynnir dim mwy na 1000 term, gyda phob un wedi’i gyfyngu i 64 nod.

POST /run/kotoba-technologies/kotoba-stt/v1/speech-to-text?wait=20 dyfynbris → $0.001
# 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-stt/v1/speech-to-text?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "language": "ja"
  }'

# 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"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Kotoba Speech-to-Text

Yn trawsgrifio clip sain hyd at 2 funud o `audio_url`. Gosodwch `language` i ja, en, ko, zh, es, zh-hk, zh-tw neu auto. Mae `with_timestamps` dewisol yn dychwelyd amseroedd dechrau a diwedd fesul gair, mae `diarization` yn labelu siaradwyr, mae `keywords` yn derbyn hyd at 1000 term i dueddu sillafu, ac mae `kana` yn ysgrifennu enwau mewn katakana ar gyfer Japaneeg. Mae'r allbwn yn cynnwys testun, iaith ganfyddedig a hyd y sain.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
audio_urlgofynnol audio
Mathurl · audio
Hyd sain wedi’i gyfyngu i 2 funud.
languagegofynnol
Mathenum
jaenkozheszh-hkzh-twauto
Iaith a ddefnyddir gan siaradwyr y sain.
with_timestampsdewisol
Mathboolean
Rhagosodedigfalse
Allbwn amseru fesul gair yn `words`, gan gynnwys dechrau a diwedd pob gair.
diarizationdewisol
Mathboolean
Rhagosodedigfalse
Priodoli siaradwr ar lefel gair, ar gael dim ond ar gyfer modelau sy’n cefnogi tocynnau siaradwr. Mae pob gair yn derbyn `speaker_id`, ond mae ei amser yn parhau’n null oni bai bod `with_timestamps` hefyd wedi’i alluogi.
keywordsdewisol
Mathstring[]
≤ 1,000 eitem
Termau y dylid ffafrio eu sillafiadau yn y trawsgrifiad, gan gynnwys enwau neu derminoleg cynnyrch. Derbynnir dim mwy na 1000 term, gyda phob un wedi’i gyfyngu i 64 nod.
kanadewisol
Mathboolean
Rhagosodedigfalse
Rendro Katakana o enwau pobl ac enwau lleoedd yn Japaneg.
gofynnol Enw canonaidd, derbyniol hefyd

Mae paramedrau ffeil yn derbyn URL cyhoeddus https://, URI data: hyd at 10 MB, neu file_url uwchlwythiad. Ffeiliau

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kotoba-technologies/kotoba-stt/v1/speech-to-text",
  "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": {
    "audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "language": "ja"
  },
  "output": {
    "audio_duration_secs": 1.0,
    "language_code": "string",
    "language_probability": 1.0,
    "text": "string",
    "words": [
      {
        "end": 1.0,
        "speaker_id": "string",
        "start": 1.0,
        "text": "string",
        "type": "word"
      }
    ]
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
audio_duration_secs
number | null
language_code
string
language_probability
number
text
string
words
array of object {end, speaker_id, start, text, type}

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/kotoba-technologies/kotoba-stt/v1/speech-to-text.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt