MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / load_audio

Method load_audio

src/common/AutoModel/modeling_gemma4e_audio.cpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31audio_data_t Gemma4e::load_audio(const std::string &filename, int resample_rate, MonoDownmixMode downmix) {
32 audio_data_t empty_result;
33 audio_data_t result;
34
35 if (!audio_reader_.load_audio(filename, result, resample_rate, downmix)) {
36 std::cerr << "Failed to load audio: " << filename << std::endl;
37 exit(-1);
38 //return empty_result;
39 }
40 return result;
41}
42
43std::vector<audio_data_t> Gemma4e::clip_audio_length(audio_data_t& audio, double max_duration_second) {
44 std::vector<audio_data_t> audio_chunks;

Callers 1

insertMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected