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

Method load_runtime_voice_preset

app/server/runtime.cpp:424–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422 if (result.named_audio_outputs.size() == 1) {
423 return task_result_json_with_timing(result, timing_json(wall_ms, result.named_audio_outputs.front().audio));
424 }
425 return task_result_json_with_timing(result, timing_json(wall_ms));
426}
427
428std::string streaming_task_result_json(
429 const engine::runtime::TaskResult & result,
430 const std::optional<double> & ttft_ms) {
431 return task_result_json_with_timing(result, ttft_timing_json(require_ttft_ms(ttft_ms)));
432}
433
434std::string stream_event_json(const engine::runtime::StreamEvent & event) {
435 std::ostringstream out;
436 out << "{";

Callers

nothing calls this directly

Calls 1

read_audio_bufferFunction · 0.50

Tested by

no test coverage detected