Mercurial > hg > easaier-soundaccess
comparison widgets/SpeechFileHandler.h @ 262:3f41cb822166
first code for the speech recognition
author | benoitrigolleau |
---|---|
date | Fri, 20 Jun 2008 12:33:08 +0000 |
parents | |
children | acfbbd2fea47 |
comparison
equal
deleted
inserted
replaced
261:ff8187498612 | 262:3f41cb822166 |
---|---|
1 #ifndef SPEECH_FILE_HANDLER_H | |
2 #define SPEECH_FILE_HANDLER_H | |
3 | |
4 #include <QObject> | |
5 #include <QXmlDefaultHandler> | |
6 #include <QMap> | |
7 #include <QVector> | |
8 | |
9 | |
10 class SpeechFileHandler :public QObject, public QXmlDefaultHandler{ | |
11 Q_OBJECT | |
12 public: | |
13 SpeechFileHandler(); | |
14 ~SpeechFileHandler(); | |
15 virtual bool fatalError (const QXmlParseException & exception); | |
16 virtual bool characters ( const QString &); | |
17 virtual bool endDocument (); | |
18 virtual bool endElement (const QString &, const QString &, const QString & ); | |
19 virtual bool startDocument () ; | |
20 virtual bool startElement ( const QString &, const QString &, const QString &, const QXmlAttributes & ); | |
21 | |
22 QString getResult(); | |
23 | |
24 private : | |
25 QString _tag_vocal_query_result, _tag_word, _tag_confidence; | |
26 QString _currentTag; | |
27 | |
28 QString _result; | |
29 | |
30 | |
31 }; | |
32 | |
33 #endif |