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

Method build

src/framework/audio/dsp.cpp:566–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566AudioTensor MelFilterbank::build(const MelFilterbankConfig & config) const {
567 if (config.sample_rate <= 0 || config.n_fft <= 0 || config.n_mels <= 0) {
568 throw std::runtime_error("MelFilterbank config values must be positive");
569 }
570 AudioTensor result;
571 result.shape = {config.n_mels, (config.n_fft / 2) + 1};
572 result.values = get_cached_mel_filterbank(config);
573 return result;
574}
575
576SparseMelFilterbank MelFilterbank::build_sparse(const MelFilterbankConfig & config) const {
577 return prepare_sparse(build(config));

Callers 15

conv1dFunction · 0.45
replicate_pad1dFunction · 0.45
activation1dFunction · 0.45
resblockFunction · 0.45
FlashSrGraphMethod · 0.45
RnnoiseFrameGraphMethod · 0.45
causal_convMethod · 0.45
gruMethod · 0.45
RnnoiseSequenceGraphMethod · 0.45
computeMethod · 0.45
graph_addFunction · 0.45
graph_mulFunction · 0.45

Calls

no outgoing calls