speak
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Text-to-speech using edge-tts or macOS say. Use when user says "speak", "say", "read aloud", or wants text spoken.
2installs
Added on
NPX Install
npx skill4agent add soul-brews-studio/oracle-skills-cli speakTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →/speak - Text-to-Speech
Speak text using edge-tts (high-quality neural voices) with fallback to macOS .
sayQuick Start
bash
/speak "Hello world" # Default English voice
/speak --thai "สวัสดีครับ" # Thai voice
/speak --voice "en-GB-RyanNeural" "Hi" # Specific voice
/speak --mac "Hello" # Force macOS sayOptions
| Option | Description |
|---|---|
| Use Thai voice (th-TH-NiwatNeural) |
| Use female voice |
| Specific edge-tts voice |
| Force macOS say command |
| Speech rate (edge-tts: +/-50%, mac: 100-300) |
| List available voices |
Default Voices
| Language | Voice |
|---|---|
| English | en-US-GuyNeural (male) |
| English | en-US-JennyNeural (female) |
| Thai | th-TH-NiwatNeural (male) |
| Thai | th-TH-PremwadeeNeural (female) |
Scripts
Located in :
src/skills/speak/scripts/| Script | Purpose |
|---|---|
| Main TTS script |
Run Script
bash
cd src/skills/speak/scripts
bun speak.ts "Text to speak"
bun speak.ts --thai "ภาษาไทย"
bun speak.ts --listRequirements
- edge-tts: (optional, for high-quality voices)
pip install edge-tts - macOS say: Built-in (fallback)
How It Works
- Check if edge-tts is available
- If yes: Use edge-tts with neural voice
- If no: Fall back to macOS command
say - Play audio through default output
Examples
bash
# Speak Gemini response
/speak "The answer is 42"
# Thai greeting
/speak --thai "สวัสดีครับ ยินดีต้อนรับ"
# British accent
/speak --voice "en-GB-RyanNeural" "Brilliant!"
# List all voices
/speak --list