diff --git a/main.cpp b/main.cpp index 562559a..eb5bb43 100644 --- a/main.cpp +++ b/main.cpp @@ -185,6 +185,8 @@ int main(int argc, char ** argv) { wparams.print_progress = false; wparams.print_timestamps = !params.no_timestamps; wparams.print_special_tokens = params.print_special_tokens; + wparams.translate = params.translate; + wparams.language = params.language.c_str(); if (whisper_full(ctx, wparams, pcmf32.data(), pcmf32.size()) != 0) { fprintf(stderr, "%s: failed to process audio\n", argv[0]);