Introduction¶
The ecosystem philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” When you need to invoke local text-to-speech (TTS) capabilities in an agent or automation script, developers typically have to wrap system commands or call cloud APIs on their own. The former has limited compatibility, while the latter depends on network access and an API key. Below is an introduction to a local TTS plugin that can directly use the macOS say command and edge-tts, enabling text-to-speech conversion in a fully offline, zero-key environment.
What Is This¶
dsh-tts-local is a DSH plugin maintained by feely0208, categorized under “Model Inference.” It is built on top of the macOS say command and edge-tts, providing DSH with local, offline, zero-key text-to-speech capabilities. It is well-suited for scenarios that require local execution and do not wish to depend on external networks or API keys.
Core Features¶
- Local speech synthesis: Generates audio via the macOS
saycommand with no network requests required. - edge-tts support: For higher-quality or specific voices, synthesis can be performed through
edge-tts. - Fully offline, zero key: No cloud API key is needed; all synthesis is completed locally.
- DSH plugin integration: Used as a DSH plugin, it can be invoked directly within scripts or tasks.
Installation & Activation¶
In a DSH environment, install the plugin with the following command:
dsh plugin --profile web add @deepwhale-cn/dsh-tts-local
Once installation is complete, the plugin is available in the context of the current DSH process.
Typical Usage¶
After installation, you can use the plugin via the following command-line interface:
npx @deepwhale-cn/dsh-tts-local --root <project-directory>
Built-in demo sample:
npx @deepwhale-cn/dsh-tts-local --demo
View rules and sources:
npx @deepwhale-cn/dsh-tts-local --list-rules
Generate an HTML report (an HTML file path is required):
npx @deepwhale-cn/dsh-tts-local --html r.html
Use Cases & Notes¶
- Applicable: DSH tasks or scripts that require local, offline TTS capabilities, such as local voice announcements, offline voice reminders, etc.
- Note: The plugin runs with the permissions of the current DSH process. It is recommended to review the repository source code and license (MIT) before installation to confirm its behavior and compliance.
Summary¶
dsh-tts-local provides a simple, local, zero-key text-to-speech solution by integrating the macOS say command and edge-tts capabilities into the DSH ecosystem. If you need to generate voice output in a local environment, you can refer to its directory page and GitHub repository for installation and testing.