经 AI Skill Hub 精选评估,Whisper 语音转文字 获评「强烈推荐」。在 GitHub 上收获超过 72.0k 颗 Star,这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 9.2 分,适合有一定技术背景的用户使用。
OpenAI开源的先进语音识别模型,能自动生成视频字幕和转录文本,支持99种语言。适合内容创作者、媒体工作者、研究人员等需要快速转录音视频的用户,具有识别准确率高、多语言支持强的优势。
Whisper 语音转文字 是一款基于 Python 开发的开源工具,专注于 语音识别、字幕生成、转录工具 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
OpenAI开源的先进语音识别模型,能自动生成视频字幕和转录文本,支持99种语言。适合内容创作者、媒体工作者、研究人员等需要快速转录音视频的用户,具有识别准确率高、多语言支持强的优势。
Whisper 语音转文字 是一款基于 Python 开发的开源工具,专注于 语音识别、字幕生成、转录工具 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install whisper
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install whisper
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/openai/whisper
cd whisper
pip install -e .
# 验证安装
python -c "import whisper; print('安装成功')"
# 基本转录(自动检测语言) whisper audio.mp3 # 指定中文,输出 SRT 字幕 whisper video.mp4 --language Chinese --task transcribe --output_format srt # 使用 large 模型提升准确率 whisper audio.mp3 --model large # 翻译为英文字幕 whisper audio.mp3 --task translate --output_format srt # 批量转录目录下所有音频 whisper *.mp3 --language Chinese --output_format srt
# whisper 配置文件示例(config.yml) app: name: "whisper" debug: false log_level: "INFO" # 运行时指定配置文件 whisper --config config.yml # 或通过环境变量配置 export WHISPER_API_KEY="your-key" export WHISPER_OUTPUT_DIR="./output"
[[Blog]](https://openai.com/blog/whisper) [[Paper]](https://arxiv.org/abs/2212.04356) [[Model card]](https://github.com/openai/whisper/blob/main/model-card.md) [[Colab example]](https://colab.research.google.com/github/openai/whisper/blob/master/notebooks/LibriSpeech.ipynb)
Whisper is a general-purpose speech recognition model. It is trained on a large dataset of diverse audio and is also a multitasking model that can perform multilingual speech recognition, speech translation, and language identification.
We used Python 3.9.9 and PyTorch 1.10.1 to train and test our models, but the codebase is expected to be compatible with Python 3.8-3.11 and recent PyTorch versions. The codebase also depends on a few Python packages, most notably OpenAI's tiktoken for their fast tokenizer implementation. You can download and install (or update to) the latest release of Whisper with the following command:
pip install -U openai-whisper
Alternatively, the following command will pull and install the latest commit from this repository, along with its Python dependencies:
pip install git+https://github.com/openai/whisper.git
To update the package to the latest version of this repository, please run:
pip install --upgrade --no-deps --force-reinstall git+https://github.com/openai/whisper.git
It also requires the command-line tool ffmpeg to be installed on your system, which is available from most package managers:
```bash
The following command will transcribe speech in audio files, using the turbo model:
whisper audio.flac audio.mp3 audio.wav --model turbo
The default setting (which selects the turbo model) works well for transcribing English. However, the turbo model is not trained for translation tasks. If you need to translate non-English speech into English, use one of the multilingual models (tiny, base, small, medium, large) instead of turbo.
For example, to transcribe an audio file containing non-English speech, you can specify the language:
whisper japanese.wav --language Japanese
To translate speech into English, use:
whisper japanese.wav --model medium --language Japanese --task translate
Note: Theturbomodel will return the original language even if--task translateis specified. Usemediumorlargefor the best translation results.
Run the following to view all available options:
whisper --help
See tokenizer.py for the list of all available languages.
Transcription can also be performed within Python:
import whisper
model = whisper.load_model("turbo")
result = model.transcribe("audio.mp3")
print(result["text"])
Internally, the transcribe() method reads the entire file and processes the audio with a sliding 30-second window, performing autoregressive sequence-to-sequence predictions on each window.
Below is an example usage of whisper.detect_language() and whisper.decode() which provide lower-level access to the model.
```python import whisper
model = whisper.load_model("turbo")
Please use the 🙌 Show and tell category in Discussions for sharing more example usages of Whisper and third-party extensions such as web demos, integrations with other tools, ports for different platforms, etc.
OpenAI顶级开源项目,语音识别准确度业界领先,多语言支持完整,活跃维护,是实际生产环境的优选方案。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:Whisper 语音转文字 的核心功能完整,质量优秀。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | Whisper |
| 原始描述 | OpenAI 开源语音识别模型,自动生成视频字幕和转录文本,支持中英多语言 |
| Topics | 语音识别字幕生成转录工具多语言开源模型 |
| GitHub | https://github.com/openai/whisper |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-13 · 更新时间:2026-05-26 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。