Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console. log #10

Closed
lavrenkov-sketch opened this issue Aug 24, 2021 · 3 comments
Closed

Console. log #10

lavrenkov-sketch opened this issue Aug 24, 2021 · 3 comments

Comments

@lavrenkov-sketch
Copy link

image
Hello, how disable this console.log ?

@ccoreilly
Copy link
Owner

It is currently not possible, but I'll implement it and publish a new version together with the changes in PR #11

@AnSrwn
Copy link

AnSrwn commented Feb 28, 2022

Is there any update to this issue? Can we already disable the console.log?

@ccoreilly
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants