voice_audio_multi/include/engine/models/universr/runtime.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

26 lines
832 B
C++

#pragma once
#include "engine/framework/core/execution_context.h"
#include "engine/models/universr/assets.h"
#include <string>
namespace engine::models::universr {
class UniverSRRuntime {
public:
UniverSRRuntime(std::shared_ptr<const UniverSRAssets> assets,
core::ExecutionContext & execution, assets::TensorStorageType storage);
~UniverSRRuntime();
void prepare_condition(const std::vector<float> & low_spectrum, int64_t frames, int sample_rate_khz);
std::vector<float> vector_field(const std::vector<float> & noise, float time, bool conditional);
std::vector<float> integrate_flow(const std::vector<float> & initial_noise, int steps,
const std::string & method, float guidance_scale);
private:
class Impl;
std::unique_ptr<Impl> impl_;
};
} // namespace engine::models::universr