summaryrefslogtreecommitdiff
path: root/plugins/WinterSpeak/src/SpeechInterface.h
blob: b3670f7b5d063e58e72d78cdbfff3a57c73fecb3 (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();
};