从没有日志的 pocketsphinx 获取关键字时间

Getting keyword times from pocketsphinx without logs

我正在尝试使用 pocketsphinx 进行一些关键字识别。我能够成功使用 pocketsphinx_continuous -infile -keyphrasepocketsphinx_continuous -infile -kws。输出看起来很冗长,我无法在互联网上找到指南或解析器。我的输出要求是只获取识别关键字的时间戳。我该怎么做?

只打印时间的命令:

  pocketsphinx_continuous -infile file.wav -keyphrase "hello world" \
      -logfn /dev/null -time yes

-logfn 选项抑制日志,-time 选项启用打印时间。时间以秒为单位。