Isolate and extract specific sounds from audio or video files using SAM Audio AI technology. Describe the sound you want to isolate, and the API separates it from background noise.
Use cases:
Input options:
audio URL/base64 or a video URL/base64 (mutually exclusive)Output: WAV audio file containing the isolated sound
Your Freepik API key. Required for authentication. Learn how to obtain an API key
Text description of the sound to isolate from the input audio or video. Be specific about the type of sound you want to extract.
2500"A person speaking"
Audio input - either a publicly accessible HTTPS URL or base64 encoded audio. Supported formats: WAV, MP3, FLAC, OGG, M4A. Mutually exclusive with video.
"https://example.com/input-audio.wav"
Video input - either a publicly accessible HTTPS URL or base64 encoded video. Supported formats: MP4, MOV, WEBM, AVI. Mutually exclusive with audio.
"https://example.com/input-video.mp4"
Bounding box x1 coordinate (left edge) in pixels for sound source localization. Only applicable for video input.
x >= 0100
Bounding box y1 coordinate (top edge) in pixels for sound source localization. Only applicable for video input.
x >= 050
Bounding box x2 coordinate (right edge) in pixels for sound source localization. Only applicable for video input.
x >= 0400
Bounding box y2 coordinate (bottom edge) in pixels for sound source localization. Only applicable for video input.
x >= 0300
Frame sampling rate in FPS for video processing. Higher values provide more temporal precision but increase processing time.
1 <= x <= 52
Number of reranking candidates for quality vs latency trade-off. Higher values produce better quality but slower processing.
1 <= x <= 81
Enable span prediction for better isolation of non-ambient sounds like speech or musical notes.
false
Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.
"https://www.example.com/webhook"
OK - The task exists and the status is returned
{
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED",
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
]
}