Enterprise DNA
M MCP Servers Developer low

j3k0/speech.sh

by Various

Simple curl script to play aloud what you type, useful if your voice is suddenly broken.

J

MCP

j3k0/speech.sh

Added 1 June 2026

Overview

A minimal shell script that uses curl to send text to a text-to-speech service and play the audio aloud. It is designed for situations where a user cannot speak, such as temporary voice loss.

Best for

Best for
Developers needing a quick, scriptable text-to-speech fallback for accessibility or prototyping.

Use cases

  • Quickly vocalize typed messages when voice is unavailable
  • Integrate text-to-speech into shell scripts or pipelines
  • Test or debug TTS endpoints with a simple curl command

How to use

Install

uv pip install --python .venv/bin/python "mcp[cli]" httpx

Tools exposed

  • OPENAI_API_KEY
  • SPEECH_VOICE
  • SPEECH_SPEED
  • SPEECH_MODEL
  • SPEECH_API_URL

Tested with

Claude Desktop, Claude Code, ChatGPT

Notes

A minimal shell script that uses curl to send text to a text-to-speech service and play the audio aloud. It is designed for situations where a user cannot speak, such as temporary voice loss.

7 stars on GitHub. Last updated 2026-03-19. Licensed GPL-3.0.

Use cases

  • Quickly vocalize typed messages when voice is unavailable
  • Integrate text-to-speech into shell scripts or pipelines
  • Test or debug TTS endpoints with a simple curl command

Pros

  • Extremely lightweight and dependency-free beyond curl and a player
  • Easy to understand and modify for custom TTS endpoints
  • Works in any Unix-like environment with shell access

Cons

  • Requires a separate audio player (e.g., aplay, afplay) to be installed
  • No built-in error handling or retry logic for network failures
  • Limited to basic text input; no support for SSML or voice selection

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Extremely lightweight and dependency-free beyond curl and a player
  • Easy to understand and modify for custom TTS endpoints
  • Works in any Unix-like environment with shell access

Cons

  • Requires a separate audio player (e.g., aplay, afplay) to be installed
  • No built-in error handling or retry logic for network failures
  • Limited to basic text input; no support for SSML or voice selection
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks