Android 如何在 PocketSphinx 中提取 MFCC 特征

How to extract MFCC features in PocketSphinx on Android

我最近下载了 Android Studio 的 PocketSphinx Android 演示。它适用于我的 Galaxy S5,我对准确性感到非常惊讶。但是,由于以下几个原因,我正在努力提取 MFCC 功能:

  1. 有关于如何使用 FrontEnd class 生成 MFCC 功能的说明,但它是为 Sphinx-4 实现编写的。我应该如何以及在何处实施包含以下行的 sphinx 属性 文件:

    <"组件名称="mfcFrontEnd" 类型="edu.cmu.sphinx.frontend.FrontEnd">

  2. 这引出了我如何在 PocketSphinx 中使用 Sphinx-4 库的问题?

There is an explanation how to use the FrontEnd class to generate MFCC features but it is written for the Sphinx-4 implementation. How and where should I implement the sphinx property file which contains lines such as: <"component name="mfcFrontEnd" type="edu.cmu.sphinx.frontend.FrontEnd">

如果你打算在android中使用sphinx4 jar,你可以将xml配置作为资源放入jar中。或者你可以把它放在资产中。

This leads to the question how I can use Sphinx-4 libraries in PocketSphinx?

Pocketsphinx和sphinx4是语音识别引擎的不同实现,一个可以换一个,一起用意义不大,需要select一个一个