Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Steps to create a pocketsphinx wrapper in C# [closed]

pocketsphinx has a SWIG interface "pocketsphinx.i" to generate wrappers in multiple language and one of them is C#.

It is not clear how to run the swig command in Windows and how to use the resulting library in a NetCore C# project.

What are the steps required to generate the wrapper library and use it in a C# NetCore app?

like image 367
Pedro Lima Avatar asked Jun 19 '17 14:06

Pedro Lima


2 Answers

There is an official swig-based wrapper in github, you can compile it for Linux with Make or for Microsoft with CMake:

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

You can also check

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

like image 75
Nikolay Shmyrev Avatar answered Nov 11 '22 22:11

Nikolay Shmyrev


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

like image 20
Mikolaytis Avatar answered Nov 11 '22 22:11

Mikolaytis