界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

whisper

whisper

【效率与协作】Transcribe audio files to text using OpenAI Whisper

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: whisper description: Transcribe audio files to text using OpenAI Whisper

Whisper Audio Transcription Skill

Transcribe audio files to text using OpenAI Whisper.

Capabilities

  • Transcribe audio files (MP3, WAV, M4A, FLAC, OGG, etc.) to text
  • Support for 90+ languages with auto-detection
  • Optional timestamp generation
  • Multiple model sizes (tiny/base/small/medium/large)
  • Output in plain text or JSON format

Usage

Basic Transcription

python3 scripts/transcribe.py <audio_file> <output_file>

With Options

# Specify model size (default: base)
python3 scripts/transcribe.py audio.mp3 transcript.txt --model medium

# Specify language (improves accuracy)
python3 scripts/transcribe.py audio.mp3 transcript.txt --language zh

# Include timestamps
python3 scripts/transcribe.py audio.mp3 transcript.txt --timestamps

# JSON output with metadata
python3 scripts/transcribe.py audio.mp3 output.json --format json

Parameters

  • audio_file (required): Path to input audio file
  • output_file (required): Path to output text/JSON file
  • --model: Whisper model size (tiny/base/small/medium/large, default: base)
  • --language: Language code (e.g., en, zh, es, fr, auto for detection)
  • --timestamps: Include word-level timestamps in output
  • --format: Output format (text/json, default: text)

Model Sizes

ModelParametersSpeedAccuracyMemory
tiny39M~32xGood~1GB
base74M~16xBetter~1GB
small244M~6xGreat~2GB
medium769M~2xExcellent~5GB
large1.5B1xBest~10GB

Supported Audio Formats

MP3, WAV, M4A, FLAC, OGG, AAC, WMA, and more (via FFmpeg)

Dependencies

  • Python 3.8+
  • openai-whisper
  • ffmpeg

Installation

pip install openai-whisper
sudo apt-get install ffmpeg  # Ubuntu/Debian
我的收藏