Skip to content
Discussion options

You must be logged in to vote

The vtt format is intended for timed subtitles. I think for a non-developer, the closest option to what you want is --output_format json. Then when you open up that JSON file in a text editor, you'll see the plain text very close to the top of the file:

{"text": " THE FULL TEXT WILL APPEAR HERE", ...

You can then copy and paste that part of the file.

If you want a command to extract the text out of the JSON file, you can also try the following (after you've already run Whisper to output yourfile.json):

!cut -d'"' -f4 yourfile.json

This cuts up the file into the different parts between and around the " characters and prints out the 4th part which (at least currently) happens to be the tex…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Rrrila
Comment options

Answer selected by Rrrila
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants