Install
openclaw plugins install macvoice@latestOpenClaw provider for macOS voice message support via voicecli
openclaw plugins install macvoice@latestOpenClaw plugin for voice message support using native macOS speech APIs via voicecli.
⚠️ macOS only — This plugin requires macOS 13.0+ and uses native Apple frameworks (
SFSpeechRecognizer,AVSpeechSynthesizer).
SFSpeechRecognizer and AVSpeechSynthesizerbrew tap acwilan/voicecli
brew install voicecli
brew install ffmpeg
Before using the plugin, you need to grant macOS permissions to voicecli:
# Generate a test audio file
voicecli speak "Hello world" --voice Samantha --output /tmp/test.aiff
# Transcribe it back (this triggers the speech recognition permission prompt)
voicecli transcribe /tmp/test.aiff
# Clean up
rm /tmp/test.aiff
You should see system permission dialogs for Microphone and Speech Recognition — click Allow for both.
Install from ClawHub:
openclaw plugins install macvoice
Or install from source:
openclaw plugins install /path/to/openclaw-macvoice
Then restart the OpenClaw gateway:
openclaw gateway restart
Add to your ~/.openclaw/openclaw.json under messages.tts:
{
"messages": {
"tts": {
"auto": "inbound",
"provider": "macvoice",
"providers": {
"macvoice": {
"voice": "Samantha",
"rate": 0.5
}
}
}
}
}
| Option | Type | Default | Description |
|---|---|---|---|
auto | string | "off" | When to use TTS: "off", "always", "inbound" (voice replies to voice messages), or "tagged" (only with [[tts]] tags) |
provider | string | — | Set to "macvoice" |
providers.macvoice.voice | string | "Samantha" | Voice to use. Run voicecli voices to see available voices |
providers.macvoice.rate | number | 0.5 | Speech rate (0.0-1.0). Lower is slower |
providers.macvoice.tempDir | string | ~/tmp/openclaw-macvoice | Directory for temporary audio files |
To list available voices:
voicecli voices
Common voices include:
Samantha (default, US English)Alex (US English)Karen (Australian English)Daniel (British English)Moira (Irish English)Tessa (South African English)To enable automatic transcription of voice messages, add to your ~/.openclaw/openclaw.json under tools.media.audio:
{
"tools": {
"media": {
"audio": {
"enabled": true,
"models": [
{
"provider": "macvoice",
"model": "default"
}
]
}
}
}
}
Note: The
modelvalue can be anything (e.g.,"default","macvoice-transcribe","local") — it's just a label. Theprovider: "macvoice"is what routes the request to this plugin.
With this configuration, voice messages sent to OpenClaw will be automatically transcribed using macOS native speech recognition.
For both text-to-speech and speech-to-text:
{
"messages": {
"tts": {
"auto": "inbound",
"provider": "macvoice",
"providers": {
"macvoice": {
"voice": "Samantha",
"rate": 0.5
}
}
}
},
"tools": {
"media": {
"audio": {
"enabled": true,
"models": [
{
"provider": "macvoice",
"model": "default"
}
]
}
}
}
}
Note: The
modelvalue undertools.media.audio.modelsis just a label — use any value you prefer.
Then reload the gateway:
openclaw gateway restart
Once configured, the plugin works automatically:
auto: "inbound")auto: "always")Use [[tts:text]]...[[/tts:text]] tags in your OpenClaw responses to force voice output for specific messages.
messages.tts.providers.macvoice. To use different voices, use the [[tts:voice=...]] directive tag in your responses (e.g., [[tts:voice=Karen]]Hello[[/tts:text]]).| Platform | Status |
|---|---|
| macOS 13.0+ | ✅ Supported |
| Linux | ❌ Not supported |
| Windows | ❌ Not supported |
MIT