Media
Filter audio based on its spectral content
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/audio-spectral-filter' \
-F 'file=@/path/to/audioFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/audio-spectral-filter' \
-F 'audioFile=/path/to/file.ext' \
-F 'filterType=enhance' \
-F 'lowFreq=100' \
-F 'lowGain=0' \
-F 'midFreq=1000' \
-F 'midGain=3' \
-F 'highFreq=5000' \
-F 'highGain=2' \
-F 'sharpness=0.5' \
-F 'resonance=0.3' \
-F 'mix=0.85' \
-F 'outputFormat=mp3'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/audio-spectral-filter| Name | Type | Required | Description |
|---|---|---|---|
| audioFile | fileupload required | Yes | — |
| filterType | select | No | Type of spectral filtering to apply. Each type has different frequency shaping characteristics. |
| lowFreq | number | No | Center frequency for low frequency band adjustments. |
| lowGain | range | No | Gain adjustment for low frequency band. Positive = boost, Negative = cut. |
| midFreq | number | No | Center frequency for mid frequency band adjustments. |
| midGain | range | No | Gain adjustment for mid frequency band. Positive = boost, Negative = cut. |
| highFreq | number | No | Center frequency for high frequency band adjustments. |
| highGain | range | No | Gain adjustment for high frequency band. Positive = boost, Negative = cut. |
| sharpness | range | No | How steep the filter transitions are. Higher values = more precise frequency targeting. |
| resonance | range | No | Adds feedback character to the filter. Higher values = more pronounced filter response. |
| mix | range | No | Balance between dry (original) and wet (filtered) signal. |
| outputFormat | select | No | — |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-audio-spectral-filter": {
"name": "audio-spectral-filter",
"description": "Filter audio based on its spectral content",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-spectral-filter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "audio-spectral-filter",
"arguments": {
"audioFile": "https://example.com/file.ext",
"filterType": "enhance",
"lowFreq": 100,
"lowGain": 0,
"midFreq": 1000,
"midGain": 3,
"highFreq": 5000,
"highGain": 2,
"sharpness": 0.5,
"resonance": 0.3,
"mix": 0.85,
"outputFormat": "mp3"
}
}
}Questions or issues? Contact [email protected]