Tried closure compiler, but it doesn't reduce the size as much as expected, and it breaks many things. Tried -Oz, but it only reduces 200kb.
This commit is contained in:
@@ -38,7 +38,7 @@ Browser-recognizer needs the Emscripten WASMFS' OPFS to store its model, IDBFS w
|
||||
| ```Promise<Recognizer> makeRecognizer(model: Model, sampleRate: float)``` | Make a ```Recognizer```, it will use **model**'s thread if it's the first user of **model**, else it will use a new thread.
|
||||
| ```setLogLevel(lvl: int)``` | Set Vosk's log level (default: ```0```: Info) <br>```-2```: Error<br>```-1```: Warning<br>```1```: Verbose<br>```2```: More verbose<br>```3```: Debug |
|
||||
| ```revokeURLs()``` | Revoke the Blob URLs of pthread worker and worklet processor |
|
||||
| ```cleanUp()``` | A convenient function that call ```revokeURLs()``` and ```delete()``` on all objects and . You should put this at the end of your program! |
|
||||
| ```cleanUp()``` | A convenience function that call ```revokeURLs()``` and ```delete()``` on all objects and . You should put this at the end of your program! |
|
||||
|
||||
## ```Recognizer``` object
|
||||
| Function signature | Description |
|
||||
|
||||
Reference in New Issue
Block a user