Media
Applique un effet chorus
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-chorus' \
-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-chorus' \
-F 'audioFile=/path/to/file.ext' \
-F 'voices=[
{
"inGain": 0.5,
"outGain": 0.9,
"delay": 40,
"decay": 0.4,
"speed": 0.25,
"depth": 2
},
{
"inGain": 0.5,
"outGain": 0.9,
"delay": 50,
"decay": 0.4,
"speed": 0.3,
"depth": 2
}
]' \
-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-chorus| Nom | Type | Requis | Description |
|---|---|---|---|
| audioFile | fileupload requis | Oui | — |
| voices | textarea | Non | — |
| outputFormat | select | 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)"
}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-chorus": {
"name": "audio-chorus",
"description": "Applique un effet chorus",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-chorus",
"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-chorus",
"arguments": {
"audioFile": "https://example.com/file.ext",
"voices": "[\n {\n \"inGain\": 0.5,\n \"outGain\": 0.9,\n \"delay\": 40,\n \"decay\": 0.4,\n \"speed\": 0.25,\n \"depth\": 2\n },\n {\n \"inGain\": 0.5,\n \"outGain\": 0.9,\n \"delay\": 50,\n \"decay\": 0.4,\n \"speed\": 0.3,\n \"depth\": 2\n }\n]",
"outputFormat": "mp3"
}
}
}Des questions ou un problème ? Contactez [email protected]