You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
476 B
Bash

2 months ago
#!/bin/bash
#
# vosk can also output JSON that includes the timing of each individual
# detected WORD!
# NOTE: I had an error when I did this and needed to PATCH some PYTHON code in VOSK
# see VOSKPATCH.TXT
2 months ago
vosk-transcriber -l en-us -i w25mia60.wav -t json -o w25mia60.json
2 months ago
# use a python script to translate the VOSK json output
# into a VTT with JSON objects for each caption
python3 scripts/voskjson2vtt.py w25mia60.json w25mia60_words.vtt
# Now check out vtt_words.html