pip install symbl
pip install argparse
touch symbl.conf
[credentials]
app_id='YOUR_API_ID'
app_secret='YOUR_API_KEY'
git clone https://github.com/Pankaj-SinghR/Symbl.ai-Hackathon-Project.git
mv symbl.conf ./Symbl.ai-Hackathon-Project
cd Symbl.ai-Hackathon-Project
ls
sampleVideo.mp4 subtitleGenerator.py symbl.conf
chmod +x subtitleGenerator.py
./subtitleGenerator.py -h
usage: subtitleGenerator.py [-h] --filetype FILETYPE --locate LOCATE [--output OUTPUT]
Subtite Generator Using Symbl.ai
optional arguments:
-h, --help show this help message and exit
--filetype FILETYPE Give file type audio/video
--locate LOCATE Locate file
--output OUTPUT Name of Output file
filetype : give audio or video
locate : location of your audio/video file
output : give name to output file with .srt extension
./subtitleGenerator.py --filetype video --locate ./sampleVideo.mp4 --output subtitle.srt
ls
subtitle.srt