#pragma once #include #include #include #include #include "engine/framework/assets/tensor_source.h" #include "engine/framework/core/execution_context.h" namespace engine::community_models::kitten_tts2 { class WaveformDecoder { public: WaveformDecoder(std::shared_ptr source, const core::ExecutionContext & execution, bool neon_vocoder = false); ~WaveformDecoder(); std::vector decode(const std::vector & codes, const std::vector & prompt_tokens, const std::vector & prompt_mel, const std::vector & embedding, uint64_t seed); private: struct Impl; std::unique_ptr impl_; }; }