Media
Inserta marcadores de publicidad en un episodio: tonos audibles, capítulos ID3 y etiquetas de metadatos para inserción programática.
Llama a esta herramienta desde tu código en tres lenguajes.
# 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/es/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'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/audio-podcast-ad-marker-inserter| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| audioFile | filesubida requerida | Sí | — |
| insertionPoints | textarea | Sí | — |
| markerType | select | Sí | — |
| adSlotDuration | number | No | — |
| beepFrequency | number | No | — |
| beepDuration | number | No | — |
| beepLevel | number | No | — |
| episodeTitle | text | No | — |
| showName | text | No | — |
| hostName | text | No | — |
Resultado de archivo
{
"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)"
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-audio-podcast-ad-marker-inserter": {
"name": "audio-podcast-ad-marker-inserter",
"description": "Inserta marcadores de publicidad en un episodio: tonos audibles, capítulos ID3 y etiquetas de metadatos para inserción programática.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-podcast-ad-marker-inserter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"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"
}
}
}¿Dudas o problemas? Contacta con [email protected]