local-whisper
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLocal Whisper STT
本地Whisper语音转文本
Local speech-to-text using OpenAI's Whisper. Fully offline after initial model download.
使用OpenAI的Whisper实现本地语音转文本。模型初次下载完成后可完全离线运行。
Usage
使用方法
bash
undefinedbash
undefinedBasic
基础用法
~/.thinkfleetbot/skills/local-whisper/scripts/local-whisper audio.wav
~/.thinkfleetbot/skills/local-whisper/scripts/local-whisper audio.wav
Better model
使用更优模型
~/.thinkfleetbot/skills/local-whisper/scripts/local-whisper audio.wav --model turbo
~/.thinkfleetbot/skills/local-whisper/scripts/local-whisper audio.wav --model turbo
With timestamps
包含时间戳
~/.thinkfleetbot/skills/local-whisper/scripts/local-whisper audio.wav --timestamps --json
undefined~/.thinkfleetbot/skills/local-whisper/scripts/local-whisper audio.wav --timestamps --json
undefinedModels
模型
| Model | Size | Notes |
|---|---|---|
| 39M | Fastest |
| 74M | Default |
| 244M | Good balance |
| 809M | Best speed/quality |
| 1.5GB | Maximum accuracy |
| 模型 | 大小 | 说明 |
|---|---|---|
| 39M | 速度最快 |
| 74M | 默认模型 |
| 244M | 平衡性能最优 |
| 809M | 速度与质量最佳平衡 |
| 1.5GB | 精度最高 |
Options
选项
- — Model size (default: base)
--model/-m - — Language code (auto-detect if omitted)
--language/-l - — Include word timestamps
--timestamps/-t - — JSON output
--json/-j - — Suppress progress
--quiet/-q
- — 模型尺寸(默认:base)
--model/-m - — 语言代码(省略则自动检测)
--language/-l - — 包含单词时间戳
--timestamps/-t - — 输出JSON格式
--json/-j - — 隐藏进度信息
--quiet/-q
Setup
安装配置
Uses uv-managed venv at . To reinstall:
.venv/bash
cd ~/.thinkfleetbot/skills/local-whisper
uv venv .venv --python 3.12
uv pip install --python .venv/bin/python click openai-whisper torch --index-url https://download.pytorch.org/whl/cpu使用uv管理的虚拟环境。如需重新安装:
.venv/bash
cd ~/.thinkfleetbot/skills/local-whisper
uv venv .venv --python 3.12
uv pip install --python .venv/bin/python click openai-whisper torch --index-url https://download.pytorch.org/whl/cpu