Unsolved Voice Recognition Implementation
-
hi , you need to fix the file.
http://doc.qt.io/qtcreator/creator-editor-options-text.html
"To resolve the issue, use a file conversion tool such as Recode to convert the file encoding to UTF-8 when developing Qt 5 applications. Otherwise, conversion of string constants to QStrings might not work as expected."
http://superuser.com/questions/116907/how-to-recode-to-utf-8-conditionally
The "recode-to-utf8.sh " post.
-
@mrjj Thanks...
Now i want know how to use the api's of julius..
I have developed a simple UI in qml in which i have developed simple icon with image and want to add voice recognition using julius...
Is it the rite way what i am doing now or there is any better way to achieve this?
how to do this..? guidance required..Thanks -
@Naveen_D
Hi- I have developed a simple UI in qml in which i have developed simple icon with image and want to add voice recognition
- Is it the rite way what i am doing now or there is any better way to achieve this?
Hi, using QML for Interface is fine idea but why not wait a bit before having to learn how to call c++ functions from
QML and for now focus on getting the recognition up and running using plain c++ GUI app for testing.
Anyway, should not be super involving.
http://doc.qt.io/qt-5/qtqml-cppintegration-topic.html
http://stackoverflow.com/questions/9500280/access-c-function-from-qmlThen after you can call a c++ functions, its time to read the docs and study the sample.
-
@mrjj Ya first i will try with the plain c++ GUI for voice recognition..then i will go for c++ and QML integration. Now how to proceed further with this voice recognition ?
-
@mrjj Thanks alot for your advice
-
- Now how to proceed further with this voice recognition ?
Well I would starting with
https://github.com/julius-speech/julius/blob/master/julius-simple/julius-simple.c
Maybe make it your own class to wrap it up a bit or simply use as is.
Its pretty important you understand how this small sample works as
you need to be able to expand it for your application.
The main function accepts parameters and you must let the
app set it up and/or also allow user to change them.
So you most likely will split the main or change into something that fits your app.- UPDATE
What i ment - was that you need the same API calls as the samples uses
jconf = j_config_load_file_new(jconf_filename);
/* create recognition instance according to the jconf /
/ it loads models, setup final parameters, build lexicon
and set up work area for recognition */
recog = j_create_instance_from_jconf(jconf);
if (recog == NULL) { // ERRROR
}/* register result callback functions */
callback_add(recog, CALLBACK_EVENT_SPEECH_READY, status_recready, NULL);
callback_add(recog, CALLBACK_EVENT_SPEECH_START, status_recstart, NULL);
callback_add(recog, CALLBACK_RESULT, output_result, NULL);and more
-
@mrjj Sorry i didn't get...I thought i have to make use of the api's that julius provide and i have to develop my own code..and wherever i want to make use of voice recognition i need to call the api provided by them.
-
@Naveen_D Yes, you need to use the Julius API. But why are you asking how to use it in a Qt forum? Julius is not part of Qt. You should check Julius documentation and examples.
Or do you have any Qt specific questions? -
@jsulm Sorry if i am asking questions which are not related to Qt..but i need to use these in Qt & Qml so i am asking here...as i dont have much knowledge how to use libraries and api's of other application in Qt.
-
@Naveen_D Well, you use them as in any C++ application. You first need to learn the API. Read documentation, take a look at the examples, try to write simple applications,...