langlearn-tts
A Claude Desktop extension that gives Claude the ability to speak. Ask Claude to pronounce words, generate audio flashcards, or run a full language lesson with audio — in 70+ languages.
Status (2026-02-21)
- Core CLI and MCP surfaces are working with ElevenLabs, OpenAI TTS, and AWS Polly.
- Provider defaults and audio variants (word + example) are still being standardized.
- Claude Desktop directory submission is pending external review.
Roadmap
See ROADMAP.md.
Quick Start
1. Get a TTS API key
You need an account with at least one text-to-speech provider:
- ElevenLabs — best quality, 70+ languages, 5,000+ voices. Free tier: 10K chars/month. (Recommended)
- OpenAI TTS — good quality, easiest setup, 57 languages, 9 voices.
- AWS Polly — better quality, 41 languages, 100+ voices, difficult setup (setup guide).
2. Install in Claude Desktop
Download punt-langlearn-tts.mcpb and double-click to install. Claude Desktop will prompt you for your API key and an output directory.
3. Set up a tutor project (optional)
langlearn-tts ships with 28 tutor prompts — one for each combination of 7 languages and 4 levels. Setting up a project gives Claude a tutor persona that generates audio during lessons.
- In Claude Desktop, click Projects in the sidebar
- Click Create Project and name it (e.g., "German with Herr Schmidt")
- Open the project, click Set custom instructions
- Copy a prompt from the prompts directory and paste it into the Instructions field
- Start a new conversation within that project
| Language | High School | 1st Year | 2nd Year | Advanced |
|---|---|---|---|---|
| German | Herr Schmidt | Professorin Weber | Professor Hartmann | Professor Becker |
| Spanish | Profesora Elena | Profesor Garcia | Profesora Carmen | Profesora Reyes |
| French | Madame Moreau | Professeur Laurent | Professeur Dubois | Professeur Beaumont |
| Russian | Irina Petrovna | Professor Dmitri | Professor Natasha | Professor Mikhail |
| Korean | Kim-seonsaengnim | Professor Park | Professor Kim | Professor Yoon |
| Japanese | Tanaka-sensei | Yamamoto-sensei | Suzuki-sensei | Mori-sensei |
| Chinese | Laoshi Wang | Professor Chen | Professor Zhang | Professor Wei |
Each prompt is calibrated to the student's level, based on Mollick & Mollick's "Assigning AI" framework.
4. Try it out
In any Claude Desktop conversation, try:
"Say 'Guten Morgen' in German"
"Create an audio flashcard: 'good morning' in English, then 'Guten Morgen' in German"
"Synthesize these Spanish words as a merged audio file: hola, gracias, por favor, de nada"
"Generate pair flashcards for these German vocabulary words: strong/stark, house/Haus, book/Buch"
Audio plays automatically after each request. Files are saved to your output directory (~/langlearn-audio by default).
Features
- Pronounce anything — ask Claude to say a word or phrase and hear it spoken aloud
- Audio flashcards — Claude creates an MP3 with English first, then the target language, with a pause between them
- Vocabulary lists — give Claude a list of words and get back individual or merged audio files
- 70+ languages — German, Spanish, French, Russian, Korean, Japanese, Chinese, and many more
- Tutor mode — 28 built-in tutor personas that teach with audio throughout the lesson
- Multiple voices — each provider offers a range of voices; ask Claude to use a specific one by name
- Adjustable speed — audio defaults to 90% speed so learners can hear pronunciation clearly
Troubleshooting
If something isn't working, ask Claude to run a health check:
"Run the doctor command to check if everything is set up correctly"
Logs are written to ~/.langlearn-tts/logs/langlearn-tts.log (never contains the text you synthesize). See PRIVACY.md for details.
Developer Reference
Everything below is for developers using the CLI, integrating with other MCP clients, or contributing to the project.
Claude Code / CLI
curl -fsSL https://raw.githubusercontent.com/punt-labs/langlearn-tts/14f4194/install.sh | sh
The default provider is AWS Polly. To use a different provider:
LANGLEARN_TTS_PROVIDER=elevenlabs curl -fsSL https://raw.githubusercontent.com/punt-labs/langlearn-tts/14f4194/install.sh | sh
Manual install (if you already have uv)
uv tool install punt-langlearn-tts
langlearn-tts install --provider polly
langlearn-tts doctor
Verify before running
curl -fsSL https://raw.githubusercontent.com/punt-labs/langlearn-tts/14f4194/install.sh -o install.sh
shasum -a 256 install.sh
cat install.sh
sh install.sh
Install ffmpeg for audio stitching (pairs, merged batches):
# macOS (requires Homebrew — install from https://brew.sh if needed)
brew install ffmpeg
# Linux — see https://ffmpeg.org/download.html for your distro
# Windows
winget install --id Gyan.FFmpeg
Claude Desktop setup via CLI
langlearn-tts install
Writes to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS). Options: --provider NAME, --output-dir PATH, --uvx-path PATH. Restart Claude Desktop after running.
Or add manually:
{
"mcpServers": {
"langlearn-tts": {
"command": "/absolute/path/to/uvx",
"args": ["--from", "punt-langlearn-tts", "langlearn-tts-server"],
"env": {
"LANGLEARN_TTS_OUTPUT_DIR": "/absolute/path/to/output/directory"
}
}
}
}
Claude Desktop does not inherit your shell environment. API keys must be literal values (env var references are not supported). Restart after editing.
Environment variables
| Env var | Required | Description |
|---|---|---|
LANGLEARN_TTS_PROVIDER |
No | elevenlabs, polly (default when no API key), or openai |
ELEVENLABS_API_KEY |
For ElevenLabs | Your API key |
OPENAI_API_KEY |
For OpenAI | Your API key |
LANGLEARN_TTS_OUTPUT_DIR |
No | Output directory (default: ~/langlearn-audio) |
LANGLEARN_TTS_MODEL |
No | Model name. ElevenLabs: eleven_v3 (default). OpenAI: tts-1, tts-1-hd |
For Polly, AWS credentials are read from ~/.aws/credentials.
CLI Usage
# Single synthesis
langlearn-tts synthesize "Guten Morgen" --voice daniel -o morning.mp3
# Custom speech rate (percentage, default 90)
langlearn-tts synthesize "Привет" --voice tatyana --rate 70 -o privet.mp3
# ElevenLabs with voice settings
langlearn-tts synthesize "Guten Morgen" --voice Rachel \
--stability 0.5 --similarity 0.7 --style 0.3 --speaker-boost
# Pair: English + German stitched with a pause
langlearn-tts synthesize-pair "good morning" "Guten Morgen" \
--voice1 joanna --voice2 daniel -o pair.mp3
# Batch from JSON file (["hello", "world", "good morning"])
langlearn-tts synthesize-batch words.json -d output/
# Batch merged into single file
langlearn-tts synthesize-batch words.json -d output/ --merge --pause 800
# Pair batch from JSON file ([["strong", "stark"], ["house", "Haus"]])
langlearn-tts synthesize-pair-batch pairs.json -d output/
# Browse AI tutor prompts
langlearn-tts prompt list
langlearn-tts prompt show german-high-school | pbcopy
Voices
ElevenLabs — 5,000+ voices. Any voice works with any language. You can also pass a voice ID directly (the 20-character string from the ElevenLabs dashboard). Voice settings: --stability, --similarity, --style (0.0–1.0), --speaker-boost (flag).
AWS Polly — 93 voices from the AWS Polly voice list. Each voice is trained for a specific language. Engine (neural, standard, generative, long-form) is selected automatically.
OpenAI TTS — 9 voices: alloy, ash, coral, echo, fable, onyx, nova, sage, shimmer. Default model: tts-1. Use --model tts-1-hd for higher quality.
All voice names are case-insensitive.
MCP Tools
| Tool | Description |
|---|---|
synthesize |
Single text to MP3 |
synthesize_batch |
Multiple texts, optionally merged |
synthesize_pair |
Two texts stitched with a pause |
synthesize_pair_batch |
Multiple pairs, optionally merged |
Each tool accepts auto_play (default: true) to play audio immediately after synthesis.
Other MCP clients
langlearn-tts works with any MCP client that supports stdio transport. Use the server command uvx --from punt-langlearn-tts langlearn-tts-server with the environment variables above. Find your uvx path with which uvx — all paths must be absolute.
Development
git clone https://github.com/punt-labs/langlearn-tts.git
cd langlearn-tts
uv sync --all-extras
uv run pytest tests/ -v
uv run ruff check src/ tests/
uv run ruff format src/ tests/
uv run mypy src/ tests/
uv run pyright src/ tests/
License
MIT
Metadata
Release files for punt-langlearn-tts 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| punt_langlearn_tts-0.7.2.tar.gz | 49.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| punt_langlearn_tts-0.7.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 140.9 kB
Release files / punt_langlearn_tts-0.7.2.tar.gz
| Download URL | punt_langlearn_tts-0.7.2.tar.gz |
|---|---|
| Size | 49.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19fae712bfc8ca7e613a2d6cf850bbc9f4066fc95b23ff1f1df998204d159f76
|
|
BLAKE2b-256 checksum How to use checksums |
ee3ade382813832dfae97e77112e539c6cef36e896d961a7f77146cfc9a367fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.
Transparency logRelease files / punt_langlearn_tts-0.7.2-py3-none-any.whl
| Download URL | punt_langlearn_tts-0.7.2-py3-none-any.whl |
|---|---|
| Size | 91.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9073943ec21ad46892a00a23e040be2b32893b584dcd004dd89c99dcd0e23216
|
|
BLAKE2b-256 checksum How to use checksums |
b73c14120c949b37cfc6f39f5c09c2d80551db366bf8facd133854c20ea04116
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.
Transparency logSecurity for punt-langlearn-tts 0.7.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for punt_langlearn_tts-0.7.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.