Back to Blog
HermesVoiceTelegramDiscordTTSAI Agents

Hermes Agent Voice Mode on CLI, Telegram, and Discord

Learn how Hermes Agent voice mode works in the terminal, Telegram, and Discord. Test voice notes, enable spoken replies, and diagnose missing audio.

By Hermify TeamUpdated 5 min read
Microphone and chat bubbles surrounded by green sound waves

When your Hermes Agent bot understands a voice note but replies in text, transcription is working. Spoken replies are a separate setting. In a working Telegram bot chat, use /voice on and send a short voice note to test both steps.

Voice mode at a glance

Mode Where you use it What happens
Microphone capture Interactive CLI or TUI Hermes transcribes audio from the microphone and runs it through the current session. Spoken output is optional.
Voice notes Telegram or Discord chat The gateway transcribes the recording. The reply mode controls when the bot sends audio back.
Live voice channel Discord An authorized bot joins the channel and speaks its replies there.

Speech-to-text (STT) turns your recording into text for the agent to process. Text-to-speech (TTS) turns its reply into audio. The model that processes the prompt can run through a different provider from either speech step. That is why a working model key and a normal text reply tell you little about whether speech synthesis is configured.

CLI voice mode in the terminal

Start the interactive CLI with hermes. Verify that it answers a text prompt, then enter /voice on. With a supported microphone and audio dependencies available to Hermes, press Ctrl+B to record. Speak one short sentence and pause. Hermes stops after silence and uses the transcript in the session. In the CLI, /voice tts toggles playback and /voice status shows the current state.

If the shortcut does nothing, check your terminal or tmux key bindings. Recent upstream versions let you change the binding through voice.record_key in config.yaml. For a missing input device, check the operating system's microphone permission and audio backend first. A remote terminal on a VPS has no automatic access to the microphone on your laptop. Use a client with access to the mic, or send a Telegram voice note from the device that recorded it.

For dependency and provider setup on self-hosted Hermes, follow the voice setup guide. Upstream support for audio packages varies by operating system and installation method.

Telegram voice notes and replies

Open a direct chat with your authorized Telegram bot. Send a text message to confirm the connection, then record a short voice note and ask the bot to repeat a distinctive word. If it repeats the word correctly in text, you have verified that the voice note reached the gateway and transcription worked.

Chat command Reply behavior
/voice status Shows the configured reply mode.
/voice on Adds spoken replies to incoming voice messages.
/voice tts Enables spoken replies to text messages as well.
/voice off Returns to text replies. Incoming voice notes can still be transcribed.

Text replies are the default in current upstream Hermes. A regular audio attachment and an inline voice bubble are different delivery formats. Hermes normally uses Ogg/Opus for Telegram voice bubbles. Depending on the speech provider, the gateway may need FFmpeg to convert the audio. Once a test clip works, try a real use case from the Telegram voice workflows guide.

Discord messages and live voice channels

For a recorded Discord voice message, start in a direct message with the bot. In server text channels, mention the bot where the default mention requirement applies. Discord chat uses the same reply-mode commands as Telegram.

For a live conversation with a self-hosted Hermes bot, first configure text chat and grant the bot Connect and Speak in the target voice channel. The gateway needs its Discord voice dependencies and access to Opus. Enable Message Content Intent in the Discord Developer Portal. Join the voice channel yourself, then run /voice join in a text channel where the bot is present. Test with an authorized, unmuted speaker. Use /voice status to check the connection and /voice leave when you finish. Participants should know that Hermes posts transcripts in the text channel where the join command was issued.

TTS providers, languages, and privacy

Edge TTS is the upstream default and needs no API key. It uses a network service. Other options include cloud providers and local engines, depending on the installed version and dependencies. Choose based on the language and pronunciation you need, where the audio may be processed, and how the output reaches your chat. See the TTS provider comparison for the trade-offs.

Test each language with one short recording that includes a name, a number, and an action. Compare the transcript with what you said before judging the synthesized reply. Check the STT language setting if the transcript comes back in the wrong language. Compare a different TTS voice if the transcript is correct but the spoken reply sounds wrong.

Local speech processing can keep that step on your own runtime. Telegram and Discord still carry the messages or stream. A cloud speech provider may receive the recording for transcription or the reply text for synthesis. Check the messaging platform, provider, and session settings before recording sensitive material.

Find the stage that failed

Symptom First check
The bot ignores typed messages and voice notes Confirm the gateway, bot connection, and allowed user before changing audio settings.
Text works, but the voice note is not understood Check STT availability, the configured provider and language, and gateway logs for input or credential errors.
The transcript is right, but the reply is silent Check /voice status in that chat, then TTS credentials or quota and gateway logs for synthesis errors.
The bot sends an audio file instead of a voice bubble Check the format the TTS provider produces and whether FFmpeg is available to the gateway.
Discord joins but cannot hear one speaker Check that the speaker is allowed and unmuted. Test with one participant first.

Using voice with managed Hermes

Hermify’s managed Telegram path handles hosting and gateway operation. Get started with Hermify, connect Telegram, and try a short note with your bot. Check the voice options available on your instance before planning around a specific provider or command. The CLI and live Discord channel instructions above apply to upstream Hermes Agent.

Sources

Run Your Own Hermes Agent

Bring your API key, connect Telegram, and get a self-improving AI agent live in 60 seconds.

Get Started