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

30 lines
702 B
C++

#pragma once
#include "engine/framework/assets/resource_bundle.h"
#include "engine/framework/assets/tensor_source.h"
#include <filesystem>
#include <memory>
#include <vector>
namespace engine::models::apollo {
struct ApolloConfig {
int sample_rate = 44100;
int n_fft = 882;
int hop_length = 441;
int dim = 256;
int layers = 6;
std::vector<int64_t> band_widths;
};
struct ApolloAssets {
assets::ResourceBundle resources;
std::shared_ptr<const assets::TensorSource> tensors;
ApolloConfig config;
std::vector<float> window;
};
std::shared_ptr<const ApolloAssets> load_apollo_assets(const std::filesystem::path & path);
} // namespace engine::models::apollo