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

Function resample_component_mono

src/models/chatterbox/audio_processing.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 config.require_mono = true;
42 auto features = engine::audio::get_cached_mel_spectrogram_frontend(config)
43 ->extract_audio(audio.samples, audio.sample_rate, audio.channels);
44 return {std::move(features.values), features.mel_bins, features.frames};
45}
46
47} // namespace engine::models::chatterbox::components

Callers 4

compute_s3_prompt_melFunction · 0.85
resample_mono_audioFunction · 0.85
compute_s3_embed_refFunction · 0.85

Calls 1

Tested by

no test coverage detected