Skip to main content

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。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yuppie_tts-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yuppie_tts-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file yuppie_tts-0.1.0.tar.gz.

File metadata

  • Download URL: yuppie_tts-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for yuppie_tts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ceafc6117ce4a2edef3347e806d8de9e140f568b50df032b8b6d21fed8c62c8c
MD5 bfbe83f15caedb2a183fb739ec32dadf
BLAKE2b-256 eb3d206acf1837bbac5f0959b25142889c1b5e6df2d047de9eabca03cb6e4e33

See more details on using hashes here.

File details

Details for the file yuppie_tts-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: yuppie_tts-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for yuppie_tts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b10146ea8555f41559b1db058bc03c71c90cad2149ae732ef66354e189ce6391
MD5 bf1b924ebe5cff2bf49ac188b077ba3b
BLAKE2b-256 b398a4a8e62f6790e4099d0d2bd5ee1bbbfd12540042ee0a048f53d7b578d28a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page