voice_audio_multi/include/engine/models/sidon/runtime.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

20 lines
566 B
C++

#pragma once
#include "engine/framework/modules/speech_encoders/wav2vec2_bert_encoder.h"
namespace engine::models::sidon {
class SidonRuntime {
public:
SidonRuntime(std::shared_ptr<const assets::TensorSource> source, core::ExecutionContext & execution);
~SidonRuntime();
modules::Wav2Vec2BertEncoderOutput encode(const modules::Wav2Vec2BertEncoderInput & input);
std::vector<float> decode(const std::vector<float> & hidden, int64_t frames);
private:
struct State;
std::unique_ptr<State> state_;
};
} // namespace engine::models::sidon