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

Get per word ascr from pocketsphinx #20

Open
mavidser opened this issue Jul 21, 2016 · 3 comments
Open

Get per word ascr from pocketsphinx #20

mavidser opened this issue Jul 21, 2016 · 3 comments

Comments

@mavidser
Copy link

mavidser commented Jul 21, 2016

hypotesisForSpeechAtPath() currently gives us the hypothesis for the whole phrase. How would I get the individual score (ascr) for each recognized word?

Example output from running pocketsphinx_continuous with -backtrace flag set true:

word                 start end   pprob ascr       lscr       lback
HI                   0     25    1.000 -244       0          1  
JOHN                 26    69    1.000 -654       0          1  
IS                   70    88    1.000 -296       0          1  
EVERYTHING           89    137   1.000 -487       0          1  
ALRIGHT              138   196   1.000 -465       0          1  
@BrunoBerisso
Copy link
Contributor

Hi,

At this point there is no API in TLSphinx for this. I think it should be easy to write. Right now I don't have time available but looking at the source code for Pocketsphinx I find the implementation for what you need and seems to be really easy. Take a look here

Sorry I can't help you more with this.

@BrunoBerisso
Copy link
Contributor

I will close this for inactivity.

@BrunoBerisso
Copy link
Contributor

Reopen this one for anyone looking something fun to do 😄

@BrunoBerisso BrunoBerisso reopened this Aug 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants