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

Function read_audio_buffer

app/cli/request.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36} // namespace
37
38engine::runtime::AudioBuffer read_audio_buffer(const std::filesystem::path & path) {
39 const auto wav = engine::audio::read_wav_f32(path);
40 return engine::runtime::AudioBuffer{
41 wav.sample_rate,
42 wav.channels,
43 wav.samples,
44 };
45}
46
47engine::runtime::AudioBuffer read_audio_buffer(std::istream & input) {
48 const auto wav = engine::audio::read_wav_f32(input);

Callers 6

build_request_from_jsonFunction · 0.70
build_request_from_cliFunction · 0.70
build_audio_dir_batchFunction · 0.70
build_speech_requestMethod · 0.50

Calls 1

read_wav_f32Function · 0.50

Tested by

no test coverage detected