Rockbox Utility TTS: implement reading TTS vendor.

Support retrieving the vendor name of the TTS. This will be used by TTS string
corrections. Currently no other TTS but SAPI supports this, and only correction
strings for SAPI voices depend on the vendor information.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30609 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2011-09-26 21:28:05 +00:00
parent c7c657ca92
commit fe3eadffba
6 changed files with 33 additions and 5 deletions

View file

@ -42,6 +42,7 @@ class TTSSapi : public TTSBase
TTSStatus voice(QString text,QString wavfile, QString *errStr);
bool start(QString *errStr);
bool stop();
QString voiceVendor(void);
Capabilities capabilities();
// for settings
@ -49,8 +50,8 @@ class TTSSapi : public TTSBase
void generateSettings();
void saveSettings();
private slots:
void updateVoiceList();
private slots:
void updateVoiceList();
private:
QStringList getVoiceList(QString language);
@ -66,6 +67,7 @@ class TTSSapi : public TTSBase
QString m_TTSVoice;
QString m_TTSSpeed;
bool m_sapi4;
bool m_started;
};