Media
Вставляет рекламные метки в выпуск: звуковые тоны, главы ID3 и теги метаданных для программатик-рекламы.
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/audio-podcast-ad-marker-inserter' \
-H 'Content-Type: application/json' \
-d '{"filename":"audioFile.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/ru/api/tools/audio-podcast-ad-marker-inserter' \
-F 'audioFile=/public/samples/mp3/waterfall.mp3' \
-F 'insertionPoints=0:10 Pre-roll ad
2:00-2:30 Mid-roll ad' \
-F 'markerType=full' \
-F 'adSlotDuration=60' \
-F 'beepFrequency=1000' \
-F 'beepDuration=0.3' \
-F 'beepLevel=-12' \
-F 'episodeTitle=Demo Episode' \
-F 'showName=Test Podcast' \
-F 'hostName=Jane Doe'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/audio-podcast-ad-marker-inserter| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| audioFile | fileнужна загрузка | Да | — |
| insertionPoints | textarea | Да | — |
| markerType | select | Да | — |
| adSlotDuration | number | Нет | — |
| beepFrequency | number | Нет | — |
| beepDuration | number | Нет | — |
| beepLevel | number | Нет | — |
| episodeTitle | text | Нет | — |
| showName | text | Нет | — |
| hostName | text | Нет | — |
Файловый результат
{
"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-podcast-ad-marker-inserter": {
"name": "audio-podcast-ad-marker-inserter",
"description": "Вставляет рекламные метки в выпуск: звуковые тоны, главы ID3 и теги метаданных для программатик-рекламы.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-podcast-ad-marker-inserter",
"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-podcast-ad-marker-inserter",
"arguments": {
"audioFile": "/public/samples/mp3/waterfall.mp3",
"insertionPoints": "0:10 Pre-roll ad\n2:00-2:30 Mid-roll ad",
"markerType": "full",
"adSlotDuration": 60,
"beepFrequency": 1000,
"beepDuration": 0.3,
"beepLevel": -12,
"episodeTitle": "Demo Episode",
"showName": "Test Podcast",
"hostName": "Jane Doe"
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]