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

Function read_audio_buffer

tests/vibevoice/vibevoice_warm_bench.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99engine::runtime::AudioBuffer read_audio_buffer(const std::string & path_text) {
100 const auto wav = engine::audio::read_wav_f32(resolve_path(path_text));
101 if (wav.sample_rate <= 0 || wav.channels <= 0 || wav.samples.empty()) {
102 throw std::runtime_error("VibeVoice warmbench received empty voice sample: " + path_text);
103 }
104 return engine::runtime::AudioBuffer{wav.sample_rate, wav.channels, wav.samples};
105}
106
107engine::models::vibevoice::VibeVoiceRequest make_request(
108 const engine::io::json::Value & object,

Callers 1

make_requestFunction · 0.70

Calls 3

resolve_pathFunction · 0.70
read_wav_f32Function · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected