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

Function build_task_spec

tests/perf/model_perf.cpp:310–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310engine::runtime::TaskSpec build_task_spec(const JsonValue & case_value) {
311 return engine::runtime::TaskSpec{
312 engine::runtime::parse_voice_task_kind(engine::io::json::require_string(case_value, "task")),
313 engine::runtime::parse_run_mode(engine::io::json::require_string(case_value, "mode")),
314 };
315}
316
317double audio_duration_sec(const engine::runtime::AudioBuffer & audio) {
318 if (audio.sample_rate <= 0 || audio.channels <= 0) {

Callers 1

mainFunction · 0.85

Calls 3

parse_voice_task_kindFunction · 0.85
require_stringFunction · 0.85
parse_run_modeFunction · 0.85

Tested by

no test coverage detected