# j3k0/speech.sh [Health: Active]

**Category:** 🎧 Text-to-Speech  
**Repository:** https://github.com/j3k0/speech.sh/blob/main/MCP_README.md  
**GitHub Stars:** 9  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/j3k0-speech-sh

## Description
Let the agent speak things out loud, notify you when he's done working with a quick summary

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "speech-sh": {
    "url": "https://api.groq.com/openai/v1/audio/speech"
  }
}
```

## Documentation

## What j3k0/speech.sh does

The j3k0/speech.sh MCP server adds spoken output to an MCP-compatible assistant. It sends text to the Groq TTS API and provides the resulting audio for local playback. The project supports four documented voices—`troy`, `austin`, `hannah`, and `autumn`—as well as an adjustable speech rate.

The MCP interface contains one tool, `speak`. Its required `text` argument supplies the content to vocalize. Optional `voice` and `speed` arguments override the configured defaults for an individual call. This makes the server suitable for reading short responses, announcing that work has finished, or speaking a generated summary.

## How it works

The recommended implementation is `server.py`, built with the Python FastMCP SDK. It calls the Groq endpoint using an OpenAI-compatible audio-speech interface. The default model is `canopylabs/orpheus-v1-english`, and the default endpoint is `https://api.groq.com/openai/v1/audio/speech`.

The repository also includes `speech.sh`, a command-line TTS implementation, and `mcp.sh`, a shell-based MCP wrapper that communicates over JSON-RPC 2.0 on standard input and output. The Python server is described as a self-contained replacement for those two scripts.

The shell TTS path caches generated audio using a hash of the request, helping avoid repeated API calls. Cached entries are cleaned up after 24 hours. Requests can also be retried with exponential backoff. Playback uses the first available supported program, including `ffplay`, `mplayer`, or VLC.

## Setup and configuration

To run the Python version, use Python 3.10 or newer and `uv`. Create a virtual environment, install `mcp[cli]` and `httpx`, then start `server.py` with `OPENAI_API_KEY` set to a Groq API key. The API key can also be supplied to the shell CLI with `--api_key`, or loaded from an `API_KEY` file in the script directory.

For an MCP client configuration, set the command to the Python executable inside the virtual environment and pass the path to `server.py` as its argument. The documented configuration includes `OPENAI_API_KEY`, `SPEECH_VOICE`, `SPEECH_SPEED`, and `SPEECH_MODEL` under the server's `env` settings.

The shell CLI additionally requires `curl`, `jq`, and one supported audio player. Its options include output-file selection, model selection, retry count, timeout, player choice, and verbose logging.

## Tools and capabilities

The j3k0/speech.sh MCP server exposes:

- Voice selection with `troy`, `austin`, `hannah`, or `autumn`.
- Per-request speech-speed control, with `1.0` as the default.
- Configurable default voice, speed, model, and API URL through environment variables.
- Local playback through `ffplay`, `mplayer`, or VLC when using the shell implementation.
- Duplicate-request caching and retry handling in the shell TTS engine.

## Limitations and notes

The Groq API key is required for operation. Audio playback depends on a compatible player being installed locally. The legacy shell MCP implementation may encounter macOS sandboxing problems when used with Claude Desktop; the Python implementation is the recommended alternative. The provided MCP interface documents only the `speak` tool, so it does not expose separate tools for listing voices, managing cache entries, or controlling playback after a request begins.

_Full upstream README: https://allmcps.com/mcp/j3k0-speech-sh/readme_

