audiostring
Audio file or URL to clean. Provide either `audio` or `video`.
elevenlabs/audio-isolationElevenLabs Audio Isolation removes background noise and music from an audio or video file and returns the clean speech track.
モデルを試す
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"audio": "https://static.sandbase.ai/examples/e03ada18-3573-498d-99e6-5d385eced84d/input/64b96f9b-a580-4e8d-ab04-63fa843f2d89.mp3"
}{
"audio": "https://static.sandbase.ai/examples/132da18d-5572-45d3-b13c-2b9a25569efb/input/fa138e27-b3d1-497c-ad7e-9a06f383004a.mp3"
}{
"video": "https://static.sandbase.ai/examples/39a30155-62b5-4d07-968b-e2b4c03a1046/input/780779a8-7e61-4db5-803f-62eeca2e5e19.mp4"
}ElevenLabs Audio Isolation strips background noise, music, and room sound from a recording and keeps the voice. It accepts an audio file or a video file.
| Field | Type | Default | Notes |
|---|---|---|---|
audio | audio file or URL | — | Recording to clean. |
video | video file or URL | — | Use instead of audio to clean the speech in a video. |
Provide one of audio or video. The output is an audio file.
$0.10 per minute of input, billed per started second of the measured length.
| Audio | Price |
|---|---|
| 30 s | $0.05 |
| 5 min | $0.50 |
| 30 min | $3.00 |
Failed runs are not charged.
開発を始める
このモデルをSandBase Unified Run API経由で送信します。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "elevenlabs/audio-isolation",
"audio": "https://static.sandbase.ai/examples/elevenlabs/audio-isolation/output_url_0.mp3"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"SandBaseのAPIキーを作成し、サーバー環境に設定してください。すべてのリクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開したり、リポジトリにコミットしたりしないでください。
このモデルIDと入力を使って /v1/run にPOSTしてください。上のリクエスト例には送信とポーリングが含まれています。
返されたrun IDを使って、ステータスがcompleted、failed、timeoutになるまでポーリングしてください。出力はcompleted後にのみ読み取ってください。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"モデルのimage、video、またはaudioフィールドに、公開アクセス可能なファイルURLを指定してください。対応形式と制限は各Playground入力の横に表示されます。
Playgroundの対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
audiostringAudio file or URL to clean. Provide either `audio` or `video`.
videostringVideo file or URL to extract clean speech from. Provide either `audio` or `video`.
{
"model": "elevenlabs/audio-isolation",
"audio": "https://static.sandbase.ai/examples/elevenlabs/audio-isolation/output_url_0.mp3"
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"url": "https://static.sandbase.ai/examples/e03ada18-3573-498d-99e6-5d385eced84d/output/7a7e1e89-d057-4766-9d73-a4d8cce8505f.mp3"
}
]