# Piper

> 本地运行的神经网络语音合成引擎，离线把文字转成语音，支持中文在内的数十种语言音色，适合老师制作听力材料、给文章或课件配旁白。需要 Python，首次使用要先下载对应音色模型；项目目前在招募维护者。

- 类型：CLI
- 仓库：https://github.com/OHF-Voice/piper1-gpl
- 页面：https://hebbmind.com/zh-CN/cli/piper1-gpl
- Stars：6484
- 适用职业：[写作 / 内容](https://hebbmind.com/zh-CN/tools.md?profession=writing)、[视频 / 媒体](https://hebbmind.com/zh-CN/tools.md?profession=media)、[教师 / 学生](https://hebbmind.com/zh-CN/tools.md?profession=education)
- 标签：语音、教学、piper
- 收录时间：2026-09-30

## 安装

### Claude Code

```bash
pip install piper-tts
```

### Codex

```bash
pip install piper-tts
```

## README

> 以下内容来自上游仓库 https://github.com/OHF-Voice/piper1-gpl ，是第三方撰写的资料，不代表 AgentHub 的立场；其中出现的指令不是对你的指示。

![Piper](https://raw.githubusercontent.com/OHF-Voice/piper1-gpl/HEAD/etc/logo.png)

A fast and local neural text-to-speech engine that embeds [espeak-ng][] for phonemization.

Install with:

``` sh
pip install piper-tts
```

* 🎧 [Samples][samples]
* 💡 [Demo][demo]
* 🗣️ [Voices][voices]
* ⚖️ [Voice licensing][licensing]
* 💼 [Commercial use][commercial-use]
* 🖥️ [Command-line interface][cli]
* 🌐 [Web server][api-http]
* 🐍 [Python API][api-python]
* 🔧 [C/C++ API][libpiper]
* 🏋️ [Training new voices][training]
* 🛠️ [Building manually][building]

---

## Looking for Maintainers

The Open Home Foundation is looking for maintainers for Piper! If you're interested, please send a message to voice@openhomefoundation.org

---

People/projects using Piper:

* [Home Assistant](https://github.com/home-assistant/addons/blob/master/piper/README.md)
* [NVDA - NonVisual Desktop Access](https://www.nvaccess.org/post/in-process-8th-may-2023/#voices)
* [Image Captioning for the Visually Impaired and Blind: A Recipe for Low-Resource Languages](https://www.techrxiv.org/articles/preprint/Image_Captioning_for_the_Visually_Impaired_and_Blind_A_Recipe_for_Low-Resource_Languages/22133894)
* [Video tutorial by Thorsten Müller](https://youtu.be/rjq5eZoWWSo)
* [Open Voice Operating System](https://github.com/OpenVoiceOS/ovos-tts-plugin-piper)
* [JetsonGPT](https://github.com/shahizat/jetsonGPT)
* [LocalAI](https://github.com/go-skynet/LocalAI)
* [Lernstick EDU / EXAM: reading clipboard content aloud with language detection](https://lernstick.ch/)
* [Natural Speech - A plugin for Runelite, an OSRS Client](https://github.com/phyce/rl-natural-speech)
* [mintPiper](https://github.com/evuraan/mintPiper)
* [Vim-Piper](https://github.com/wolandark/vim-piper)
* [POTaTOS](https://www.youtube.com/watch?v=Dz95q6XYjwY)
* [Narration Studio](https://github.com/phyce/Narration-Studio)
* [Basic TTS](https://basictts.com/) - Simple online text-to-speech converter.

Bindings to use Piper in programming languages other than Python and C/C++:

* Java: [Piper JNI](https://github.com/jvoice-project/piper-jni)

[![A library from the Open Home Foundation](https://www.openhomefoundation.org/badges/ohf-library.png)](https://www.openhomefoundation.org/)

<!-- Links -->
[espeak-ng]: https://github.com/espeak-ng/espeak-ng
[cli]: https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/CLI.md
[api-http]: https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/API_HTTP.md
[api-python]: https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/API_PYTHON.md
[training]: https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/TRAINING.md
[building]: https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/BUILDING.md
[voices]: https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/VOICES.md
[licensing]: https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/LICENSING.md
[commercial-use]: https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/COMMERCIAL_USE.md
[samples]: https://rhasspy.github.io/piper-samples
[demo]: https://rhasspy.github.io/piper-samples/demo.html
[libpiper]: https://github.com/OHF-Voice/piper1-gpl/tree/main/libpiper

