Media
Смикшировать две дорожки с сайдчейн компрессией (голос приглушает музыку)
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/audio-sidechain-compress' \
-F 'file=@/path/to/mainAudio.ext'
curl -X POST 'https://api.elysiatools.com/upload/audio-sidechain-compress' \
-F 'file=@/path/to/sidechainAudio.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/ru/api/tools/audio-sidechain-compress' \
-F 'mainAudio=/path/to/file.ext' \
-F 'sidechainAudio=/path/to/file.ext' \
-F 'offset=e.g., 5 or 00:00:05' \
-F 'threshold=-20dB' \
-F 'ratio=4' \
-F 'attack=20' \
-F 'release=300' \
-F 'outputFormat=mp3' \
-F 'sampleRate=auto' \
-F 'channels=auto'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/audio-sidechain-compress| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| mainAudio | fileнужна загрузка | Да | — |
| sidechainAudio | fileнужна загрузка | Да | — |
| offset | text | Нет | — |
| threshold | text | Нет | — |
| ratio | text | Нет | — |
| attack | text | Нет | — |
| release | text | Нет | — |
| outputFormat | select | Нет | — |
| sampleRate | select | Нет | — |
| channels | 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, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-audio-sidechain-compress": {
"name": "audio-sidechain-compress",
"description": "Смикшировать две дорожки с сайдчейн компрессией (голос приглушает музыку)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-sidechain-compress",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "audio-sidechain-compress",
"arguments": {
"mainAudio": "https://example.com/file.ext",
"sidechainAudio": "https://example.com/file.ext",
"offset": "e.g., 5 or 00:00:05",
"threshold": "-20dB",
"ratio": "4",
"attack": "20",
"release": "300",
"outputFormat": "mp3",
"sampleRate": "auto",
"channels": "auto"
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]