speech
Loading...
Searching...
No Matches
main.cpp
1/*
2* Copyright(C) 2014 WYSIWYD Consortium, European Commission FP7 Project ICT - 612139
3* Authors: Stephane Lallee
4* email : stephane.lallee@gmail.com
5* Permission is granted to copy, distribute, and / or modify this program
6* under the terms of the GNU General Public License, version 2 or any
7* later version published by the Free Software Foundation.
8*
9* A copy of the license can be found at
10* wysiwyd / license / gpl.txt
11*
12* This program is distributed in the hope that it will be useful, but
13* WITHOUT ANY WARRANTY; without even the implied warranty of
14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU General
15* Public License for more details
16*/
17
94#include "SpeechRecognizerModule.h"
95
96int main(int argc, char* argv[])
97{
98 double t0;
99 if (::CoInitializeEx(NULL,COINIT_MULTITHREADED) == S_OK)
100 {
101 Network yarp;
102 if (!yarp.checkNetwork())
103 return 1;
104
105 ResourceFinder rf;
106 rf.setDefaultContext("speechRecognizer");
107 rf.setDefaultConfigFile("config.ini");
108 rf.configure(argc,argv);
109 SpeechRecognizerModule mod;
110
111 mod.runModule(rf);
112 t0 = Time::now();
113 yInfo() <<"Out of the runModule(). You may want to stop the microphone to get back the hand...";
114 }
115 ::CoUninitialize();
116 yInfo() <<"Time to give back the hand : "<<Time::now()-t0;
117}
118
119