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

Function require_string_value

src/models/heartmula/assets.cpp:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 return config;
54}
55
56HeartMuLaConfig parse_mula_config(const assets::ResourceBundle & resources) {
57 const auto root = resources.parse_json("mula_config");
58 HeartMuLaConfig config;
59 config.model_type = json::optional_string(root, "model_type", "");
60 if (config.model_type != "heartmula") {
61 throw std::runtime_error("HeartMuLa config model_type must be heartmula");
62 }
63 config.torch_dtype = json::optional_string(root, "torch_dtype", config.torch_dtype);

Callers 2

parse_mula_configFunction · 0.70
parse_codec_configFunction · 0.70

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected