Search code examples
c#pocketsphinx

How to use Pocketsphinx with c#?


Good day! I try to use pocketsphinx with c# ,but do not know how to do that. Can you give me some links on examples, or piece of code?

Thank you!


Solution

  • You can use SWIG to generate a C# wrapper for PocketSphinx lib, like it done here:

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

    There is a piece of code that uses generated wrapper:

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