voice_audio_multi/include/engine/models/magenta_realtime_2/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

33 lines
849 B
C++

#pragma once
#include "engine/framework/assets/resource_bundle.h"
#include <filesystem>
#include <memory>
#include <string>
namespace engine::models::magenta_realtime_2 {
struct MagentaConfig {
std::string variant;
int64_t temporal_layers = 0;
int64_t temporal_dim = 0;
int64_t temporal_heads = 0;
int64_t temporal_ffn_dim = 0;
int64_t condition_dim = 0;
int64_t window = 0;
int64_t depth_dim = 0;
int64_t depth_heads = 0;
int64_t depth_layers = 0;
int64_t depth_ffn_dim = 0;
};
struct MagentaAssets {
MagentaConfig config;
engine::assets::ResourceBundle resources;
std::shared_ptr<const engine::assets::TensorSource> weights;
};
std::shared_ptr<const MagentaAssets> load_magenta_realtime_2_assets(const std::filesystem::path & path);
} // namespace engine::models::magenta_realtime_2