python pocketsphinx 中的单词时间戳
我在 ubuntu 11.10 上使用 pocketsphinx python 绑定。我向它传递了语法和音频文件,它运行得很好。我现在正在寻找音频文件中每个单词的时间戳。我已经看到:
void ps_seg_frames(ps_seg_t *seg, int *out_sf, int *out_ef);
我相信这应该可以满足我的需要。 但是我似乎无法找到在 python 中执行此操作的方法。 这可能吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该功能尚未实现。这里有一个补丁,但由于 sourceforge 中断而丢失,看起来
https://sourceforge.net/tracker/?func=detail&atid=301904&aid=3480256&group_id=1904
添加此绑定应该相对容易
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