skit-ai / kaldi-serve

Server framework for Kaldi ASR Toolkit
Apache License 2.0
97 stars 24 forks source link

Words list is empty if using python bindings #39

Closed farisalasmary closed 2 years ago

farisalasmary commented 2 years ago

Thank you very much for your great efforts! I would like to ask about how can I get the list of words with the start time and end time for each word using the python bindings since it returns an empty list??

pskrunner14 commented 2 years ago

You need to pass word_level=True arg in get_decoded_results.

Reference: https://github.com/skit-ai/kaldi-serve/blob/master/python/kaldiserve_pybind/decoder.cpp#L79

farisalasmary commented 2 years ago

Thank you @pskrunner14 !! it worked!