如何在 C# 中使用 Pocketsphinx?

How to use Pocketsphinx with c#?

美好的一天! 我尝试将 pocketsphinx 与 c# 一起使用,但不知道该怎么做。 你能给我一些示例链接或代码吗?

谢谢!

我创建了一个示例,可以使用,Windows Phone 示例。 github

可能也可用于 Windows 10 / UWP,否则我会尽快在示例中使其兼容。

您可以使用 SWIG 为 PocketSphinx lib 生成 C# 包装器,就像在此处完成的那样:

https://github.com/cmusphinx/pocketsphinx-unity-demo/tree/master/Assets/Pocketsphinx

有一段代码使用生成的包装器:

https://github.com/cmusphinx/pocketsphinx-unity-demo/blob/master/Assets/TestScript.cs