User:Zuhui/Prototyping/BASH: Difference between revisions
< User:Zuhui | Prototyping
(→Vosk 2) |
|||
Line 16: | Line 16: | ||
===Vosk 2=== | ===Vosk 2=== | ||
[https://hub.xpub.nl/cerealbox/~murtaugh/si25/mixcloud/ 251124 with Michael] | [https://hub.xpub.nl/cerealbox/~murtaugh/si25/mixcloud/ 251124 with Michael] | ||
'''Trial 1, with 1mins 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 | |||
[https://hub.xpub.nl/cerealbox/~zuhui/transcriptt/interview/adventuretime_transcript.html ↘︎it works] |
Revision as of 23:58, 25 November 2024
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
Vosk 2
Trial 1, with 1mins 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