Loading...
Loading...
Send voice messages (TTS) to the user via Telegram. Use when replying to voice messages or when a voice reply feels natural.
npx skill4agent add naohainezha/skill voice# Normal context (active Telegram chat)
curl -s -X POST http://localhost:23001/api/voice/send \
-H 'Content-Type: application/json' \
-d '{"text": "Hello! How are you today?"}'
# From cron job or background task (specify chatId)
curl -s -X POST http://localhost:23001/api/voice/send \
-H 'Content-Type: application/json' \
-d '{"text": "Hello!", "chatId": "TELEGRAM_CHAT_ID"}'{"success": true}{"success": false, "error": "..."}