返回顶部
t

telegram-voice-transcribeTelegram语音转录

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
安全检测
已通过
500
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

telegram-voice-transcribe

telegram-voice-transcribe

通过OpenAI Whisper(whisper-1)将Telegram语音消息转录为文本。

快速工作流程

  1. 1. 检测语音消息:在接收消息的元数据中查找voice.fileid或audio.fileid。
  2. 运行转录脚本:
bash python3 ~/openclaw/skills/telegram-voice-transcribe/scripts/transcribe.py \ --file-id --language es
  1. 3. 读取JSON输出——transcript字段包含文本内容。
  2. 根据转录内容回复用户(将其视为输入文本处理)。

脚本模式

模式参数使用场景
Telegram file_id--file-id <id>标准情况——Telegram中的语音消息
本地文件
--file <路径> | 测试或已下载的文件 | | URL | --url | 外部托管的音频文件 |

对于西班牙语用户,始终传递--language es参数以提高速度和准确性。

输出

json
{transcript: Hola, necesito que hagas un cambio en el juego, language: es, duration_s: 4.2}

如果输出中包含error键,请向用户显示错误信息并检查配置。

环境要求

  • - OPENAIAPIKEY——必需(通过openclaw configure设置)
  • TELEGRAMBOTTOKEN——--file-id模式必需

完整配置、钩子集成、成本及本地Whisper替代方案请参见references/setup.md

错误处理

错误解决方法
OPENAIAPIKEY not set通过openclaw configure --section env配置密钥
TELEGRAMBOTTOKEN required
将机器人令牌添加到环境变量 | | openai package not installed | pip install openai | | Telegram 400 Bad Request | fileid已过期——Telegram的fileid约48小时后失效 | | 文件过大 | Whisper API限制为25MB;分割音频或使用本地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

下载

⬇ 下载 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-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部