Install
openclaw skills install telegram-voiceVoice communication via Telegram. Automatically transcribes incoming voice messages using faster-whisper and replies with TTS voice. Use for all voice-relate...
openclaw skills install telegram-voiceThis skill enables voice communication on Telegram:
When receiving voice messages (.ogg files), use faster-whisper to transcribe:
from faster_whisper import WhisperModel
model = WhisperModel('base', device='cpu', compute_type='int8')
segments, info = model.transcribe('<file_path>', language='zh')
result = ''.join([s.text for s in segments])
Use the tts tool to send voice replies:
{
"action": "send",
"channel": "telegram",
"message": "<text>",
"asVoice": true
}
Or use the tts tool directly:
{
"channel": "telegram",
"text": "<text to speak>"
}
pip install faster-whisper