Mercurial > hg > easaier-soundaccess
comparison widgets/SpeechRecognitionUI.h @ 262:3f41cb822166
first code for the speech recognition
author | benoitrigolleau |
---|---|
date | Fri, 20 Jun 2008 12:33:08 +0000 |
parents | |
children | 63a485275ed6 |
comparison
equal
deleted
inserted
replaced
261:ff8187498612 | 262:3f41cb822166 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* Sound Access | |
4 EASAIER client application. | |
5 Silogic 2008. Benoit Rigolleau. | |
6 | |
7 This program is free software; you can redistribute it and/or | |
8 modify it under the terms of the GNU General Public License as | |
9 published by the Free Software Foundation; either version 2 of the | |
10 License, or (at your option) any later version. See the file | |
11 COPYING included with this distribution for more information. | |
12 */ | |
13 | |
14 #ifndef _SPEECH_RECOGNITION_H_ | |
15 #define _SPEECH_RECOGNITION_H_ | |
16 | |
17 #include <QWidget> | |
18 #include <QTextEdit> | |
19 #include <QPushButton> | |
20 | |
21 #include "../sv/audioio/AudioRecording.h" | |
22 | |
23 class SpeechRecognitionUI : public QWidget | |
24 { | |
25 Q_OBJECT | |
26 public: | |
27 | |
28 SpeechRecognitionUI(QWidget *parent = 0); | |
29 virtual ~SpeechRecognitionUI(); | |
30 | |
31 public slots: | |
32 void play(); | |
33 void rect(); | |
34 void sendQuery(); | |
35 | |
36 signals : | |
37 void startRect(); | |
38 void stopRect(); | |
39 | |
40 protected: | |
41 | |
42 private : | |
43 QTextEdit *_textEdit; | |
44 AudioRecording *_audioRecorder; | |
45 QPushButton *_bRect; | |
46 QPushButton *_bPlay; | |
47 QPushButton *_bSend; | |
48 }; | |
49 | |
50 #endif |