diff --git a/examples/stream/stream.cpp b/examples/stream/stream.cpp index b2a1824..f900459 100644 --- a/examples/stream/stream.cpp +++ b/examples/stream/stream.cpp @@ -451,7 +451,7 @@ int main(int argc, char ** argv) { // whisper init - if (whisper_lang_id(params.language.c_str()) == -1) { + if (params.language != "auto" && whisper_lang_id(params.language.c_str()) == -1){ fprintf(stderr, "error: unknown language '%s'\n", params.language.c_str()); whisper_print_usage(argc, argv, params); exit(0);