This project focuses english speech reconition and transform it into subtitles (.srt) using the Whisper (medium.en) model.
Project languages:
- en
| Name | Version |
|---|---|
| streamlit | 1.34.2 |
| srt | 3.5.3 |
| whisper | 1.1.10 |
- Operating System (OS): Windows 10, Mac, Linux.
python==3.9.9andpytorch==1.10.1- Integrated Development Environment (IDE): VSCode.
- Web Browser: Google Chrome, Microsoft Edge, Firefox, Safari.
mkdir img_segmentation_app
cd img_segmentation_app
python -m venv venv
venv\Scripts\activate
pip install openai-whisper streamlit srt ffmpeg
setup FFmpeg:
- Download and extract FFmpeg in C Drive: https://ffmpeg.org/download.html
- Create new terminal
- run:
$env:PATH = "C:\ffmpeg\bin;" + $env:PATH - activate venv again:
venv\Scripts\activate
streamlit run app.py
- Wicaksono Hanif Supriyanto
- Radford, A., Kim, J. W., Xu, T., Brockman, G., McLeavey, C., & Sutskever, I. (2022). Robust speech recognition via large-scale weak supervision. arXiv. https://arxiv.org/abs/2212.04356
- Inspired by Bikin Subtitle Otomatis dengan Python (Python Tutorial) by ngodein.