360 Secure SkillHub
360 安全技能中心

Voice Transcribe

通过 uv 运行脚本,调用 OpenAI 的 gpt-4o-mini-transcribe 模型把 mp3、wav、ogg/opus 等音频文件转录为文本;可用 vocab.txt 提供词汇提示、用 replacements.txt 强制修正错词,按音频 sha256 缓存结果,需自备 OPENAI_API_KEY。

darinkishore
darinkishore
热度 74.43
最近更新 2026-05-11 15:48:49
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add voice-transcribe
Metadata
name
voice-transcribe
description
Transcribe audio files using OpenAI's gpt-4o-mini-transcribe model with vocabulary hints and text replacements. Requires uv (https://docs.astral.sh/uv/).

voice-transcribe

transcribe audio files using openai's gpt-4o-mini-transcribe model.

when to use

when receiving voice memos (especially via whatsapp), just run:

uv run /Users/darin/clawd/skills/voice-transcribe/transcribe <audio-file>

then respond based on the transcribed content.

fixing transcription errors

if darin says a word was transcribed wrong, add it to vocab.txt (for hints) or replacements.txt (for guaranteed fix). see sections below.

supported formats

  • mp3, mp4, mpeg, mpga, m4a, wav, webm, ogg, opus

examples

# transcribe a voice memo
transcribe /tmp/voice-memo.ogg

# pipe to other tools
transcribe /tmp/memo.ogg | pbcopy

setup

  1. add your openai api key to /Users/darin/clawd/skills/voice-transcribe/.env:
    OPENAI_API_KEY=sk-...
    

custom vocabulary

add words to vocab.txt (one per line) to help the model recognize names/jargon:

Clawdis
Clawdbot

text replacements

if the model still gets something wrong, add a replacement to replacements.txt:

wrong spelling -> correct spelling

notes

  • assumes english (no language detection)
  • uses gpt-4o-mini-transcribe model specifically
  • caches by sha256 of audio file