返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
t

telegram-voice-to-voice-macos

Telegram voice-to-voice for macOS Apple Silicon: transcribe inbound .ogg voice notes with yap (Speech.framework) and reply with Telegram voice notes via say+ffmpeg. Not compatible with Linux/Windows.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.3
安全检测
已通过
1,603
下载量
0
收藏
概述
安装方式
版本历史

telegram-voice-to-voice-macos

# Telegram voice-to-voice (macOS Apple Silicon only) This is an **OpenClaw skill**. ## Requirements - macOS on Apple Silicon. - `yap` CLI available in `PATH` (Speech.framework transcription). - Project: https://github.com/finnvoor/yap (by finnvoor) - `ffmpeg` available in `PATH`. ## 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 If the file does not exist or the sender id is missing: assume `"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 `<media:audio>` in message text. OpenClaw saves the attachment to disk (typically `.ogg`) under: - `~/.openclaw/media/inbound/` Recommended approach: 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`). Preferred: - `yap transcribe --locale "${YAP_LOCALE:-<system>}" <path.ogg>` - If `YAP_LOCALE` is not set, the helper script will use the macOS system locale (from `defaults read -g AppleLocale`). If transcription fails or is empty: ask the user to repeat or send text. 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 "<reply text>" [SYSTEM|VoiceName]` The script prints the generated `.ogg` path to stdout. 3) Send the `.ogg` back to Telegram as a **voice note** (not a generic audio file): - use the `message` tool with `asVoice: true` and `media: <path.ogg>` - optionally set `replyTo` to thread the response Notes: - Use `SYSTEM` to rely on the current macOS system voice (recommended). ### Mode: text Reply with a single text message: - `Transcription: <...>` - `Reply: <...>`

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 telegram-voice-to-voice-macos-1776334821 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 telegram-voice-to-voice-macos-1776334821 技能

通过命令行安装

skillhub install telegram-voice-to-voice-macos-1776334821

下载 Zip 包

⬇ 下载 telegram-voice-to-voice-macos v0.1.3

文件大小: 4.54 KB | 发布时间: 2026-4-17 14:31

v0.1.3 最新 2026-4-17 14:31
telegram-voice-to-voice-macos v0.1.3

- Updated scripts/tts_telegram_voice.sh (details not shown).
- No user-facing changes in SKILL.md.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部