コンテンツへスキップ

FFmpeg API Waveform

統合

モデルID ffmpeg-api/waveform
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ffmpeg-api/waveform?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "media_url": "https://example.com/your-file.bin"
  }'

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

このリクエスト: ≈$0.001 1 APIクレジット このページで実行

APIキーを取得
Utility その他 #ffmpeg

可視化の描画用に音声ファイルから正規化された波形データを生成します

Utility · データ (JSON)

最初の結果がここに表示されます

以下でリクエストを作成し、APIキーで実行してください。出力はストレージにコピーされ、永久保存または無料で7日保存されます。

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

•必須

解析する音声ファイルを指すURL。

詳細設定 points_per_second · precision · smoothing_window
デフォルト 4

音声1秒あたりの波形サンプリングポイント数。1〜2では粗く、4〜10では細かくなります。

デフォルト 2

波形値の小数点以下の桁数。値を増やすほど数値精度が高くなる代わりにペイロードが大きくなります。

デフォルト 3

平滑化ウィンドウのサイズ。奇数である必要があります。大きいほど滑らかな波形になります。

POST /run/ffmpeg-api/waveform?wait=20 見積もり → $0.001
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ffmpeg-api/waveform?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "media_url": "https://example.com/your-file.bin"
  }'

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

このリクエストを実行

キーはこのブラウザ内に保持されます。Doitong APIにのみ送信され、「記憶する」にチェックを入れた場合のみlocalStorageに保存されます。 APIキーを取得

FFmpeg API Waveformについて

`media_url`の音声を解析し、長さ、ポイント数、精度、-1~1の値を持つ`waveform`配列を返します。`points_per_second`は1~10、`precision`は小数点以下1~6桁、`smoothing_window`は1~21で曲線を平滑化し、奇数である必要があります。

パラメータ

名前型 デフォルト許可される値 説明
media_url必須
型string
解析する音声ファイルを指すURL。
points_per_second任意
型number
デフォルト4
1 – 10
音声1秒あたりの波形サンプリングポイント数。1〜2では粗く、4〜10では細かくなります。
precision任意
型integer
デフォルト2
1 – 6
波形値の小数点以下の桁数。値を増やすほど数値精度が高くなる代わりにペイロードが大きくなります。
smoothing_window任意
型integer
デフォルト3
1 – 21
平滑化ウィンドウのサイズ。奇数である必要があります。大きいほど滑らかな波形になります。
必須

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ffmpeg-api/waveform",
  "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": {
    "media_url": "https://example.com/your-file.bin"
  },
  "output": {
    "waveform": [
      1.0
    ],
    "duration": 5,
    "points": 1,
    "precision": 1
  },
  "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ファイルの保存期間を選択すべてのoutputs[].urlはストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
waveform
array of number正規化された波形配列。音声の長さ × points_per_second個のポイントを含み、各値は-1〜1の範囲です。
duration
number音声の長さ(秒)。
points
integer波形データポイントの合計数。
precision
integer波形値に使用する小数精度。

その他のモデル: その他

AIエージェント向け:このページのMarkdown版はこちらです: https://doitong.com/ja/developers/models/ffmpeg-api/waveform.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt