cmusphinx / pocketsphinx

A small speech recognizer
Other
3.87k stars 713 forks source link

Fix _pocketsphinx.pyx's set_alignment example #385

Closed jsalsman closed 3 months ago

jsalsman commented 3 months ago

make the pocketsphinx.Decoder.set_alignment example print something legible

jsalsman commented 3 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 3 months ago

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