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

Method handle_transcription_json

app/server/runtime.cpp:629–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627 out.audio = minitts::cli::read_audio_buffer(*preset.voice_ref);
628 }
629 return out;
630}
631
632void ServerState::load_voice_presets(LoadedModel & model) const {
633 for (const auto & [name, preset] : model.config.voice_presets) {
634 auto [it, inserted] = model.voice_presets.emplace(name, load_runtime_voice_preset(preset));
635 if (!inserted) {
636 throw std::runtime_error("duplicate runtime voice preset for model " + model.config.id + ": " + name);
637 }

Callers

nothing calls this directly

Calls 2

parseFunction · 0.85

Tested by

no test coverage detected