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

Function append_audio

src/models/vibevoice/generator.cpp:211–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void append_audio(std::vector<float> & output, const runtime::AudioBuffer & chunk) {
212 if (chunk.sample_rate != 24000 || chunk.channels != 1) {
213 throw std::runtime_error("VibeVoice generated chunk has unexpected audio format");
214 }
215 output.insert(output.end(), chunk.samples.begin(), chunk.samples.end());
216}
217
218} // namespace
219

Callers 3

generate_vibevoiceFunction · 0.85
generate_vibevoice_batchFunction · 0.85

Calls 2

endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected