1
0
Fork 0
forked from len0rd/rockbox

Factor out executable based TTS engines to separate subclasses.

Similar as done with SAPI / MSSP make the current implementation for executable
based TTS engines a base class and create derived classes for each supported
TTS. Removes the need for the implementation to know about the individual TTS
engines.

Add support for speaking directly (i.e. without going through a temporary wave
file, currently only used by espeak).

Change-Id: I59bbbd6ee4c2c009b2a8d8e0ab4a9b39ea723d6e
This commit is contained in:
Dominik Riebeling 2012-10-06 13:44:39 +02:00
parent 7f76bb48b3
commit 2c3b8bd1e2
8 changed files with 182 additions and 25 deletions

View file

@ -39,7 +39,7 @@ class TTSCarbon : public TTSBase
TTSCarbon(QObject *parent = NULL);
//! Child class should generate a clip
TTSStatus voice(QString text,QString wavfile, QString* errStr);
TTSStatus voice(QString text, QString wavfile, QString* errStr);
//! Child class should do startup
bool start(QString *errStr);
//! child class should stop
@ -51,7 +51,7 @@ class TTSCarbon : public TTSBase
bool configOk();
//! Child class should generate and insertSetting(..) its settings
void generateSettings();
//! Chlid class should commit the Settings to permanent storage
//! Child class should commit the Settings to permanent storage
void saveSettings();
Capabilities capabilities();