MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / write_text_output

Function write_text_output

app/cli/main.cpp:303–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
317void 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");

Callers 2

run_streamingFunction · 0.85
mainFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected