blob: 78e51a0f7560f7357abc77fd7b3aa6faae9e137c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include <vector>
class TextToSpeech;
class SpeechInterface
{
public:
SpeechInterface();
~SpeechInterface();
//--------------------------------------------------------------------------
// Description : create the text to speech object
// Parameters : engine - the name of the engine to create
// Returns : an instance of the text to speech engine
//--------------------------------------------------------------------------
TextToSpeech * createTts(const std::wstring &engine) const;
//--------------------------------------------------------------------------
// Description : configure the tts object
// Parameters : tts - the tts object to configure
// desc - the description of the voice
//--------------------------------------------------------------------------
void configureTts(TextToSpeech *tts, const VoiceDesc &desc) const;
//--------------------------------------------------------------------------
// Description : create a vector of available engines
//--------------------------------------------------------------------------
std::vector<std::wstring> getAvailableEngines();
};
|