当前位置: 首页 > news >正文

whisper large-v3 模型文件下载链接

#源码里找到的_MODELS = {"tiny.en": "https://openaipublic.azureedge.net/main/whisper/models/d3dd57d32accea0b295c96e26691aa14d8822fac7d9d27d5dc00b4ca2826dd03/tiny.en.pt","tiny": "https://openaipublic.azureedge.net/main/whisper/models/65147644a518d12f04e32d6f3b26facc3f8dd46e5390956a9424a650c0ce22b9/tiny.pt","base.en": "https://openaipublic.azureedge.net/main/whisper/models/25a8566e1d0c1e2231d1c762132cd20e0f96a85d16145c3a00adf5d1ac670ead/base.en.pt","base": "https://openaipublic.azureedge.net/main/whisper/models/ed3a0b6b1c0edf879ad9b11b1af5a0e6ab5db9205f891f668f8b0e6c6326e34e/base.pt","small.en": "https://openaipublic.azureedge.net/main/whisper/models/f953ad0fd29cacd07d5a9eda5624af0f6bcf2258be67c92b79389873d91e0872/small.en.pt","small": "https://openaipublic.azureedge.net/main/whisper/models/9ecf779972d90ba49c06d968637d720dd632c55bbf19d441fb42bf17a411e794/small.pt","medium.en": "https://openaipublic.azureedge.net/main/whisper/models/d7440d1dc186f76616474e0ff0b3b6b879abc9d1a4926b7adfa41db2d497ab4f/medium.en.pt","medium": "https://openaipublic.azureedge.net/main/whisper/models/345ae4da62f9b3d59415adc60127b97c714f32e89e936602e85993674d08dcb1/medium.pt","large-v1": "https://openaipublic.azureedge.net/main/whisper/models/e4b87e7e0bf463eb8e6956e646f1e277e901512310def2c24bf0e11bd3c28e9a/large-v1.pt","large-v2": "https://openaipublic.azureedge.net/main/whisper/models/81f7c96c852ee8fc832187b0132e569d6c3065a3252ed18e56effd0b6a73e524/large-v2.pt","large-v3": "https://openaipublic.azureedge.net/main/whisper/models/e5b1a55b89c1367dacf97e3e19bfd829a01529dbfdeefa8caeb59b3f1b81dadb/large-v3.pt","large": "https://openaipublic.azureedge.net/main/whisper/models/e5b1a55b89c1367dacf97e3e19bfd829a01529dbfdeefa8caeb59b3f1b81dadb/large-v3.pt",
}

加速下载

aria2c -x 16 https://openaipublic.azureedge.net/main/whisper/models/e5b1a55b89c1367dacf97e3e19bfd829a01529dbfdeefa8caeb59b3f1b81dadb/large-v3.pt --all-proxy=http://host.docker.internal:7890

我这是在容器里用代理,代理选项可去除

这是gpt4给我的代码:

我想写一个python程序,在我发出“过”的语音时,打印“过”(实际上是执行某种操作,我会将它嵌入到其他程序中,目前只打印字符串),在我发出“下一个”的语音时,打印“下一个”,我想使用https://huggingface.co/openai/whisper-large-v3实现

import whisper
import sounddevice as sd
import numpy as np# 录音设置
duration = 5  # 录音时长(秒)
samplerate = 16000  # 采样率def record_audio(duration, samplerate):"""录制音频"""recording = sd.rec(int(duration * samplerate), samplerate=samplerate, channels=1, dtype="float32")sd.wait()return recordingdef transcribe_audio(audio, model):"""使用Whisper模型转录音频"""audio = np.squeeze(audio)  # 确保音频是一维的result = model.transcribe(audio)return result["text"]def main():# 加载Whisper模型model = whisper.load_model("large-v3")while True:print("开始录音...")audio = record_audio(duration, samplerate)print("录音结束,正在识别...")# 识别语音text = transcribe_audio(audio, model)# 根据识别结果执行操作if "过" in text:print("过")elif "下一个" in text:print("下一个")else:print("未识别到指令")print(text)if __name__ == "__main__":main()
http://www.lryc.cn/news/234968.html

相关文章:

  • Ajax 之XMLHttpRequest讲解
  • 小程序里面循环使用ref的话获取不到
  • PY32F002B从压缩包到实现串口printf输出
  • 音视频项目—基于FFmpeg和SDL的音视频播放器解析(八)
  • CorelDRAW2024最新版本的图形设计软件
  • 【作业】操作系统实验一:进程和线程
  • Linux 环境删除Conda
  • uni-app(1)pages. json和tabBar
  • window系统vscode 编译wvp前端代码
  • 获取虎牙直播源
  • Halcon (2):Halcon基础知识
  • 测不准原理
  • 微机原理_12
  • 设计模式(5)-使用设计模式实现简易版springIoc
  • 数据结构与集合源码
  • nodejs+vue面向中小学课堂教学辅助软件系统的设计与实现-微信小程序-安卓-python-PHP-计算机毕业设计
  • 智能配电系统解决方案
  • Python基础入门---conda 如何管理依赖包以及复制相同环境的
  • JVM jstat 查看内存新生代老年代回收情况,排查oom
  • Postman启动问题:Could not open Postman
  • Golang起步篇(Windows、Linux、mac三种系统安装配置go环境以及IDE推荐以及入门语法详细释义)
  • Error message “error:0308010C:digital envelope routines::unsupported“
  • 解决java在idea运行正常,但是打成jar包后中文乱码问题
  • 数据结构-插入排序+希尔排序+选择排序
  • 微信小程序数据传递的方式-页面数据的存取
  • Flutter 应用启动从闪屏页短暂黑屏再到第一个页面
  • Linux+qt:获取.so自身的路径(利用dladdr)
  • CSS特效014:模仿钟摆效果
  • 计算机毕业设计选题推荐-个人健康微信小程序/安卓APP-项目实战
  • 【自然语言处理(NLP)实战】LSTM网络实现中文文本情感分析(手把手与教学超详细)