Make the rate setting use the new SeekBar/Parameter UI.

This commit is contained in:
Reece H. Dunn
2013-05-03 13:07:54 +01:00
parent d0ba13ae1d
commit 09c79bb013
6 changed files with 26 additions and 24 deletions
@@ -198,9 +198,14 @@ public class TtsService extends TextToSpeechService {
final int gender = getPreferenceValue("default_gender", 0);
final int rate = (getPreferenceValue("default_rate", 100) / 100) * mEngine.Rate.getDefaultValue();
final int pitch = getPreferenceValue("default_pitch", 100) / 2;
final Bundle params = request.getParams();
int pitch = getPreferenceValue("espeak_pitch", Integer.MIN_VALUE);
if (pitch == Integer.MIN_VALUE) {
// Try the old eyes-free setting:
pitch = getPreferenceValue("default_pitch", 100) / 2;
}
if (DEBUG) {
Log.i(TAG, "Received synthesis request: {language=\"" + mMatchingVoice.name + "\"}");