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

Function load_voxcpm2_model

src/models/voxcpm2/loader.cpp:139–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137std::unique_ptr<VoxCPM2LoadedModel>
138load_voxcpm2_model(const std::filesystem::path &model_path) {
139 auto assets = load_voxcpm2_assets(model_path);
140 return std::make_unique<VoxCPM2LoadedModel>(
141 metadata(*assets), capabilities(*assets), std::move(assets));
142}
143
144std::shared_ptr<runtime::IVoiceModelLoader> make_voxcpm2_loader() {
145 return std::make_shared<VoxCPM2Loader>();
146}
147

Callers 1

loadMethod · 0.85

Calls 3

load_voxcpm2_assetsFunction · 0.85
voxcpm2_metadataFunction · 0.85
voxcpm2_capabilitiesFunction · 0.85

Tested by

no test coverage detected