Media
Simulate the sound of a telephone call
Chame esta ferramenta a partir do seu código em três idiomas.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/audio-telephone-effect' \
-F 'file=@/path/to/audioFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/pt/api/tools/audio-telephone-effect' \
-F 'audioFile=/path/to/file.ext' \
-F 'phoneType=landline' \
-F 'quality=0.6' \
-F 'static=0.1' \
-F 'compression=0.7' \
-F 'bandwidth=0.8' \
-F 'mix=0.9' \
-F 'outputFormat=mp3'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/audio-telephone-effect| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| audioFile | fileupload necessário | Sim | — |
| phoneType | select | Não | Type of telephone system to simulate. Each has unique frequency and distortion characteristics. |
| quality | range | Não | Quality of the telephone connection. Lower = more artifacts and compression, Higher = clearer sound. |
| static | range | Não | Amount of static and background noise. Higher = more realistic telephone line noise. |
| compression |
Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-audio-telephone-effect": {
"name": "audio-telephone-effect",
"description": "Simulate the sound of a telephone call",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-telephone-effect",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "audio-telephone-effect",
"arguments": {
"audioFile": "https://example.com/file.ext",
"phoneType": "landline",
"quality": 0.6,
"static": 0.1,
"compression": 0.7,
"bandwidth": 0.8,
"mix": 0.9,
"outputFormat": "mp3"
}
}
}| range |
| Não |
| Dynamic range compression. Higher = more consistent volume, characteristic of phone systems. |
| bandwidth | range | Não | Frequency bandwidth of the phone line. Lower = narrower frequency range, more muffled. |
| mix | range | Não | Balance between dry (original) and wet (telephone) signal. |
| outputFormat | select | Não | — |
Resultado de arquivo
{
"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)"
}Dúvidas ou problemas? Contate [email protected]