返回顶部
t

telegram-voice-transcribe

Transcribe Telegram voice messages and audio notes into text using the OpenAI Whisper API. Use when (1) a user sends a voice message or audio note via Telegram and you need to read or understand its content, (2) you receive a message with a voice file_id in the Telegram message metadata, (3) the user explicitly asks you to transcribe an audio file. Produces the transcript as plain text so you can respond naturally. Requires OPENAI_API_KEY env var and optionally TELEGRAM_BOT_TOKEN for file_id mod

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

telegram-voice-transcribe

# telegram-voice-transcribe Transcribe Telegram voice notes into text via OpenAI Whisper (`whisper-1`). ## Quick Workflow 1. **Detect** a voice message: look for `voice.file_id` or `audio.file_id` in the inbound message metadata. 2. **Run** the transcription script: ```bash python3 ~/openclaw/skills/telegram-voice-transcribe/scripts/transcribe.py \ --file-id <file_id> --language es ``` 3. **Read** the JSON output — `transcript` field contains the text. 4. **Respond** to the user based on the transcript content (treat it like typed text). ## Script Modes | Mode | Flag | When to use | |---|---|---| | Telegram file_id | `--file-id <id>` | Standard case — voice message in Telegram | | Local file | `--file <path>` | Testing, or file already downloaded | | URL | `--url <https://...>` | Audio hosted externally | Always pass `--language es` for Spanish speakers to improve speed and accuracy. ## Output ```json {"transcript": "Hola, necesito que hagas un cambio en el juego", "language": "es", "duration_s": 4.2} ``` If `error` key is present, surface it to the user and check setup. ## Environment Requirements - `OPENAI_API_KEY` — required (set via `openclaw configure`) - `TELEGRAM_BOT_TOKEN` — required for `--file-id` mode See [references/setup.md](references/setup.md) for full setup, hooks integration, costs, and local Whisper alternative. ## Error Handling | Error | Fix | |---|---| | `OPENAI_API_KEY not set` | Configure key via `openclaw configure --section env` | | `TELEGRAM_BOT_TOKEN required` | Add bot token to env | | `openai package not installed` | `pip install openai` | | Telegram `400 Bad Request` | file_id expired — Telegram file_ids expire after ~48h | | File too large | Whisper API limit is 25MB; split audio or use local Whisper |

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 telegram-voice-transcribe-1776285486 技能

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

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

通过命令行安装

skillhub install telegram-voice-transcribe-1776285486

下载 Zip 包

⬇ 下载 telegram-voice-transcribe v1.3.1

文件大小: 7.71 KB | 发布时间: 2026-4-16 18:36

v1.3.1 最新 2026-4-16 18:36
- Added CLAWHUB.md file for integration with the CLAW ecosystem.
- No changes to functionality or documentation outside of this ecosystem addition.

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

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

p2p_official_large
返回顶部