cmusphinx / pocketsphinx

A small speech recognizer
Other
3.96k stars 720 forks source link

Fix _pocketsphinx.pyx's set_alignment example #385

Closed jsalsman closed 6 months ago

jsalsman commented 6 months ago

make the pocketsphinx.Decoder.set_alignment example print something legible

jsalsman commented 6 months ago

Hi @dhdaines! I'm working through the top item on slide 5 of https://bit.ly/talknicerslides and am really digging the sub-word alignment interface in Python. I wish I had known how to do this with the C API.

dhdaines commented 6 months ago

Ah oops! Thanks for fixing that docstring, as you noticed, those are AlignmentEntry objects and not strings.

jsalsman commented 2 months ago

@dhdaines this does not seem to have made it to https://pocketsphinx.readthedocs.io/en/latest/pocketsphinx.html#pocketsphinx.Decoder.set_alignment yet? Screenshot 2024-09-08 7 47 35 AM

dhdaines commented 2 months ago

Oh... thanks for pointing this out. There's a problem in the RTD build: https://readthedocs.org/projects/pocketsphinx/builds/25218590/

I'll fix it shortly.

dhdaines commented 2 months ago

fixed in #393

jsalsman commented 2 months ago

@dhdaines happy to help. Please comment on https://github.com/cmusphinx/cmudict/issues/37