Help required Design a front end for Julius Voice Recognition using Qt on a ARM device
-
Hi,
Currently i am working on Voice Recognition project, successfully cross compiled julius speech lib and made run on arm board(friendlyARM mini2440) from terminal command.
Now i am looking to develop a Qt frond end for Julius on ARM board. I want help regarding it.
Using the below code i am trying to show the terminal output on text Browser and operate the recognition, But when i run the output binary on board it is showing that "Qprocess has been terminated while it was running'" Error at the end and application is not working from there. PLEASE SUGGEST ME A WAY TO DESIGN A FRONT END OR HOW TO PROCESS THE TERMINAL OUTPUT IN A GUI WITHOUT ERRORS..Any ideas can be forwarded to yravi1484@gmail.com
QString LinuxTexttoSend = "julius -input oss -C /home/julius/julius-3.5.2-quickstart-linux/julian.jconf";
QProcess process; // Merge Channels so the output of binaries can be seen process.setProcessChannelMode(QProcess::MergedChannels); // Start whatever command is in LinuxTexttoSend process.start(LinuxTexttoSend, QIODevice::ReadWrite); // Run the command and loop the output into a QByteArray QByteArray data; while(process.waitForReadyRead()) data.append(process.readAll()); ui->textBrowser_linuxshell->setText(data.data());
-
QString LinuxTexttoSend = “julius -input oss -C /home/julius/julius-3.5.2-quickstart-linux/julian.jconf”;
QProcess process;
process.setProcessChannelMode(QProcess::MergedChannels);
LinuxTexttoSend process.start(LinuxTexttoSend, QIODevice::ReadWrite);
QByteArray data;
while(process.waitForReadyRead())
data.append(process.readAll());
ui->textBrowser_linuxshell->setText(data.data());
-
Edited the code for better view..sorry for reposting...please any suggestion will be help me alot as working work long time