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
34 lines
910 B
C++
34 lines
910 B
C++
#pragma once
|
|
|
|
#include "engine/framework/core/execution_context.h"
|
|
#include "engine/framework/runtime/session.h"
|
|
#include "engine/models/cosyvoice3/assets.h"
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
namespace engine::models::cosyvoice3 {
|
|
|
|
class CosyVoice3HiftRuntime {
|
|
public:
|
|
CosyVoice3HiftRuntime(
|
|
std::shared_ptr<const CosyVoice3Assets> assets,
|
|
engine::core::ExecutionContext & execution,
|
|
engine::assets::TensorStorageType storage_type);
|
|
~CosyVoice3HiftRuntime();
|
|
|
|
CosyVoice3HiftRuntime(const CosyVoice3HiftRuntime &) = delete;
|
|
CosyVoice3HiftRuntime & operator=(const CosyVoice3HiftRuntime &) = delete;
|
|
|
|
engine::runtime::AudioBuffer synthesize(
|
|
const std::vector<float> & mel,
|
|
int64_t frames,
|
|
uint64_t seed);
|
|
void release_graphs();
|
|
|
|
private:
|
|
class Impl;
|
|
std::unique_ptr<Impl> impl_;
|
|
};
|
|
|
|
} // namespace engine::models::cosyvoice3
|