Telegram Voice To Voice Macos
Telegram voice-to-voice for macOS Apple Silicon: transcribe inbound .ogg voice notes with yap (Speec
- Rating
- 4.2 (87 reviews)
- Downloads
- 684 downloads
- Version
- 1.0.0
Overview
Telegram voice-to-voice for macOS Apple Silicon: transcribe inbound .ogg voice notes with yap (Speech.framework)
Complete Documentation
View Source →
Telegram voice-to-voice (macOS Apple Silicon only)
This is an OpenClaw skill.
Requirements
- macOS on Apple Silicon.
yapCLI available inPATH(Speech.framework transcription).- Project: https://github.com/finnvoor/yap (by finnvoor)
ffmpegavailable inPATH.
Compatibility note (important)
This skill is macOS-only (uses say + Speech.framework). The skill registry cannot enforce OS restrictions, so installing/running it on Linux/Windows will result in runtime failures.
Persistent reply mode (voice vs text)
Store a small per-user preference file in the workspace:
- State file:
voice_state/telegram.json - Key: Telegram sender user id (string)
- Values:
"voice"(default): reply with a Telegram voice note"text": reply with a single text message
"voice".Toggle commands
If an inbound text message is exactly:
/audio off→ set state to"text"and confirm with a short text reply./audio on→ set state to"voice"and confirm with a short text reply.
Getting the inbound audio (.ogg)
Telegram voice notes often show up as in message text.
OpenClaw saves the attachment to disk (typically .ogg) under:
~/.openclaw/media/inbound/
1) If the inbound message context includes an attachment path, use it.
2) Otherwise, take the most recent *.ogg from ~/.openclaw/media/inbound/.
Transcription
Default locale: macOS system locale.
Optional env:
YAP_LOCALE— override the transcription locale (e.g.it-IT,en-US).
yap transcribe --locale "${YAP_LOCALE:-}" - If
YAP_LOCALEis not set, the helper script will use the macOS system locale (fromdefaults read -g AppleLocale).
Helper script:
scripts/transcribe_telegram_ogg.sh [path.ogg]
Reply behavior
Mode: voice (default)
Voice default: SYSTEM (uses the current macOS system voice). You can override by passing a specific voice name to the helper script.
1) Generate the reply text. 2) Convert reply text to an OGG/Opus voice note using:
scripts/tts_telegram_voice.sh "" [SYSTEM|VoiceName]
.ogg path to stdout.3) Send the .ogg back to Telegram as a voice note (not a generic audio file):
- use the
messagetool withasVoice: trueandmedia: - optionally set
replyToto thread the response
- Use
SYSTEMto rely on the current macOS system voice (recommended).
Mode: text
Reply with a single text message:
Transcription: <...>Reply: <...>
Installation
openclaw install telegram-voice-to-voice-macos
Tags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
Adversarial Prompting
Adversarial analysis to critique, fix.