ScummVM API documentation
speech.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef TESTBED_SPEECH_H
23 #define TESTBED_SPEECH_H
24 
25 #include "testbed/testsuite.h"
26 #include "common/text-to-speech.h"
27 
28 namespace Testbed {
29 
30 namespace Speechtests {
31 
32 // Helper functions for Speech tests
33 
34 // will contain function declarations for Speech tests
35 // add more here
36 
37 TestExitStatus testMale();
38 TestExitStatus testFemale();
39 TestExitStatus testStop();
40 TestExitStatus testStopAndSpeak();
41 TestExitStatus testPauseResume();
42 TestExitStatus testRate();
43 TestExitStatus testVolume();
44 TestExitStatus testPitch();
45 TestExitStatus testStateStacking();
46 TestExitStatus testQueueing();
47 TestExitStatus testInterrupting();
48 TestExitStatus testDroping();
49 TestExitStatus testInterruptNoRepeat();
50 TestExitStatus testQueueNoRepeat();
51 
52 // Utility function to avoid dupplicated code
53 void waitForSpeechEnd(Common::TextToSpeechManager *);
54 
55 } // End of namespace Speechtests
56 
57 class SpeechTestSuite : public Testsuite {
58 public:
68  ~SpeechTestSuite() override {}
69  const char *getName() const override {
70  return "Speech";
71  }
72 
73  const char *getDescription() const override {
74  return "Speech Subsystem";
75  }
76 
77 };
78 
79 
80 } // End of namespace Testbed
81 
82 #endif // TESTBED_SPEECH_H
Definition: cloud.h:30
Definition: testsuite.h:90
Definition: speech.h:57
Definition: text-to-speech.h:145