Use Microsoft Edge TTS to generate natural Cantonese voice audio for WhatsApp and Telegram.
zh-HK-HiuMaanNeuralToneRatePitchUse Casenormal+18%+8HzGeneral/neutralslow+0%+8HzCalm/sadfast+24%+8HzHappy/excitedangry+36%+12HzImpatient/angry
bash
# 只生成 OGG(適合 WhatsApp voice note)
/home/gabriel/.openclaw/workspace/scripts/edge-tts-voice-ogg.sh "你今日好嗎?" normal
# Slow/sad tone
/home/gabriel/.openclaw/workspace/scripts/edge-tts-voice-ogg.sh "我好傷心..." slow
# Fast/happy tone
/home/gabriel/.openclaw/workspace/scripts/edge-tts-voice-ogg.sh "好開心呀!" fast
# Angry/impatient tone
/home/gabriel/.openclaw/workspace/scripts/edge-tts-voice-ogg.sh "你到底聽唔聽我講?" angry
腳本輸出 OGG 路徑,然後可用 WhatsApp 發送命令(例如你現有腳本)傳送。
bash
/home/gabriel/.openclaw/workspace/scripts/edge-tts-telegram.sh <chat_id> "你段文字" normal
Example:
bash
/home/gabriel/.openclaw/workspace/scripts/edge-tts-telegram.sh 8474074290 "主人,我係小蝦。" fast