Remove async
This commit is contained in:
@@ -4,23 +4,19 @@
|
||||
|
||||
// Prevent naming conflicts with Vosk's Recognizer class
|
||||
#define Recognizer Recognizer_
|
||||
struct Recognizer {
|
||||
int haveData{};
|
||||
bool processCurrent{};
|
||||
bool done{};
|
||||
VoskRecognizer* rec;
|
||||
std::queue<AudioData> dataQ;
|
||||
Recognizer(int index, float sampleRate, CommonModel* model);
|
||||
Recognizer(int index, float sampleRate, CommonModel* model, CommonModel* spkModel);
|
||||
Recognizer(int index, float sampleRate, CommonModel* model, const std::string& grm, int);
|
||||
void main(int index);
|
||||
void safeDelete(bool _processCurrent);
|
||||
void acceptWaveform(int start, int len);
|
||||
struct Recognizer
|
||||
{
|
||||
int index;
|
||||
VoskRecognizer *rec;
|
||||
Recognizer(int index, float sampleRate, CommonModel *model);
|
||||
Recognizer(int index, float sampleRate, CommonModel *model, CommonModel *spkModel);
|
||||
Recognizer(int index, float sampleRate, CommonModel *model, const std::string &grm, int);
|
||||
const char *acceptWaveform(int start, int len);
|
||||
void reset();
|
||||
void setEndpointerMode(VoskEndpointerMode mode);
|
||||
void setEndpointerDelays(float tStartMax, float tEnd, float tMax);
|
||||
void setSpkModel(CommonModel* model);
|
||||
void setGrm(const std::string& grm);
|
||||
void setSpkModel(CommonModel *model);
|
||||
void setGrm(const std::string &grm);
|
||||
void setWords(bool words);
|
||||
void setPartialWords(bool partialWords);
|
||||
void setNLSML(bool nlsml);
|
||||
|
||||
Reference in New Issue
Block a user