mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-02-20 17:12:54 +00:00
stream : support language auto-detect (#501)
#445 fix Language auto-detect "auto" flag does not work using the stream tool
This commit is contained in:
parent
674a8e579b
commit
2c4ac2627d
@ -148,7 +148,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user