Merge pull request #20 from ArtyomZemlyak/master

Fix: main get language from cli args
pull/24/head
Georgi Gerganov 2 years ago committed by GitHub
commit 74197ffc11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -185,6 +185,9 @@ 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();
wparams.n_threads = params.n_threads;
if (whisper_full(ctx, wparams, pcmf32.data(), pcmf32.size()) != 0) {
fprintf(stderr, "%s: failed to process audio\n", argv[0]);

Loading…
Cancel
Save