voice_audio_multi/include/engine/models/hviske_asr_v6/decoder.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
822 B
C++

#pragma once
#include "engine/framework/core/execution_context.h"
#include "engine/models/hviske_asr_v6/assets.h"
#include <memory>
#include <vector>
namespace engine::models::hviske_asr_v6 {
struct HviskeV6DecodingOptions {
int64_t max_tokens = 440;
int64_t num_beams = 2;
float length_penalty = 1.0f;
std::vector<int32_t> control_tokens;
};
class HviskeV6Qwen3DecoderRuntime {
public:
HviskeV6Qwen3DecoderRuntime(std::shared_ptr<const HviskeV6Assets> assets,
core::ExecutionContext & execution, assets::TensorStorageType storage);
~HviskeV6Qwen3DecoderRuntime();
std::vector<int32_t> generate(const std::vector<float> & audio, const HviskeV6DecodingOptions & options);
private:
struct Impl;
std::unique_ptr<Impl> impl_;
};
} // namespace engine::models::hviske_asr_v6