---
name: hermes-stt-setup
description: "Enable Speech-to-Text (STT) in Hermes Agent."
version: 1.0.0
author: Hermes Agent
license: MIT
platforms: [linux, macos, windows]
---
# Hermes STT Setup

This skill walks you through enabling Speech‑to‑Text (STT) so Hermes can transcribe voice messages from Telegram, Discord, etc.

## Prerequisites
- Hermes Agent installed (`hermes` command available).
- Basic familiarity with `hermes config`.

## Step‑by‑Step

1. **Check current STT configuration**
   ```bash
   hermes config
   ```
   Look for the `stt:` section.

2. **Enable STT**
   ```bash
   hermes config set stt.enabled true
   ```

3. **Choose a provider**
   - **Local (faster‑whisper)** – free, no API key
   - **Local Command** – custom wrapper script (set `HERMES_LOCAL_STT_COMMAND` env var)
   - **Groq** – needs `GROQ_API_KEY`
   - **OpenAI Whisper** – needs `VOICE_TOOLS_OPENAI_KEY`
   - **Mistral Voxtral** – needs `MISTRAL_API_KEY`

   Example for local (faster-whisper):
   ```bash
   hermes config set stt.provider local
   ```

   Example for local_command (custom wrapper):
   ```bash
   hermes config set stt.provider local_command
   # REQUIRED: set the command template via env var (config.yaml is NOT read for this)
   export HERMES_LOCAL_STT_COMMAND="/path/to/wrapper.sh {input_path} {model} {output_dir} {language}"
   ```

4. **Install the Whisper backend**
   - **Local faster‑whisper** (recommended)
     ```bash
     # If you have write access to the Hermes venv:
     uv pip install faster-whisper
     # If you need sudo:
     sudo uv pip install faster-whisper
     # Or install into a separate venv and point Hermes at it:
     uv venv ~/whisper_venv
     source ~/whisper_venv/bin/activate
     uv pip install faster-whisper
     # Then set VIRTUAL_ENV or adjust hermes' python path accordingly.
     ```
   - **Provider‑specific** – just export the env var (no extra pip package needed).

5. **Restart Hermes**
   - CLI: exit and relaunch `hermes`, or use `/reset` in chat.
   - Gateway: send `/restart` in the chat or run `hermes gateway restart`.

6. **Test**
   Send a voice message in your configured platform; Hermes should reply with the transcription.

## Troubleshooting

- **Permission denied on venv**
  The Hermes venv (`/opt/hermes/.venv`) is often owned by root. Either:
  - Use `sudo uv pip install faster-whisper`, or
  - Change ownership: `sudo chown -R $(whoami):$(whoami) /opt/hermes/.venv` (if allowed), then install.

- **ModuleNotFoundError after install**
  Ensure you are installing into the same Python environment that Hermes uses.
  Check with `which hermes` and `hermes --version` to locate the venv, then activate it before pip install.

- **faster-whisper fails with PyAV 19.x** (`TypeError: open() got an unexpected keyword argument 'metadata_errors'`)
  `faster-whisper` 1.2.1 is incompatible with PyAV >= 19. Downgrade PyAV:
  ```bash
  pip install 'av<19'
  ```
  This installs PyAV 18.1.0 which works. Verify with `python -c "import av; print(av.__version__)"`.

- **No transcription**
  Verify `stt.enabled` is `true` and the provider matches the installed backend.
  Check Hermes logs: `~/.hermes/logs/gateway.log` for errors.

## Reference

For full provider details see the official docs:
https://hermes-agent.nousresearch.com/docs/user-guide/features/voice/
---