在C#中创建pocketsphinx包装器的步骤

时间:2017-06-19 14:18:18

标签: c# wrapper pocketsphinx

我想为pocketsphinx创建一个包装器,但我没有C的经验,所以我需要你的帮助,我知道PInvoke是一种方法,但是还有另外一个问题例如pocketphinx的C运行时,我没有要求代码,我要求一个简单的指南来创建包装器,无论如何,谢谢。

2 个答案:

答案 0 :(得分:4)

在github中有一个官方的基于swig的包装器,你可以使用Make或者使用CMake为Microsoft编译它的Linux:

https://github.com/cmusphinx/pocketsphinx/tree/master/swig/csharp

您也可以查看

https://github.com/cmusphinx/pocketsphinx-unity-demo

答案 1 :(得分:2)

您可以使用SWIG为PocketSphinx lib生成C#包装器,就像在此处完成的那样:https://github.com/cmusphinx/pocketsphinx-unity-demo/tree/master/Assets/Pocketsphinx