Change base structure to use errors instead

This commit is contained in:
msqr1
2024-01-20 00:41:38 -08:00
parent 91a21271d5
commit 2a426b983c
19 changed files with 147 additions and 198 deletions

View File

@@ -16,14 +16,13 @@
#include <archive_entry.h>
namespace fs = std::filesystem;
struct recognizer : genericObj {
struct recognizer {
int index{};
VoskRecognizer* rec{};
ALCdevice* mic{};
void acceptWaveForm();
recognizer(model* model, int sampleRate, int index);
void acceptWaveForm(float* data, int len);
recognizer(model* model, float sampleRate, int index);
~recognizer();
void start();
void stop();
void fireEv(const char* type, const char* content);
void setSpkModel(spkModel* model);
void setGrm(const std::string& grm);
void setWords(bool words);