Media
Planifiez l'enregistrement audio automatique avec compte à rebours et durée configurable
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/audio-recorder-scheduled' \
-H 'Content-Type: application/json' \
-d '{"outputFormat":"webm","sampleRate":"44100","duration":30,"startDelay":5,"enableCountdown":true}'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-recorder-scheduled| Nom | Type | Requis | Description |
|---|---|---|---|
| outputFormat | select | Non | Audio format for the recorded file |
| sampleRate | select | Non | Audio sample rate in Hz |
| duration | number | Non | How long to record (5-3600 seconds) |
| startDelay | number | Non | Countdown duration before recording starts (1-60 seconds) |
| enableCountdown | checkbox | Non |
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-recorder-scheduled": {
"name": "audio-recorder-scheduled",
"description": "Planifiez l'enregistrement audio automatique avec compte à rebours et durée configurable",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-recorder-scheduled",
"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-recorder-scheduled",
"arguments": {
"outputFormat": "webm",
"sampleRate": "44100",
"duration": 30,
"startDelay": 5,
"enableCountdown": true
}
}
}Des questions ou un problème ? Contactez [email protected]
| Show visual countdown before recording starts |
Résultat interactif
{
"result": "Initial display content",
"interactive": true,
"components": [
{
"type": "timer",
"id": "timer1",
"config": {
"label": "Countdown",
"duration": 60
}
}
],
"state": {
"key": "value"
},
"actions": [
{
"type": "start",
"id": "start-btn",
"label": "Start"
}
],
"styles": "/* Custom CSS */",
"scripts": "/* Client-side scripts */",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}