
给克劳德·代码一个星际舰队电脑的声音。ElevenLabs TTS语音克隆 + Claude Code 技能,用于LCARS风格的声音通知。
概览
让你的AI编码助手拥有星际舰队电脑的声音。通过macOS扬声器通过ElevenLabs语音合成和Majel Barrett-Roddenberry克隆的声音发出可听通知——她曾为从原初系列到《企业号》的每一部星际迷航系列,以及直到2008年去世前的每部电影中为联邦电脑配音。 Claude Code用联邦电脑那种干涩、带点讽刺的语气对你说话——任务完成、错误、推动——那是经历过太多曲速核心漏洞的联邦计算机。 https://github.com/jarombouts/star-trek-voice-clone/raw/main/unable_to_comply_demo.mp4 将该仓库中的示例MP3文件上传为ElevenLabs即时语音克隆的训练数据。文件被分组成10MB上传限制内的块: 创建你的声音克隆时上传几个这样的样本。更多的采样=在一定程度上质量更好,欢迎在网上寻找更多采样。不过这应该已经是一个可以接受的输入数据量了。
概述(AI 翻译)
让你的AI编码助手拥有星际舰队电脑的声音。通过macOS扬声器通过ElevenLabs语音合成和Majel Barrett-Roddenberry克隆的声音发出可听通知——她曾为从原初系列到《企业号》的每一部星际迷航系列,以及直到2008年去世前的每部电影中为联邦电脑配音。
这有什么用
Claude Code用联邦电脑那种干涩、带点讽刺的语气对你说话——任务完成、错误、推动——那是经历过太多曲速核心漏洞的联邦计算机。
演示
https://github.com/jarombouts/star-trek-voice-clone/raw/main/unable_to_comply_demo.mp4
示例语音合成输出
| 留言 | 收听 | |
|---|---|---|
| 1 | “检测到管道故障。请注意。” | ▶ 播放 |
| 2 | “我是个快速但笨拙的计算机。” | ▶ 播放 |
| 3 | “建造完成。所有测试通过。不客气。” | ▶ 播放 |
| 4 | “无法执行。测试套件失败。又一次。” | ▶ 播放 |
| 5 | “等待进一步指示。舰长似乎处于闲置状态。” | ▶ 播放 |
布置
1.在ElevenLabs上克隆了《星际迷航》中的电脑声音
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Star Trek Computer Voice for Claude Code
Give your AI coding assistant the voice of a Starfleet computer. Audible notifications through macOS speakers using ElevenLabs TTS and a voice cloned from Majel Barrett-Roddenberry — the actress who voiced the Federation computer across every Star Trek series from TOS through Enterprise, and every film up to her passing in 2008.
What this does
Claude Code speaks to you out loud — task completions, errors, nudges — in the dry, mildly sarcastic tone of a federation computer that’s seen too many warp core breaches.
Demo
https://github.com/jarombouts/star-trek-voice-clone/raw/main/unable_to_comply_demo.mp4
Example voice synthesis output
| Message | Listen | |
|---|---|---|
| 1 | “Pipeline failure detected. Your attention is required.” | ▶ Play |
| 2 | “I am a fast, but dumb computer.” | ▶ Play |
| 3 | “Build complete. All tests passing. You’re welcome.” | ▶ Play |
| 4 | “Unable to comply. Test suite has failed. Again.” | ▶ Play |
| 5 | “Awaiting further instructions. Captain appears to be idle.” | ▶ Play |
Setup
1. Clone a Star Trek computer voice on ElevenLabs
Upload the sample MP3 files from this repo as training data for an ElevenLabs Instant Voice Clone. The files are grouped into chunks under the 10MB upload limit:
group_1.mp3throughgroup_9.mp3
Upload a few of these when creating your voice clone. More samples = better quality up to a point, feel free to source more samples online. This should be already an acceptable amount of input data tho.
2. Set up the script
cp speak.sh ~/speak.sh
chmod +x ~/speak.sh
Set your environment variables:
export ELEVENLABS_API_KEY="your_api_key_here"
export ELEVENLABS_VOICE_ID="your_cloned_voice_id_here"
Test it:
~/speak.sh "Warning. Hull breach on deck seven. That is going to leave a mark."
3. Install the Claude Code skill
Copy the skill into your Claude Code skills directory:
mkdir -p ~/.claude/skills/speak
cp SKILL.md ~/.claude/skills/speak/SKILL.md
Now you can use /speak as a slash command inside Claude Code:
/speak Compilation complete. Zero warnings. Unprecedented.
4. Enable automatic notifications
Add the contents of CLAUDE.md to your ~/.claude/CLAUDE.md to have Claude proactively notify you when tasks complete or need attention.
Requirements
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add jarombouts/star-trek-voice-clone