#pragma once #include "engine/models/index_echo/assets.h" #include "engine/framework/core/execution_context.h" #include #include #include #include namespace engine::models::index_echo { class IndexEchoHidden2CVRuntime { public: IndexEchoHidden2CVRuntime( std::shared_ptr assets, core::ExecutionContext & execution, assets::TensorStorageType storage_type); ~IndexEchoHidden2CVRuntime(); IndexEchoHidden2CVRuntime(const IndexEchoHidden2CVRuntime &) = delete; IndexEchoHidden2CVRuntime & operator=(const IndexEchoHidden2CVRuntime &) = delete; std::vector map( const std::vector & text_hidden, const std::vector & cosyvoice_embeddings, int64_t tokens, std::string_view target_language); private: class Impl; std::unique_ptr impl_; }; } // namespace engine::models::index_echo