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

33 lines
868 B
C++

#pragma once
#include "engine/framework/assets/tensor_source.h"
#include "engine/framework/runtime/session.h"
#include "engine/models/supertonic/assets.h"
#include "engine/models/supertonic/session.h"
#include <cstddef>
#include <memory>
#include <string>
namespace engine::models::supertonic {
class SupertonicRuntime {
public:
SupertonicRuntime(
std::shared_ptr<const SupertonicAssets> assets,
core::BackendConfig backend_config,
assets::TensorStorageType weight_storage_type,
std::size_t style_cache_slots = 4);
~SupertonicRuntime();
runtime::AudioBuffer synthesize(
const std::string & text,
const SupertonicGenerationOptions & options,
const SupertonicTextTokenizer & tokenizer);
private:
struct State;
std::unique_ptr<State> state_;
};
} // namespace engine::models::supertonic