-
I want to just pipe transcription to another process without transcription results being saved. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can't do that with the CLI (there is no option for it). The easiest workaround would be to run whisper, then A more involved way would be to write your own Python script, since then you could invoke |
Beta Was this translation helpful? Give feedback.
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 withprint(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.