- video file
- conda package manager(installed)
- you
check this github repo.
- make virtual env
conda create -n whisper python=3.9- activate virtual env
conda activate whisper- install pytorch
If you want to do it faster. you need to install
pytorch-gpu
conda install pytorch-gpu -y- check cuda availablity
- open the python interpreter.
python- in python interpreter.
import torch
torch.cuda.is_available()
exit()it must print true
- then, install
whisper
pip install git+https://github.com/openai/whisper.git- in terminal
whisper [Wang.mp4] --model large- [Wang.mp4] is your path for video.
- It take 7min 11sec for 40min video(I used RTX4090)
- pretty cool
when it is done. deactivate virtual env.
conda deactivateIn same directory of video, there is .srt, .txt files in it.