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

2

6

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?

Natatory answered 19/6, 2017 at 14:18 Comment(1)
github.com/garuma/PiHueSphinx It isn't only about wrappers, but it should help you.Dichromic
G
4

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

Gorki answered 19/6, 2017 at 16:8 Comment(1)
Can you please articulate a bit more? Can you please provide an example of how to run the swig command and then use the resulting library in c#?Gentilis
N
2

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

Nassir answered 7/8, 2017 at 14:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.