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

Method load

src/models/stable_audio/loader.cpp:139–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 if (task.mode != runtime::RunMode::Offline) {
138 throw std::runtime_error("Stable Audio only supports offline sessions");
139 }
140 if (task.task != runtime::VoiceTaskKind::AudioGeneration) {
141 throw std::runtime_error("Stable Audio supports only the gen task");
142 }
143 return std::make_unique<StableAudioSession>(task, options, assets_);
144}

Callers

nothing calls this directly

Calls 2

load_stable_audio_modelFunction · 0.85
resolve_model_rootFunction · 0.70

Tested by

no test coverage detected