yuppie-tts
Text-to-Speech 纯 Python 库(基于 edge-tts,微软 Edge 免费 TTS 引擎),无 MCP 依赖。
从 yuppie-mcp-tts 仓库拆出的纯库包:如果你只想在自己的 Python 项目里合成语音,不想引入 MCP 及其版本约束,直接用这个包。
安装
uv add yuppie-tts # 或 pip install yuppie-tts
快速开始
import asyncio
from yuppie_tts import synthesize, AVAILABLE_VOICES
async def main():
audio = await synthesize("你好世界", voice="zh-CN-XiaoxiaoNeural", speed=1.0)
with open("/tmp/output.mp3", "wb") as f:
f.write(audio)
print(len(AVAILABLE_VOICES), "个可用嗓音") # 55
asyncio.run(main())
API
yuppie_tts.synthesize(text, voice="en-US-JennyNeural", speed=1.0) -> bytes— 异步合成,返回 MP3 音频字节;失败抛异常yuppie_tts.AVAILABLE_VOICES— 50+ 可用嗓音(中英文等多语种)yuppie_tts.DEFAULT_VOICE— 默认嗓音en-US-JennyNeural
与 MCP Server 的关系
同一仓库的 packages/yuppie-mcp-tts 是本库的 MCP 壳(把 TTS 工具注册为 MCP 工具),PyPI 分发(uvx yuppie-mcp-tts),依赖本包。两者版本独立演进。
依赖
Python ≥ 3.10;仅 edge-tts。无 pydantic、无 mcp。
Metadata
Release files for yuppie-tts 0.1.0
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 | Actions |
|---|---|---|---|---|
| yuppie_tts-0.1.0.tar.gz | 3.2 kB | Without provenance | Details for yuppie_tts-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yuppie_tts-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for yuppie_tts-0.1.0-py3-none-any.whl |
Total release size: 6.9 kB
Release files / yuppie_tts-0.1.0.tar.gz
| Download URL | yuppie_tts-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ceafc6117ce4a2edef3347e806d8de9e140f568b50df032b8b6d21fed8c62c8c
|
|
BLAKE2b-256 checksum How to use checksums |
eb3d206acf1837bbac5f0959b25142889c1b5e6df2d047de9eabca03cb6e4e33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / yuppie_tts-0.1.0-py3-none-any.whl
| Download URL | yuppie_tts-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b10146ea8555f41559b1db058bc03c71c90cad2149ae732ef66354e189ce6391
|
|
BLAKE2b-256 checksum How to use checksums |
b398a4a8e62f6790e4099d0d2bd5ee1bbbfd12540042ee0a048f53d7b578d28a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for yuppie-tts 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.