霜冻MCP
一个模型上下文协议 (MCP) 服务器,使用 Rime API 提供文本转语音功能。该服务器会下载音频并使用系统原生的音频播放器播放。
特征
公开一个
speak
工具,将文本转换为语音并通过系统音频播放使用 Rime 的高质量语音合成 API
要求
Node.js 16.x 或更高版本
正常工作的音频输出设备
macOS:使用
afplay
以下是 Claude 提供的示例代码,未经测试🤙✨
Windows:内置 Media.SoundPlayer(PowerShell)
Linux:mpg123、mplayer、aplay 或 ffplay
MCP 配置
所有可选的环境变量都是工具定义的一部分,并提示
所有语音选项都列在这里。
您可以从Rime 仪表板获取您的 API 密钥。
以下环境变量可用于自定义行为:
RIME_GUIDANCE
:何时以及如何使用说话工具的主要描述RIME_WHO_TO_ADDRESS
:演讲对象(默认值:“用户”)RIME_WHEN_TO_SPEAK
:何时应使用该工具(默认值:“当被要求说话或完成命令时”)RIME_VOICE
:默认使用的语音(默认值:“cove”)
示例用例
示例 1:编码代理公告
示例 2:了解现在的孩子如何说话
示例 3:基于上下文的不同语言
发展
安装依赖项:
构建服务器:
使用热重载在开发模式下运行:
执照
麻省理工学院
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
模型上下文协议服务器,使 AI 模型能够使用 Rime 的语音合成 API 通过设备的原生音频系统生成和播放高质量的文本转语音音频。
Related MCP Servers
- -securityFlicense-qualityProvides text-to-speech capabilities through the Model Context Protocol, allowing applications to easily integrate speech synthesis with customizable voices, adjustable speech speed, and cross-platform audio playback support.Last updated -8
- AsecurityAlicenseAqualityA Model Context Protocol server that gives AI models access to your iTerm terminal session, allowing them to read output, write commands, and send control characters.Last updated -31,161MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI assistants to utilize AivisSpeech Engine's high-quality voice synthesis capabilities through a standardized API interface.Last updated -1
- -securityFlicense-qualityEnables seamless integration with Typecast API through the Model Context Protocol, allowing clients to manage voices, convert text to speech, and play audio in a standardized way.Last updated -2