voice_audio_multi/include/engine/models/confucius4_tts/assets.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

29 lines
973 B
C++

#pragma once
#include "engine/framework/assets/resource_bundle.h"
#include "engine/models/confucius4_tts/types.h"
#include <filesystem>
#include <memory>
namespace engine::assets {
class TensorSource;
}
namespace engine::models::confucius4_tts {
struct ConfuciusAssets {
assets::ResourceBundle resources;
ConfuciusConfig config;
std::shared_ptr<const assets::TensorSource> t2s_weights;
std::shared_ptr<const assets::TensorSource> s2a_weights;
std::shared_ptr<const assets::TensorSource> semantic_encoder_weights;
std::shared_ptr<const assets::TensorSource> semantic_encoder_shaw_weights;
std::shared_ptr<const assets::TensorSource> semantic_stats;
std::shared_ptr<const assets::TensorSource> style_encoder_weights;
std::shared_ptr<const assets::TensorSource> vocoder_weights;
};
std::shared_ptr<const ConfuciusAssets> load_confucius_assets(const std::filesystem::path & model_path);
} // namespace engine::models::confucius4_tts