Due to circumstances (that can be explained if you want), I'm trying to create
a project using pocketsphinx, but I have no background in programming. I was
wondering if anyone could give me any help or guidance or advice.
The idea is this. I have a text based adventure game; it is a game where I
type in a command such as "walk north" and then press enter, and then the game
returns some text describing what happens after the character has walked
north.
What I want to do is use pocketsphinx to input commands into the game so that
players won't have to type anything and can play the game by using voice
commands. Something like this:
Player says a command -> pocketsphinx recognizes the command and puts out a
text file -> the text file is entered as input into the game as if the player
typed it in and pressed enter -> game waits for next command to repeat
From my understanding, I need to create a library with all of the possible
commands for the game, but I don't know how to do that. It was also suggested
to me that to do what I want to do, I should somehow put the code for the game
into the pocketsphinx code.
are for unix like programs, and not for visual studio 2008... Where I've
gotten to is where it says this:
Windows
In MS Windows (TM), under MS Visual Studio 2008 (or newer - we test with
Visual C++ 2008 Express):
load sphinxbase.sln located in sphinxbase directory
compile all the projects in SphinxBase (from sphinxbase.sln)
load pocketsphinx.sln in pocketsphinx directory
compile all the projects in PocketSphinx
MS Visual Studio will build the executables under .\bin\Release or .\bin\Debug
(depending on the version you choose on MS Visual Studio), and the libraries
under .\lib\Release or .\lib\Build. To run pocketsphinx_continuous, don't
forget to copy sphinxbase.dll to the bin folder. Otherwise the executable will
fail to find this library.
Up to here it seems to work fine but I don't know what to do next... Can
anyone please help?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to do this step on Cygwin but I don't think that Cygwin is what I'm
supposed to use, is it?:
To check that pocketsphinx is installed properly, just run pkg-config –cflags
–libs pocketsphinx sphinxbase from the command line and see that output looks
like
Pocketsphinx is a library which you can use as any library in your project.
You can learn more about development in VS using libraries reading the
documentation:
I'd suggest writing the first version of your game using text-input. By the
time you are finished you will be more comfortable with programming and will
be in a better position to integrate third-party code. Trying to do this when
you have no programming experience is not realistic.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Due to circumstances (that can be explained if you want), I'm trying to create
a project using pocketsphinx, but I have no background in programming. I was
wondering if anyone could give me any help or guidance or advice.
The idea is this. I have a text based adventure game; it is a game where I
type in a command such as "walk north" and then press enter, and then the game
returns some text describing what happens after the character has walked
north.
What I want to do is use pocketsphinx to input commands into the game so that
players won't have to type anything and can play the game by using voice
commands. Something like this:
Player says a command -> pocketsphinx recognizes the command and puts out a
text file -> the text file is entered as input into the game as if the player
typed it in and pressed enter -> game waits for next command to repeat
From my understanding, I need to create a library with all of the possible
commands for the game, but I don't know how to do that. It was also suggested
to me that to do what I want to do, I should somehow put the code for the game
into the pocketsphinx code.
What I have done is built the pocketsphinx and sphinxbase files on visual
studio 2008. I don't know what to do next. To me, it seems like the steps in
the tutorial provided here:
http://cmusphinx.sourceforge.net/wiki/
and more specifically, here:
http://cmusphinx.sourceforge.net/wiki/tuturialpocketsphinx
are for unix like programs, and not for visual studio 2008... Where I've
gotten to is where it says this:
Windows
In MS Windows (TM), under MS Visual Studio 2008 (or newer - we test with
Visual C++ 2008 Express):
MS Visual Studio will build the executables under .\bin\Release or .\bin\Debug
(depending on the version you choose on MS Visual Studio), and the libraries
under .\lib\Release or .\lib\Build. To run pocketsphinx_continuous, don't
forget to copy sphinxbase.dll to the bin folder. Otherwise the executable will
fail to find this library.
Up to here it seems to work fine but I don't know what to do next... Can
anyone please help?
I tried to do this step on Cygwin but I don't think that Cygwin is what I'm
supposed to use, is it?:
To check that pocketsphinx is installed properly, just run pkg-config –cflags
–libs pocketsphinx sphinxbase from the command line and see that output looks
like
-I/usr/local/include -I/usr/local/include/sphinxbase -I/usr/local/include/pocketsphinx
-L/usr/local/lib -lpocketsphinx -lsphinxbase -lsphinxad
Pocketsphinx is a library which you can use as any library in your project.
You can learn more about development in VS using libraries reading the
documentation:
http://msdn.microsoft.com/en-
us/library/1ez7dh12.aspx
Thats a wrong suggestion
You do not need cygwin
I'd suggest writing the first version of your game using text-input. By the
time you are finished you will be more comfortable with programming and will
be in a better position to integrate third-party code. Trying to do this when
you have no programming experience is not realistic.