mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
c7c657ca92
commit
fe3eadffba
6 changed files with 33 additions and 5 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue