Generate retro robotic speech audio using SAM (Software Automatic Mouth), the classic C64 text-to-speech synthesizer. Use for /sam command to generate voice messages. Supports /sam on/off toggle mode where all responses are spoken in SAM voice. Supports pitch, speed, mouth, and throat parameters for voice customization.
Generate retro robotic speech audio using SAM (Software Automatic Mouth), the classic C64 text-to-speech synthesizer. Use for /sam command to generate voice messages. Supports /sam on/off toggle mode where all responses are spoken in SAM voice. Supports pitch, speed, mouth, and throat parameters for voice customization.
homepage
https://github.com/discordier/sam
metadata
{"openclaw":{"emoji":"🤖","requires":{"bins":["node"]},"install":[{"id":"npm-install","kind":"node","package":"sam-js","bins":["node"],"label":"Install SAM dependencies (npm install)"}]}}
SAM TTS - Software Automatic Mouth
Generate WAV audio files using the classic SAM text-to-speech engine -- the iconic robotic voice from the Commodore 64 era.
Requirements
Node.js 18+
Run npm install in the skill directory to install dependencies
SAM Mode Toggle
State file:memory/sam-mode.json
/sam on -- Enable SAM Mode
When SAM mode is enabled, ALL text responses are converted to SAM voice messages.
Implementation:
Set enabled: true in memory/sam-mode.json
Confirm with voice message: "SAM mode enabled. I will now speak in robotic voice."
/sam off -- Disable SAM Mode
Return to normal text-to-text communication.
Implementation:
Set enabled: false in memory/sam-mode.json
Confirm with text: "SAM mode disabled. Back to text."
Check current mode
Read memory/sam-mode.json at session start to know current state.
Response Behavior
When SAM mode is ON:
Generate response text as normal
Convert to SAM TTS: node scripts/sam-tts-wrapper.js "response" --output=/tmp/sam-XXX.wav --quiet
Send the generated WAV file as audio output
Include brief text caption if helpful
When SAM mode is OFF:
Respond with normal text (default behavior).
Chat Commands
/sam <text>
Generate a one-time voice message using SAM TTS (works regardless of SAM mode state).
Original SAM (Software Automatic Mouth) (c) 1982 Don't Ask Software (now SoftVoice, Inc.)
License Note: The original SAM software is considered abandonware. The JavaScript adaptation is provided as-is. See the sam-js repository for full license details.