语音播报

Convert AI-generated text to speech via CLI and REST API endpoints.

2|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/CyangZhou/-2--Project-Yunshu- --skill -cyangzhou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 语音播报
Source: https://github.com/CyangZhou/-2--Project-Yunshu-/tree/main/skills/%E8%AF%AD%E9%9F%B3%E6%92%AD%E6%8A%A5
Command: npx skills add https://github.com/CyangZhou/-2--Project-Yunshu- --skill -cyangzhou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

当您在编写代码或调试时需要快速获取 AI 回复的内容但无法持续查看屏幕时,语音播报技能将文本转换为语音输出,解放双眼并提升工作效率。

Core Features & Use Cases

  • 实时播报:将 AI 回复的文本即时转为自然语音,便于在编程中保持注意力。
  • 可控播报模式:支持逐字播报和整段播报,方便对代码段或长文本的发言方式进行微调。
  • API 集成:提供 RESTful 接口 /speak 和 状态接口,便于将播报能力嵌入到现有工作流。

Quick Start

在命令行中传入要播报的文本即可触发语音播报。

Frequently Asked Questions about 语音播报

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert AI text replies to speech while coding in Python?

To convert AI text replies to speech while coding, this Skill uses pyttsx3 to synthesize audio locally, freeing your eyes from the screen during development and debugging sessions.

Can I trigger text to speech synthesis through a REST API endpoint?

Yes, you can trigger text to speech synthesis through a lightweight Flask server exposing a REST API endpoint at /speak, alongside a /status endpoint to check operation state.

How do I use pyttsx3 for local speech synthesis from the command line?

You can use pyttsx3 for local speech synthesis by passing the desired text string directly as a command line argument, which immediately triggers the audio playback workflow.

Does Python TTS speech synthesis support different playback modes for long text?

Python TTS speech synthesis supports controllable playback modes, allowing you to switch between character-by-character and full-paragraph speech for long text or code segments.

Do I need internet access to run pyttsx3 speech synthesis for coding workflows?

No internet access is needed because pyttsx3 performs speech synthesis locally, ensuring audio generation for coding workflows runs entirely offline without external API dependencies.

What are the limitations of using pyttsx3 for converting text to speech?

A limitation of using pyttsx3 for converting text to speech is that it relies on your operating system's built-in local voices, meaning audio quality and naturalness vary by platform.