用途:使用 Whisper 命令行工具在本地进行语音转文字,无需 API 密钥。
主要能力:可将音频文件转写为文本,支持通过 --task translate 执行翻译任务,并可通过 --output_format 指定输出格式(如 txt、srt)。
使用方式: whisper /path/audio.mp3 --model medium --output_format txt --output_dir . whisper /path/audio.m4a --task translate --output_format srt
说明与限制:首次运行时模型会下载到 ~/.cache/whisper;在该安装中 --model 默认值为 turbo;模型越小速度越快,模型越大准确度越高。其余细节暂未提供。