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

Function require_payload_size

src/models/vibevoice/diffusion_sampler.cpp:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace {
12
13void require_payload_size(const std::vector<float> & values, int64_t expected, const char * label) {
14 if (expected < 0 || static_cast<int64_t>(values.size()) != expected) {
15 throw std::runtime_error(std::string("VibeVoice diffusion sampler payload size mismatch for ") + label);
16 }
17}
18
19std::vector<float> concat_conditions(const VibeVoiceSpeechDiffusionInput & input) {
20 std::vector<float> condition;

Callers 1

Calls 2

stringFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected