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

Method run_transcription

app/server/runtime.cpp:677–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675 model.streaming = streaming;
676}
677
678ServerState::LoadedModel & ServerState::require_model(const Value & body) {
679 const std::string id = engine::io::json::require_string(body, "model");
680 const auto it = model_index_.find(id);
681 if (it == model_index_.end()) {
682 throw std::runtime_error("unknown model id: " + id);
683 }
684 return *models_.at(it->second);
685}
686
687const ServerState::LoadedModel::RuntimeVoicePreset * ServerState::select_voice_preset(
688 const LoadedModel & model,
689 const Value & body,

Callers

nothing calls this directly

Calls 3

json_responseFunction · 0.85
timing_jsonFunction · 0.85
json_quoteFunction · 0.70

Tested by

no test coverage detected