summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/WinterSpeak/speak/config/speech_interface.h
blob: 69d2d44e14cf5b6d228aaa4d8c5c5a00190be9bc (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef guard_speak_config_speech_interface_h
#define guard_speak_config_speech_interface_h
//==============================================================================
// 	Miranda Speak Plugin, © 2002 Ryan Winter
//==============================================================================

#include "defs/voice_desc.h"

#include <string>
#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(std::string &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::string> getAvailableEngines();
};

//==============================================================================
//
//  Summary     : Configure a text to speech object
//
//  Description : Encapsulate the different speech engines available
//
//==============================================================================

#endif