Voice Recognition Implementation
-
Hi
as @Naveen_D says you will need an external lib and which one also depends on what platforms you want to support?
https://en.wikipedia.org/wiki/List_of_speech_recognition_softwareFor Text to voice, Qt has
https://doc-snapshots.qt.io/qt5-5.8/qtspeech-index.html -
@Naveen_D said in Voice Recognition Implementation:
pocketsphinx
hi
for any external lib , one should go and look at build info for the platform that is wanted.Lets see for windows:
https://github.com/cmusphinx/pocketsphinx
Seems to use on windows, you must have V Studio 2010 or newer installed for this lib.
So for it to work for you , you should have Qt for VS version installed. exact version. (2010,2012,2013,2015)Then after you made the LIB to build. That is, it produces .DLL or .LIB files
Then you will include in your own Qt project
http://doc.qt.io/qtcreator/creator-project-qmake-libraries.htmlCheck all paths in the .pro file. If it gives errors, check forum. plenty of posts about using a lib/dll.
Now you are ready to try use the functions it gives. :)
So a key thing to understand is that the external lib and the Qt version your are using - should been made by same compiler.
So if you are using mingw compiler, using a Visual Studio DLL won't work and reverse. -
@Naveen_D
If you mean the pocketsphinx-master.zip , its the source code.On windows, you will use the pocketsphinx.sln to compile.
Then you get DLLS etc. ( the resulting library)There seems to be no precompiled binaries so its up to you to make them.
Note. you must compile both on windows and linux. You cannot
use libs from windows in linux and reverse. -
@Naveen_D
Yes, first step is to get it to compile. Either in Creator or in Visual Studio .
That will produce DLL/LIB file.Then you will make new project ( your project) and add this DLL/LIB to it.
- linux also i need to use pocketsphinx.sln ?
No. for linux , there is other build instructions.
$ ./autogen.sh
$ ./configure
$ make clean all
$ make check
$ sudo make install
--
SLN files are for visual studio.
There is no visual studio on linux.
- linux also i need to use pocketsphinx.sln ?
-
Well the pc or device
must have soundcard and a microphone but other than that,
there should be nothing stopping you to run as a Desktop app.I used this on pc
http://www.nuance.com/for-individuals/by-product/dragon-for-pc/index.htmIts brilliant.
-
@Naveen_D
Oh, no. its as commercial as it gets.it was as example of voice Recognition on the desktop :)
The best i ever tried. It worked flawless even when multiple people speaking!
They even do allow others to use
http://www.nuance.com/for-developers/dragon/index.htm
but its not open source or gratis.So i just mentioned it for a sample of VR that truly works :)
-
Hi,
Just in case, there's a speech recognition branch in the QtSpeech module that's current work in progress but might be interesting for you.