Enforce one nameing convention
This commit is contained in:
21
src/CommonModel.h
Normal file
21
src/CommonModel.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include "Util.h"
|
||||
|
||||
#include <vosk_api.h>
|
||||
|
||||
extern void free(void*);
|
||||
struct CommonModel {
|
||||
bool normalMdl;
|
||||
bool thrdUsed{};
|
||||
int index;
|
||||
std::thread t;
|
||||
std::string storepath;
|
||||
std::string id;
|
||||
std::variant<VoskModel*, VoskSpkModel*> mdl;
|
||||
|
||||
void extractAndLoad(unsigned char* tarStart, int tarSize);
|
||||
int findWord(std::string word);
|
||||
CommonModel(int index, bool normalMdl, std::string storepath, std::string id, int tarStart, int tarSize);
|
||||
~CommonModel();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user