Mercurial > hg > easaier-soundaccess
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/widgets/SpeechFileHandler.h Fri Jun 20 12:33:08 2008 +0000 @@ -0,0 +1,33 @@ +#ifndef SPEECH_FILE_HANDLER_H +#define SPEECH_FILE_HANDLER_H + +#include <QObject> +#include <QXmlDefaultHandler> +#include <QMap> +#include <QVector> + + +class SpeechFileHandler :public QObject, public QXmlDefaultHandler{ + Q_OBJECT +public: + SpeechFileHandler(); + ~SpeechFileHandler(); + virtual bool fatalError (const QXmlParseException & exception); + virtual bool characters ( const QString &); + virtual bool endDocument (); + virtual bool endElement (const QString &, const QString &, const QString & ); + virtual bool startDocument () ; + virtual bool startElement ( const QString &, const QString &, const QString &, const QXmlAttributes & ); + + QString getResult(); + +private : + QString _tag_vocal_query_result, _tag_word, _tag_confidence; + QString _currentTag; + + QString _result; + + +}; + +#endif \ No newline at end of file