简介
通过 ElevenLabs TTS 生成自然语音,以原生 iMessage 语音气泡形式发送,支持双向语音备忘录与自动转录,适合需要语音情感传递的场景。
原始描述
Send native iMessage voice bubbles with ElevenLabs TTS via BlueBubbles. Use when: user asks to send a voice message, wants something spoken aloud, storytelli...
通过你的 Agent 添加
安装目录:voice-memo/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: voice-memo
description: "Send native iMessage voice bubbles with ElevenLabs TTS via BlueBubbles. Use when: user asks to send a voice message, wants something spoken aloud, storytelling or summaries requested, or voice delivery would be more engaging than text. Requires ElevenLabs API key and BlueBubbles."
homepage: https://github.com/amzzzzzzz/imessage-voice-memo-skill
metadata: { "openclaw": { "emoji": "🎙️", "platform": "macOS", "requires": { "bins": ["curl", "afconvert"] }, "credentials": ["BLUEBUBBLES_PASSWORD", "ELEVENLABS_API_KEY"] } }
Voice Memo
Send native iMessage voice bubbles (not file attachments) using ElevenLabs TTS and BlueBubbles.
Quick Start
Run the script with text and recipient:
scripts/send-voice-memo.sh "Your message here" +14169060839
This will:
- Generate TTS audio via ElevenLabs (Rachel voice by default)
- Convert to Opus CAF @ 24kHz (iMessage native format)
- Send as native voice bubble via BlueBubbles
Requirements
- BlueBubbles running locally with Private API enabled
- ElevenLabs API key (for TTS)
- macOS (for
afconvert audio conversion)
- Environment variables in
~/.openclaw/.env:
ELEVENLABS_API_KEY=your-key-here
BLUEBUBBLES_PASSWORD=your-password-here
# Optional overrides:
ELEVENLABS_VOICE_ID=21m00Tcm4TlvDq8ikWAM # Rachel (default)
ELEVENLABS_MODEL_ID=eleven_turbo_v2_5 # Turbo v2.5 (default)
The Working Formula
afconvert audio conversion)~/.openclaw/.env:
ELEVENLABS_API_KEY=your-key-here
BLUEBUBBLES_PASSWORD=your-password-here
# Optional overrides:
ELEVENLABS_VOICE_ID=21m00Tcm4TlvDq8ikWAM # Rachel (default)
ELEVENLABS_MODEL_ID=eleven_turbo_v2_5 # Turbo v2.5 (default)
Critical parameters discovered 2026-02-19:
| Parameter | Value | Why |
|---|---|---|
| chatGuid | any;-;+PHONE |
NOT iMessage;-; (causes timeouts) |
| method | private-api |
Required for native bubble |
| isAudioMessage | true |
Required |
| Audio format | Opus @ 24kHz in CAF | iMessage native format |
| Pre-convert | Yes | Don't let BlueBubbles convert (wrong codec) |
Voice Options
Default voice: Rachel (ElevenLabs)
- Voice ID:
21m00Tcm4TlvDq8ikWAM - Model:
eleven_turbo_v2_5(fast, natural) - Cost: ~$0.04 per 30s message
Expressive tags:
[laughs]— natural laughter[sighs]— expressive sigh[excited]— energetic delivery
Example: "[excited] Oh my god, it worked!"
For full voice list and IDs, see VOICES.md.
Bidirectional Voice Memos
Sending (Amz → Amy): Use this skill. Native voice bubbles appear with waveform UI.
Receiving (Amy → Amz): BlueBubbles auto-converts incoming voice memos to MP3. OpenClaw transcribes via Whisper. Transcribed text flows into conversation context automatically.
Memory note: Incoming voice memo transcriptions flow into conversation context like any text message. They are NOT automatically persisted to memory or files — the agent must explicitly choose to store them, same as any conversation content. If you want to prevent transcriptions from being retained, instruct the agent not to record voice memo content in memory.
Troubleshooting
Voice bubble arrives as file attachment:
- Check
method=private-apiis set - Verify chatGuid uses
any;-;prefix (notiMessage;-;) - Check response has
"isAudioMessage": true
API times out:
- Use
any;-;+PHONEformat for chatGuid - Verify BlueBubbles Private API is enabled
- Restart BlueBubbles if consistently slow
Audio is 0 seconds / unplayable:
- Ensure pre-conversion to Opus @ 24kHz
- Don't let BlueBubbles convert (uses wrong codec)
- Verify with:
afinfo output.caf(should show opus @ 24000 Hz)
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。