voice_audio_multi/include/engine/framework/audio/activity_graph.h
Fabio c36510c21e
Some checks failed
Linux Build / Linux cpu (push) Has been cancelled
Linux Build / Linux cpu-clang (push) Has been cancelled
Linux Build / Linux vulkan (push) Has been cancelled
mac-build / macOS CPU (push) Has been cancelled
Nix Build / Nix (cpu) (push) Has been cancelled
Nix Build / Nix (vulkan) (push) Has been cancelled
windows-build / Windows CPU (push) Has been cancelled
Initial import: audio.cpp with Orange Pi documentation
2026-11-04 19:05:22 +01:00

24 lines
609 B
C++

#pragma once
#include "engine/framework/core/module.h"
namespace engine::sampling {
struct VADGateConfig {
float threshold = 0.0f;
};
class VADGateModule {
public:
explicit VADGateModule(VADGateConfig config);
const VADGateConfig & config() const noexcept;
const engine::core::ModuleSchema & schema() const noexcept;
engine::core::TensorValue build(engine::core::ModuleBuildContext & ctx, const engine::core::TensorValue & energy) const;
static const engine::core::ModuleSchema & static_schema() noexcept;
private:
VADGateConfig config_;
};
} // namespace engine::sampling