Closed lavrenkov-sketch closed 2 years ago
It is currently not possible, but I'll implement it and publish a new version together with the changes in PR #11
Is there any update to this issue? Can we already disable the console.log?
@AnSrwn I published a new version (0.0.6
) in which it is possible to set the log level. The default log level is 0 (info) and can be set either on model creation or during runtime:
const model = new Model('model.tar.gz', -1);
// or
const model = await createModel('model.tar.gz', 3);
// or/and
model.setLogLevel(2);
Levels match those in vosk/kaldi:
-2: Error
-1: Warning
0: Info
1: Verbose
2: More verbose
3: Debug
Hello, how disable this console.log ?