目录

1. 简单介绍

2. 代码调用


1. 简单介绍

Introducing Whisperhttps://openai.com/blog/whisper/

OpenAI 的开源自动语音识别神经网络 whisper

2. 代码调用

安装

# whisper
pip install git+https://github.com/openai/whisper.git 


# on Ubuntu or Debian
sudo apt update && sudo apt install ffmpeg


# 更多参考 https://github.com/openai/whisper

Python 调用

import whisper

model = whisper.load_model("base")
result = model.transcribe("audio.mp3")
print(result["text"])

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐