diff options
Diffstat (limited to 'rbutil/rbutilqt/voicefile.cpp')
-rw-r--r-- | rbutil/rbutilqt/voicefile.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/voicefile.cpp b/rbutil/rbutilqt/voicefile.cpp index 873329a47b..14af9adb24 100644 --- a/rbutil/rbutilqt/voicefile.cpp +++ b/rbutil/rbutilqt/voicefile.cpp | |||
@@ -65,7 +65,8 @@ bool VoiceFileCreator::createVoiceFile(ProgressloggerInterface* logger) | |||
65 | version = version.left(version.indexOf("-")).remove(0,1); | 65 | version = version.left(version.indexOf("-")).remove(0,1); |
66 | 66 | ||
67 | //prepare download url | 67 | //prepare download url |
68 | QUrl genlangUrl = settings->genlangUrl() +"?lang=" +m_lang+"&t="+target+"&rev="+version+"&f="+features; | 68 | QUrl genlangUrl = settings->value(RbSettings::GenlangUrl).toString() |
69 | +"?lang=" + m_lang + "&t=" + target + "&rev=" + version + "&f=" + features; | ||
69 | 70 | ||
70 | qDebug() << "downloading " << genlangUrl; | 71 | qDebug() << "downloading " << genlangUrl; |
71 | 72 | ||
@@ -127,7 +128,7 @@ void VoiceFileCreator::downloadDone(bool error) | |||
127 | } | 128 | } |
128 | 129 | ||
129 | //tts | 130 | //tts |
130 | m_tts = TTSBase::getTTS(settings->curTTS()); | 131 | m_tts = TTSBase::getTTS(settings->value(RbSettings::Tts).toString()); |
131 | m_tts->setCfg(settings); | 132 | m_tts->setCfg(settings); |
132 | 133 | ||
133 | QString errStr; | 134 | QString errStr; |
@@ -141,7 +142,7 @@ void VoiceFileCreator::downloadDone(bool error) | |||
141 | } | 142 | } |
142 | 143 | ||
143 | // Encoder | 144 | // Encoder |
144 | m_enc = EncBase::getEncoder(settings->curEncoder()); | 145 | m_enc = EncBase::getEncoder(settings->value(RbSettings::CurEncoder).toString()); |
145 | m_enc->setCfg(settings); | 146 | m_enc->setCfg(settings); |
146 | 147 | ||
147 | if(!m_enc->start()) | 148 | if(!m_enc->start()) |