| 301 | print_option_group("Model request options", inspection.cli.request_options); |
| 302 | print_option_group("Model session options", inspection.cli.session_options); |
| 303 | print_option_group("Model load options", inspection.cli.load_options); |
| 304 | std::cout << " Common output options:\n" |
| 305 | << " --out <wav>\n" |
| 306 | << " --out-dir <dir>\n" |
| 307 | << " --text-out <txt>\n" |
| 308 | << " --segments-out <json>\n" |
| 309 | << " --vad-chunks-out <json>\n" |
| 310 | << " --vad-chunk-max-seconds <float>\n" |
| 311 | << " --vad-chunk-merge-gap-seconds <float>\n" |
| 312 | << " --vad-chunk-padding-seconds <float>\n" |
| 313 | << " --turns-out <json>\n" |
| 314 | << " --words-out <json>\n"; |
| 315 | } |
| 316 | |
| 317 | void write_text_output( |
| 318 | const engine::runtime::TaskResult & result, |
| 319 | const std::filesystem::path & path, |
| 320 | const std::string & label) { |
| 321 | if (!result.text_output.has_value()) { |
| 322 | throw std::runtime_error("--text-out was requested but the task result has no text output"); |
no test coverage detected