falAudio to audioComing soon
fal-ai/sam-audio/span-separate
fal-ai/sam-audio/span-separate is an audio to audio tool from fal that runs in the background and returns audio. Coming soon: listed with its price, not yet open to runs.
This tool is listed but not yet available to run.
Price pendingPricing
Price pending.
Limits
- Runs
- In the background
- Returns
- audio
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
audio_url required | URL or file | — | URL of the audio file to process. |
prompt | text | — | Text prompt describing the sound to isolate. Optional but recommended - helps the model identify what type of sound to extract from the span. |
spans required | JSON | — | Time spans where the target sound occurs which should be isolated. |
reranking_candidates | number (whole) 1 to 7 | 1 | Number of candidates to generate and rank. Higher improves quality but increases latency and cost. Requires text prompt; ignored for span-only separation. |
acceleration | one of fast, balanced, quality | balanced | The acceleration level to use. |
max_chunk_duration | number 10 to 60 | 60 | Maximum audio duration (in seconds) to process in a single pass. Longer audio will be chunked with overlap and blended. |
chunk_overlap | number 0 to 30 | 5 | Overlap duration (in seconds) between chunks for crossfade blending. |
use_sound_activity_ranking | true or false | false | Use sound activity detection to rank reranking candidates based on how well each candidate's non-silent regions match the provided spans. Enables effective reranking even without a text prompt (span-only separation). Requires reranking_candidates > 1. |
trim_to_span | true or false | false | Trim output audio to only include the specified span time range. If False, returns the full audio length with the target sound isolated throughout. |
output_format | one of wav, mp3 | wav | Output audio format. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "fal",
"model": "fal-ai/sam-audio/span-separate",
"input": {
"audio_url": "https://v3b.fal.media/files/b/0a8853d1/T7zRmsiculA6u_V6RCF2c_man.mp3",
"spans": {}
}
}'