Skip to content
Discussion options

You must be logged in to vote

You can't do that with the CLI (there is no option for it).

The easiest workaround would be to run whisper, then cat the file, piping that into another process, and removing the file afterwards.

A more involved way would be to write your own Python script, since then you could invoke result = transcribe("large-v2", "audio.mp3") method and then print it to stdout with print(json.dumps(result)) for example. That way no file will be written and the transcript will be printed to stdout. If you want to print out just the text, you can select that from the json before printing. Unfortunately you can't use any of the SRT/VTT/etc writers since those are all hard coded to write to files.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hustLer2k
Comment options

@ryanheise
Comment options

Answer selected by hustLer2k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants