سؤال

I'm using pocketsphinx python bindings on ubuntu 11.10. I pass it a grammar and an audio file and it works perfectly. I am now looking to find the timestamp of each word in the audio file. I have seen:

void ps_seg_frames(ps_seg_t *seg, int *out_sf, int *out_ef);

which I believe should do what I need. However I can't seem to find away to do this in python. Is this possible?

هل كانت مفيدة؟

المحلول

This feature is not implemented yet. There was a patch here but it was lost due to sourceforge outage it seems

https://sourceforge.net/tracker/?func=detail&atid=301904&aid=3480256&group_id=1904

It should be relatively easy to add this binding

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top