voice_audio_multi/include/engine/models/index_echo/mapper.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

36 lines
958 B
C++

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