Skip to content

Offline speech recognition and transcription to SRT file

Notifications You must be signed in to change notification settings

fabiopallini/mp4toSRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mp4toSRT

Offline speech recognition and transcription to SRT file

dependencies

  1. Download at least one vosk model from alphacephei
    I suggest vosk-model-en-us-0.22 to maximise the result
    Once downloaded a vosk model, unzip the file and rename the folder to "model", then place it in the project's root directory.

  2. You also may need ffmpeg, if it is not present in your system, place ffmpeg executable in the project's root folder.

  3. Vosk has been already compiled as dynamic library in his official repository
    download it and place libvosk.so under lib/ and you are ready to go!

compile

> cd src
> make

run

./mp4toSRT sample.mp4

the result will be in result.srt

About

Offline speech recognition and transcription to SRT file

Resources

Stars

Watchers

Forks

Packages

No packages published