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
26 lines
761 B
C++
26 lines
761 B
C++
#pragma once
|
|
|
|
#include "engine/models/voxtral_tts/assets.h"
|
|
#include "engine/framework/core/execution_context.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace engine::models::voxtral_tts {
|
|
|
|
constexpr int64_t kCodecInitialFrames = 5;
|
|
constexpr int64_t kCodecChunkFrames = 25;
|
|
constexpr int64_t kCodecContextFrames = 25;
|
|
|
|
class VoxtralCausalCodecDecoderRuntime {
|
|
public:
|
|
VoxtralCausalCodecDecoderRuntime(const VoxtralTtsAssets & assets, core::ExecutionContext & execution,
|
|
assets::TensorStorageType storage);
|
|
~VoxtralCausalCodecDecoderRuntime();
|
|
std::vector<float> decode(const std::vector<int32_t> & codes, bool initial);
|
|
|
|
private:
|
|
struct Impl;
|
|
std::unique_ptr<Impl> impl_;
|
|
};
|
|
|
|
} // namespace engine::models::voxtral_tts
|