← 返回
沟通协作 Key 中文

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 Telegr...
利用 OpenAI Whisper API 将 Telegram 语音消息和音频笔记转录为文本。适用场景:(1) 用户通过 Telegram 发送语音消息或音频笔记时...
dreadterror
沟通协作 clawhub v1.3.1 2 版本 99887.3 Key: 需要
★ 0
Stars
📥 886
下载
💾 18
安装
2
版本
#audio#free#latest#speech-to-text#stt#telegram#voice#whisper

概述

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 --language es

```

  1. Read the JSON output — transcript field contains the text.
  2. Respond to the user based on the transcript content (treat it like typed text).

Script Modes

ModeFlagWhen to use
---------
Telegram file_id--file-id Standard case — voice message in Telegram
Local file--file Testing, or file already downloaded
URL--url Audio hosted externally

Always pass --language es for Spanish speakers to improve speed and accuracy.

Output

{"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 for full setup, hooks integration, costs, and local Whisper alternative.

Error Handling

ErrorFix
------
OPENAI_API_KEY not setConfigure key via openclaw configure --section env
TELEGRAM_BOT_TOKEN requiredAdd bot token to env
openai package not installedpip install openai
Telegram 400 Bad Requestfile_id expired — Telegram file_ids expire after ~48h
File too largeWhisper API limit is 25MB; split audio or use local Whisper

版本历史

共 2 个版本

  • v1.3.1 当前
    2026-03-29 09:11 安全 安全
  • v1.3.0
    2026-03-26 21:33

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 114 📥 52,472

Minijuegos LeChuck SDK

dreadterror
将 Minijuegos.com(Miniplay)LeChuck JS SDK 集成到 HTML5 游戏。用于:(1)在游戏中添加 Minijuegos/Miniplay 平台集成;(2...
★ 0 📥 421
communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,630