gcc:error:'pkg-config: No such file or directorygcc: error: pocketsphinx':Nosuchfileordirectorygcc:error:unrecognizedcommandlineoption'--libs'gcc:error:unrecognizedcommandlineoption'--cflags'
Last edit: vivian 2018-11-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi! I'm trying include pocketsphinx in my C# project as speech-to-text function using Visual Studio.
1. Should I create wrapper using SWIG, it there any official tool for it?
2. I read the tutorial here https://cmusphinx.github.io/wiki/tutorialpocketsphinx/#pocketsphinx-api-core-ideas
but is the API available on Win10 and can I just directly include the code on VS C# project?
3. I also downloaded the folder for C# here https://github.com/cmusphinx/pocketsphinx/tree/master/swig/csharp can I use the test.cs file for C# project?
Thank you very much! Appreciate your help!!
You can start with learning about swig first and trying simple swig examples:
https://www.technical-recipes.com/2013/getting-started-with-swig-interfacing-between-c-and-c-visual-studio-projects/
Then you can proceed with porting makefile from https://github.com/cmusphinx/pocketsphinx/tree/master/swig/csharp to Windows nmake to compile pocketsphinx dll for C# and then you can use it in c# as demonstrated in test.cs from the same folder.
Thanks Nickolay
I am following the link you gave me. And I'm trying to port the makefile but it return this error
I solved the above error but another problems occur when it's running this line
Last edit: vivian 2018-11-10
Hi Vivian,
I am facing same issue. Are you able to port sphinx to C# ?
Thanks.
Waleed