forked from len0rd/rockbox
Voicefile generation: implement string corrections.
Voicefile generation now can correct strings for the TTS system similar to what voice.pl does. The current implementation has some limitations: - only implemented for voicefile creation. - the corrections file is built in and can't get changed. - string corrections can be disabled in the configuration dialog. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30628 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7f2defc453
commit
4f56b50df4
10 changed files with 119 additions and 8 deletions
|
|
@ -205,6 +205,7 @@ void Config::accept()
|
|||
RbSettings::setValue(RbSettings::CacheOffline, ui.cacheOfflineMode->isChecked());
|
||||
|
||||
// tts settings
|
||||
RbSettings::setValue(RbSettings::UseTtsCorrections, ui.ttsCorrections->isChecked());
|
||||
int i = ui.comboTts->currentIndex();
|
||||
RbSettings::setValue(RbSettings::Tts, ui.comboTts->itemData(i).toString());
|
||||
|
||||
|
|
@ -288,6 +289,9 @@ void Config::setUserSettings()
|
|||
ui.cacheDisable->setChecked(RbSettings::value(RbSettings::CacheDisabled).toBool());
|
||||
ui.cacheOfflineMode->setChecked(RbSettings::value(RbSettings::CacheOffline).toBool());
|
||||
updateCacheInfo(RbSettings::value(RbSettings::CachePath).toString());
|
||||
|
||||
// TTS tab
|
||||
ui.ttsCorrections->setChecked(RbSettings::value(RbSettings::UseTtsCorrections).toBool());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue