|
| 1 | + |
| 2 | +void whisper_print_usage(int /*argc*/, char ** argv, const whisper_params & params) { |
| 3 | + fprintf(stderr, "\n"); |
| 4 | + fprintf(stderr, "usage: %s [options] file0.wav file1.wav ...\n", argv[0]); |
| 5 | + fprintf(stderr, "\n"); |
| 6 | + fprintf(stderr, "options:\n"); |
| 7 | + fprintf(stderr, " -h, --help [default] show this help message and exit\n"); |
| 8 | + fprintf(stderr, " -t N, --threads N [%-7d] number of threads to use during computation\n", params.n_threads); |
| 9 | + fprintf(stderr, " -p N, --processors N [%-7d] number of processors to use during computation\n", params.n_processors); |
| 10 | + fprintf(stderr, " -ot N, --offset-t N [%-7d] time offset in milliseconds\n", params.offset_t_ms); |
| 11 | + fprintf(stderr, " -on N, --offset-n N [%-7d] segment index offset\n", params.offset_n); |
| 12 | + fprintf(stderr, " -d N, --duration N [%-7d] duration of audio to process in milliseconds\n", params.duration_ms); |
| 13 | + fprintf(stderr, " -mc N, --max-context N [%-7d] maximum number of text context tokens to store\n", params.max_context); |
| 14 | + fprintf(stderr, " -ml N, --max-len N [%-7d] maximum segment length in characters\n", params.max_len); |
| 15 | + fprintf(stderr, " -sow, --split-on-word [%-7s] split on word rather than on token\n", params.split_on_word ? "true" : "false"); |
| 16 | + fprintf(stderr, " -bo N, --best-of N [%-7d] number of best candidates to keep\n", params.best_of); |
| 17 | + fprintf(stderr, " -bs N, --beam-size N [%-7d] beam size for beam search\n", params.beam_size); |
| 18 | + fprintf(stderr, " -wt N, --word-thold N [%-7.2f] word timestamp probability threshold\n", params.word_thold); |
| 19 | + fprintf(stderr, " -et N, --entropy-thold N [%-7.2f] entropy threshold for decoder fail\n", params.entropy_thold); |
| 20 | + fprintf(stderr, " -lpt N, --logprob-thold N [%-7.2f] log probability threshold for decoder fail\n", params.logprob_thold); |
| 21 | + fprintf(stderr, " -su, --speed-up [%-7s] speed up audio by x2 (reduced accuracy)\n", params.speed_up ? "true" : "false"); |
| 22 | + fprintf(stderr, " -tr, --translate [%-7s] translate from source language to english\n", params.translate ? "true" : "false"); |
| 23 | + fprintf(stderr, " -di, --diarize [%-7s] stereo audio diarization\n", params.diarize ? "true" : "false"); |
| 24 | + fprintf(stderr, " -nf, --no-fallback [%-7s] do not use temperature fallback while decoding\n", params.no_fallback ? "true" : "false"); |
| 25 | + fprintf(stderr, " -otxt, --output-txt [%-7s] output result in a text file\n", params.output_txt ? "true" : "false"); |
| 26 | + fprintf(stderr, " -ovtt, --output-vtt [%-7s] output result in a vtt file\n", params.output_vtt ? "true" : "false"); |
| 27 | + fprintf(stderr, " -osrt, --output-srt [%-7s] output result in a srt file\n", params.output_srt ? "true" : "false"); |
| 28 | + fprintf(stderr, " -owts, --output-words [%-7s] output script for generating karaoke video\n", params.output_wts ? "true" : "false"); |
| 29 | + fprintf(stderr, " -fp, --font-path [%-7s] path to a monospace font for karaoke video\n", params.font_path.c_str()); |
| 30 | + fprintf(stderr, " -ocsv, --output-csv [%-7s] output result in a CSV file\n", params.output_csv ? "true" : "false"); |
| 31 | + fprintf(stderr, " -of FNAME, --output-file FNAME [%-7s] output file path (without file extension)\n", ""); |
| 32 | + fprintf(stderr, " -ps, --print-special [%-7s] print special tokens\n", params.print_special ? "true" : "false"); |
| 33 | + fprintf(stderr, " -pc, --print-colors [%-7s] print colors\n", params.print_colors ? "true" : "false"); |
| 34 | + fprintf(stderr, " -pp, --print-progress [%-7s] print progress\n", params.print_progress ? "true" : "false"); |
| 35 | + fprintf(stderr, " -nt, --no-timestamps [%-7s] do not print timestamps\n", params.no_timestamps ? "false" : "true"); |
| 36 | + fprintf(stderr, " -l LANG, --language LANG [%-7s] spoken language ('auto' for auto-detect)\n", params.language.c_str()); |
| 37 | + fprintf(stderr, " --prompt PROMPT [%-7s] initial prompt\n", params.prompt.c_str()); |
| 38 | + fprintf(stderr, " -m FNAME, --model FNAME [%-7s] model path\n", params.model.c_str()); |
| 39 | + fprintf(stderr, " -f FNAME, --file FNAME [%-7s] input WAV file path\n", ""); |
| 40 | + fprintf(stderr, "\n"); |
| 41 | +} |
0 commit comments