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

Function require_weights

src/models/silero_vad/runtime.cpp:97–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97std::shared_ptr<const SileroWeights> require_weights(std::shared_ptr<const SileroWeights> weights) {
98 if (!weights) {
99 throw std::runtime_error("Silero VAD runtime requires weights");
100 }
101 return weights;
102}
103
104std::vector<float> require_mono_audio(const runtime::AudioBuffer & audio, const char * context) {
105 if (audio.sample_rate <= 0) {

Callers 1

SileroRuntimeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected