1
00:00:00,000 --> 00:00:03,840
you know, meeting with startups and there's not a startup right now out there that is not applying
2
00:00:03,840 --> 00:00:09,200
these AI generative models, these large language models to every interesting problem of the sun.
这里使用 medium 模型,模型大小不到2G,初次使用会下载此模型,下载的路径是 ~/.cache/whisper
import whisper
model = whisper.load_model("medium")
result = model.transcribe("dataset/9s.wav")
print(result["text"])
You know, meeting with startups and there's not a startup right now out there that is not applying these AI Generative models these large language models to every interesting problem of the sun
这里只是简单输出语音识别后的文字,更多的API,如生成不同格式的文本,见官方文档
终端使用
语音转文本
# 使用 medium 模型识别音频,生成 json、srt、tsv、txt、vtt 文件
whisper --model medium dataset/9s.wav