User:Zuhui/Prototyping/BASH
< User:Zuhui | Prototyping
Scripts
yt-dlp
//go to directory I want to save the youtube file $yt-dlp (video url) //copy the name of the file $ffmpeg -i (name of the file) (filename+filetype) //this will convert to filetype that I want to download
Stream segments
Vosk
[https://hub.xpub.nl/cerealbox/~manetta/cloudmix/vosk/ 151024 �with Manetta]
Vosk 2
251124 with Michael
Trial 1, with Adventure Time clip
$ yt-dlp "https://www.youtube.com/watch?v=qbsvZclUXh8" --write-info-json $ mv *.info.json *.webm interview/ $ ffmpeg -i adventure.webm adventure.wav $ vosk-transcriber -l en-us -i adventure.wav -t srt -o adventure.srt $ ../py_script/srt2vtt.py adventure.srt adventure.vtt $ chmod +x ../py_script/srt2vtt.py //if permission denied $ ffmpeg -i adventure.wav adventure.mp3 //for html
↘︎it works
Trial 2, with Json to vtt
$ vosk-transcriber -l en-us -i adventure.wav -t json -o adventure.json $ ../py_script/srt2vtt.py adventure.json adventure_words.vtt