Fix Vosklet browser cache handling and recognizer event bridge

- fix broken cached model loading
- cache validated TAR models instead of gzip responses
- add proper fireEv bridge for wasm/js events
- fix recognizer initialization callbacks
- fix Embind waveform return type handling
- stabilize acceptWaveform in minified builds
- add optional debug logging
This commit is contained in:
2026-05-12 19:25:31 +02:00
parent 166ecc501b
commit 90e4390d1a
9 changed files with 1800 additions and 108 deletions

View File

@@ -11,7 +11,7 @@ struct Recognizer
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);
std::string acceptWaveform(int start, int len);
void reset();
void setEndpointerMode(VoskEndpointerMode mode);
void setEndpointerDelays(float tStartMax, float tEnd, float tMax);