# Repository Briefing: hgneng/ekho
> Source: https://repoforai.com/repo/hgneng/ekho (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/hgneng/ekho
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Lex
- **License**: GPL-2.0
- **Engineering Health**: B+ (73/100 · Maintenance 31/35 · Adoption 20/25 · Releases 11/20 · License 11/20)
- **Latest Release**: v9.0 (2023-08-08) — https://github.com/hgneng/ekho/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted
- **Momentum**: 1,212 ★ total (+0 24h / +0 7d) · 267 forks
- **Topics**: `cantonese`, `chinese`, `tibetan`, `tts`
- **When to Use**: Best for: Local Mandarin or Toisanese read-aloud workflows where you can provision voice files, invoke a CLI, and validate pronunciation on your own text. Skip if: You need a managed streaming endpoint, bundled voices with confirmed redistribution rights, or proven latency, concurrency, and voice-quality guarantees out of the box.

## Overview
```text
### Architecture & Core Mechanics
Ekho separates the local synthesis engine from its voice assets. The clearest execution path is the `ekho` CLI: it accepts text and selects a voice with `-v`. For Mandarin, the voice files live in the `pinyin` directory. After a voice swap, removing `pinyin.index` and `pinyin.voice` lets the next run regenerate both from the replacement data.

`configure.ac`, `Makefile.am`, and `autogen.sh` identify an Autotools build path. The tree also contains `festival_agent.cpp`, `festival_agent.h`, and `speechd-api`. These are useful integration leads, but they do not establish that Festival is a mandatory runtime dependency or that Ekho exposes a network service or stable extension API.

### Key Capabilities & Differentiators
The demonstrated workflow is local text-to-speech with selectable voices. The Docker example selects Toisanese with `-v Toisanese`, and v9.0 makes baker the default Mandarin voice. Cantonese and Tibetan are project topics, but do not treat those labels as a guarantee that a particular package includes the corresponding voices. Verify each required language against the voice data you intend to deploy.

Operators can replace the Mandarin voice directory without rebuilding the executable, provided they remove the generated files and let Ekho rebuild them. There is also a path for creating custom voices, but the asset format and production requirements are not specified. Validate output format, streaming behavior, and performance before depending on any of them.

### Trade-offs & Limitations
Compared with a hosted TTS API, Ekho keeps the demonstrated synthesis path local but leaves voice provisioning, host audio, and application integration to the operator. Its Toisanese example makes it worth testing when that language is a requirement. Compared with neural TTS, assess pronunciation, intelligibility, and naturalness on your own text; there is no benchmark here that establishes a quality or latency lead.

Changing the voice files and regenerating their indexes are coupled steps. Deploy them together, verify write access for regeneration, and retain the previous engine and voice artifacts for rollback. The engine is GPL-2.0: internal operation and redistribution are different cases, and separately obtained voice packages need their own license review.

### Hardware & Deployment Guide
For a source build, start with the Autotools files and `INSTALL`, or consult `BUILD-macOS-arm64.md` for that platform. Provision the voice data separately. The Docker example uses `dosentmatter/ekho`: on Linux it passes `/dev/snd`; on macOS it uses host PulseAudio, `PULSE_SERVER=host.docker.internal`, and a mounted PulseAudio configuration directory. Neither route eliminates host audio setup when playback is required.

No hosted API is needed for the demonstrated local CLI path once the engine and voices are installed. For repeatable deployment, pin the engine and voice artifacts separately and test regeneration wherever the voice data is staged. v8.9.3 (2022-09-09) targeted Debian package building; v9.0 (2023-08-08) changed the default Mandarin voice. Test upgrades for audible changes even when your CLI invocation stays the same.
```

## Key Capabilities
```text
- CLI: The container example selects the Toisanese voice with `-v Toisanese` and passes `排骨` as input text.
- Voice provisioning: Voice files come from a distribution package or a separate voice-data download, not from the source checkout.
- Mandarin updates: Replacing `pinyin` requires regenerating `pinyin.index` and `pinyin.voice` on the next run.
- Linux audio: The Docker example passes `/dev/snd` into the container for playback.
- macOS container audio: The example routes playback through host PulseAudio using `PULSE_SERVER=host.docker.internal` and a mounted PulseAudio configuration directory.
- Release changes: v9.0 switched the default Mandarin voice to baker; v8.9.3 focused on Debian package building.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/hgneng/ekho.git
cd ekho
```
