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 }
37}
38
39} // namespace
40
41bool is_stdin_audio_source(std::string_view audio_arg) {
42 return audio_arg == "-";
43}
44
45engine::runtime::AudioBuffer read_audio_buffer(const std::filesystem::path & path) {
46 const auto wav = engine::audio::read_wav_f32(path);
47 return engine::runtime::AudioBuffer{
48 wav.sample_rate,

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