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
29 lines
1.1 KiB
C++
29 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "engine/framework/assets/resource_bundle.h"
|
|
#include "engine/framework/assets/tensor_source.h"
|
|
#include "engine/models/index_tts2/types.h"
|
|
|
|
#include <filesystem>
|
|
#include <memory>
|
|
|
|
namespace engine::models::index_tts2 {
|
|
|
|
struct IndexTTS2Assets {
|
|
assets::ResourceBundle resources;
|
|
IndexTTS2Config config;
|
|
std::shared_ptr<const assets::TensorSource> gpt_weights;
|
|
std::shared_ptr<const assets::TensorSource> s2mel_weights;
|
|
std::shared_ptr<const assets::TensorSource> speaker_matrix;
|
|
std::shared_ptr<const assets::TensorSource> emotion_matrix;
|
|
std::shared_ptr<const assets::TensorSource> wav2vec2bert_stats;
|
|
std::shared_ptr<const assets::TensorSource> wav2vec2bert_weights;
|
|
std::shared_ptr<const assets::TensorSource> semantic_codec_weights;
|
|
std::shared_ptr<const assets::TensorSource> campplus_weights;
|
|
std::shared_ptr<const assets::TensorSource> bigvgan_weights;
|
|
std::shared_ptr<const assets::TensorSource> qwen_emotion_weights;
|
|
};
|
|
|
|
std::shared_ptr<const IndexTTS2Assets> load_index_tts2_assets(const std::filesystem::path & model_path);
|
|
|
|
} // namespace engine::models::index_tts2
|