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

Function timing_json

app/server/runtime.cpp:203–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 if (value->is_string()) {
202 const auto str = value->as_string();
203 if (str == "true" || str == "1") {
204 return true;
205 }
206 if (str == "false" || str == "0") {
207 return false;
208 }
209 }
210 throw std::runtime_error(key + " must be a boolean");

Callers 3

task_result_jsonFunction · 0.85
handle_speechMethod · 0.85
run_transcriptionMethod · 0.85

Calls 3

audio_rtfFunction · 0.85
strMethod · 0.80
audio_duration_msFunction · 0.70

Tested by

no test coverage detected