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

Function clip_audio_path_field

tests/perf/model_perf.cpp:176–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176JsonValue clip_audio_path_field(
177 const JsonValue & value,
178 const std::filesystem::path & repo_root,
179 const std::filesystem::path & temp_dir,
180 double seconds) {
181 const auto absolute = std::filesystem::path(value.as_string()).is_absolute()
182 ? std::filesystem::path(value.as_string())
183 : repo_root / value.as_string();
184 return JsonValue::make_string(write_clipped_wav(absolute, temp_dir, seconds).string());
185}
186
187JsonValue derive_warmup_request(
188 const JsonValue & request,

Callers 1

derive_warmup_requestFunction · 0.85

Calls 1

write_clipped_wavFunction · 0.70

Tested by

no test coverage detected