Skip to content

Commit bbc7a1f

Browse files
committed
cli : Allow diarization when outputting to stdout
1 parent 6a7a7a5 commit bbc7a1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/cli/cli.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,8 @@ int main(int argc, char ** argv) {
10141014
fname_out{!fname_out_.empty() ? fname_out_ : fname_inp},
10151015
basename_length{fname_out.size()},
10161016
is_stdout{fname_out == "-"},
1017-
used_stdout{params.diarize},
1018-
print_segment_callback{is_stdout && !used_stdout ? nullptr : whisper_print_segment_callback} {
1017+
used_stdout{},
1018+
print_segment_callback{is_stdout ? nullptr : whisper_print_segment_callback} {
10191019
if (!print_segment_callback) {
10201020
params.no_timestamps = true;
10211021
params.print_progress = false;

0 commit comments

Comments
 (0)