alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.92k stars 1.1k forks source link

Get raw am predictions? #306

Open vcjob opened 3 years ago

vcjob commented 3 years ago

Hello everyone! Is it possible to get somehow raw AM predictions, like set of phones or something?

Appreciate any help!

nshmyrev commented 3 years ago

You have to modify c++ code for that.

vcjob commented 3 years ago

You have to modify c++ code for that.

Thank you for the reply!

Can't it be done just by modifying the "decode.sh" coming along with the models? What file should I modify?

Thank you!

ThThoma commented 3 years ago

Hey @vcjob I think you should take a look at the vosk-api/src/kaldi_recognizer.cc.

It is probably a better idea to modify the API once, so that your work is independent of the model.

EnnnG commented 3 years ago

Hi @vcjob !

If you found a way to do it I would be glad to know how !

Thank you in advance.