Media
用 FFmpeg 双输入 sidechaincompress 渲染真正的侧链压缩:过滤触发信号、完整包络控制(启动/释放/拐点/联动/混合),输出成品文件并实测压差。
用三种语言从你的代码中调用此工具。
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/sidechain-compressor-pro' \
-H 'Content-Type: application/json' \
-d '{"filename":"musicFile.ext","contentType":"application/octet-stream","size":12345}'
curl -X POST 'https://api.elysiatools.com/api/upload/presign/sidechain-compressor-pro' \
-H 'Content-Type: application/json' \
-d '{"filename":"triggerFile.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/zh/api/tools/sidechain-compressor-pro' \
-F 'musicFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'triggerFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'preset=kick-duck-bass' \
-F 'thresholdDb=-20' \
-F 'ratio=5' \
-F 'attackMs=4' \
-F 'releaseMs=60' \
-F 'makeupDb=0' \
-F 'knee=2.8' \
-F 'levelScDb=0' \
-F 'detection=rms' \
-F 'link=average' \
-F 'mixPercent=100' \
-F 'scHighpassHz=0' \
-F 'scLowpassHz=0' \
-F 'outputFormat=wav'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/sidechain-compressor-pro| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| musicFile | file需先上传 | 是 | — |
| triggerFile | file需先上传 | 是 | — |
| preset | select | 是 | — |
| thresholdDb | number | 是 | — |
| ratio | number | 是 | — |
| attackMs | number | 是 | — |
| releaseMs | number | 是 | — |
| makeupDb | number | 是 | — |
| knee | number | 是 | — |
| levelScDb | number | 是 | — |
| detection | select | 是 | — |
| link | select | 是 | — |
| mixPercent | number | 是 | — |
| scHighpassHz | number | 是 | — |
| scLowpassHz | number | 是 | — |
| outputFormat | select | 是 | — |
文件结果
{
"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)"
}将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-sidechain-compressor-pro": {
"name": "sidechain-compressor-pro",
"description": "用 FFmpeg 双输入 sidechaincompress 渲染真正的侧链压缩:过滤触发信号、完整包络控制(启动/释放/拐点/联动/混合),输出成品文件并实测压差。",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=sidechain-compressor-pro",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}连接到 SSE 端点后,列出已开放的工具:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}通过工具 id 调用,参数由其参数表构建:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "sidechain-compressor-pro",
"arguments": {
"musicFile": "https://example.com/file.ext",
"triggerFile": "https://example.com/file.ext",
"preset": "kick-duck-bass",
"thresholdDb": -20,
"ratio": 5,
"attackMs": 4,
"releaseMs": 60,
"makeupDb": 0,
"knee": 2.8,
"levelScDb": 0,
"detection": "rms",
"link": "average",
"mixPercent": 100,
"scHighpassHz": 0,
"scLowpassHz": 0,
"outputFormat": "wav"
}
}
}有问题或反馈?请联系 [email protected]