Media
Chorus-Effekt anwenden
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
# 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/de/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'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/audio-chorus| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| audioFile | fileUpload nötig | Ja | — |
| voices | textarea | Nein | — |
| outputFormat | select | Nein | — |
Dateiergebnis
{
"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)"
}Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-audio-chorus": {
"name": "audio-chorus",
"description": "Chorus-Effekt anwenden",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-chorus",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"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"
}
}
}Fragen oder Probleme? Kontakt: [email protected]