Open
Description
I would like whisper-cli
to have the generality of being able to output to a file descriptor. We can already input from a fd using /dev/fd/3
, but it doesn't work with -of /dev/fd/4
. Accepting an output file descriptor could allow me the flexibility of using sockets and pipes.
Here is an simplified example of the current error:
$ exec 3<path/to/wav
$ exec 4>/path/to/vtt
$ ~/path/to/whisper-cli -l auto -ovtt -m path/to/model /dev/fd/3 -of /dev/fd/4
[...]
whisper_model_load: [...]
[...]
main: processing '/dev/fd/3' [...]
[00:00:00.000 --> 00:00:10.000] [...]
[...]
output_vtt: failed to open '/dev/fd/4.vtt' for writing
whisper_print_timings: [...]
Metadata
Metadata
Assignees
Labels
No labels