Media
Downmix audio surround (ex : 5.1) en stéréo
Appelez cet outil depuis votre code en trois langages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/audio-surround-to-stereo' \
-F 'file=@/path/to/audioFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/audio-surround-to-stereo' \
-F 'audioFile=/path/to/file.ext' \
-F 'centerLevel=0.7' \
-F 'surroundLevel=0.6' \
-F 'lfeLevel=0.35' \
-F 'outputFormat=mp3'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/audio-surround-to-stereo| Nom | Type | Requis | Description |
|---|---|---|---|
| audioFile | fileupload requis | Oui | — |
| centerLevel | range | Non | Quantité du canal centre/voix à mélanger dans la stéréo. |
| surroundLevel | range | Non | Apport ambiance/arrière dans le mix stéréo. |
| lfeLevel | range | Non | Énergie grave/LFE à conserver en stéréo. |
| outputFormat | select |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-audio-surround-to-stereo": {
"name": "audio-surround-to-stereo",
"description": "Downmix audio surround (ex : 5.1) en stéréo",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-surround-to-stereo",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "audio-surround-to-stereo",
"arguments": {
"audioFile": "https://example.com/file.ext",
"centerLevel": 0.7,
"surroundLevel": 0.6,
"lfeLevel": 0.35,
"outputFormat": "mp3"
}
}
}| Non |
| — |
Résultat fichier
{
"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)"
}Des questions ou un problème ? Contactez [email protected]