Neidio i'r cynnwys

FFmpeg API [Merge Audios]

Integreiddio

ID y model ffmpeg-api/merge-audios
# 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/ffmpeg-api/merge-audios?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audios": [
      "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
      "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
    ]
  }'

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

Hyd at $0.306 fesul rhediad codir tâl yn ôl y defnydd gwirioneddol, a chaiff y gweddill ei ad-dalu Ei redeg ar y dudalen hon

Cael allwedd API
Utility Sain #ffmpeg

Cydgadwyno 2 i 5 ffeil sain mewn trefn i un ffeil, gyda codec a chyfradd allbwn y gellir eu dewis

Utility · Sain

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_urls
Gollyngwch ffeil, neu · hyd at 5

Dilyniant cyfuno a bennir gan URLau sain, gan ddefnyddio ffrwd 0 o bob ffeil restredig.

Uwch output_format

Fformat allbwn y sain gyfun, wedi'i bennu fel codec_sample_rate_bitrate. Pan gaiff ei hepgor, mae FFMPEG yn pennu'r fformat yn awtomatig.

POST /run/ffmpeg-api/merge-audios?wait=20 dyfynbris → $0.306
# 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/ffmpeg-api/merge-audios?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audios": [
      "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
      "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
    ]
  }'

# 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 â FFmpeg API [Merge Audios]

Cyfuno'r ffeiliau sain a restrir yn `audio_urls` yn drac unigol, yn y drefn a roddir. Derbynnir rhwng 2 a 5 URL. Mae `output_format` yn dewis y codec, cyfradd samplu a chyfradd didau, gyda'r opsiynau mp3, pcm, ulaw, alaw ac opus; os caiff ei hepgor, dewisir y fformat yn awtomatig.

Paramedrau

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

EnwMath RhagosodedigCaniateir Disgrifiad
audio_urlsgofynnol audios
Mathurl[] · audio
≤ 5 eitem≥ 2 eitem
Dilyniant cyfuno a bennir gan URLau sain, gan ddefnyddio ffrwd 0 o bob ffeil restredig.
output_formatdewisol
Mathenum
mp3_22050_32mp3_44100_32mp3_44100_64mp3_44100_96mp3_44100_128mp3_44100_192pcm_8000pcm_16000pcm_22050pcm_24000pcm_44100pcm_48000ulaw_8000alaw_8000opus_48000_32opus_48000_64
+3 yn rhagoropus_48000_96opus_48000_128opus_48000_192
Fformat allbwn y sain gyfun, wedi'i bennu fel codec_sample_rate_bitrate. Pan gaiff ei hepgor, mae FFMPEG yn pennu'r fformat yn awtomatig.
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": "ffmpeg-api/merge-audios",
  "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": 306,
    "usd": "0.306",
    "charged": 306,
    "refunded": 0
  },
  "input": {
    "audio_urls": [
      "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
      "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
    ]
  },
  "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
    }
  },
  "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"
  }
}
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
object {url, content_type, file_name, file_size}Ffeil sain a gynhyrchwyd drwy gyfuno.

Mwy o fodelau: Sain

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/ffmpeg-api/merge-audios.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt