用途:在本地对音频做语音转文字,不需要 API 密钥。
主要能力:支持转写与翻译任务,可指定输出格式与输出目录。示例: whisper /path/audio.mp3 --model medium --output_format txt --output_dir . whisper /path/audio.m4a --task translate --output_format srt
使用方式:通过 whisper 命令行调用;--model 用于选择模型,--task translate 用于翻译任务,--output_format 指定输出格式,--output_dir 指定输出目录。
限制与说明:首次运行时模型会下载到 ~/.cache/whisper;本安装中 --model 默认值为 turbo;模型越小速度越快,越大准确度越高。其它细节暂未提供。