Guides
OpenAI Whisper
In this guide, we show you how easy it is to jump in and get Whisper running on a Brev instance.
Setting up your instance:
- Hit this link to create a new Whisper environment from our template
- Skip the rest of the steps (everything is preconfigured) and add a card at the bottom if you haven't already
- Hit create!
Opening your instance:
Check you have Brev installed:
brev --version
If not, you can install it with the command:
brew install brevdev/homebrew-brev/brev && brev login
Then open your instance:
brev open whisper
Give it a couple of minutes to load up...it takes about 4 minutes the first time you open an instance
Running Whisper:
You can confirm you have GPUs with:
nvidia-smi
Activate the base python environment:
source activate base
Install Whisper dependencies:
pip install git+https://github.com/openai/whisper.git
sudo apt update && sudo apt install ffmpeg
Upload a wav audio recording to your environment (you can do this by dragging and dropping into VSCode) and run Whisper on your recording:
whisper recording.wav
You can also load and run the model in python scripts like this:
import whisper
model = whisper.load_model("base")
result = model.transcribe("recording.wav")
print(result["text"])
That's it! For full instructions on what you can do with Whisper - check out OpenAI's docs.