Media
添加模拟大型音乐厅的混响效果
用三种语言从你的代码中调用此工具。
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/audio-hall-reverb' \
-F 'file=@/path/to/audioFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/zh/api/tools/audio-hall-reverb' \
-F 'audioFile=/path/to/file.ext' \
-F 'hallSize=0.8' \
-F 'decayTime=2.5' \
-F 'diffusion=0.7' \
-F 'damping=0.4' \
-F 'preDelay=100' \
-F 'outputFormat=mp3'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/audio-hall-reverb| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| audioFile | file需先上传 | 是 | — |
| hallSize | range | 否 | 音乐厅的相对大小。值越大空间越大,衰减时间越长。 |
| decayTime | number | 否 | 混响衰减至静默的时间。越长=混响越明显的大厅。 |
| diffusion | range | 否 | 控制混响尾巴的密度和平滑度。越高=衰减越均匀。 |
| damping | range | 否 | 控制高频吸收。越低=大厅越明亮,越高=声音越温暖、阻尼。 |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-audio-hall-reverb": {
"name": "audio-hall-reverb",
"description": "添加模拟大型音乐厅的混响效果",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-hall-reverb",
"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": "audio-hall-reverb",
"arguments": {
"audioFile": "https://example.com/file.ext",
"hallSize": 0.8,
"decayTime": 2.5,
"diffusion": 0.7,
"damping": 0.4,
"preDelay": 100,
"outputFormat": "mp3"
}
}
}| preDelay |
| 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)"
}有问题或反馈?请联系 [email protected]