Rework the 'Punctuation level' (now 'Speak punctuation') preference to include a custom punctuation list.

This commit is contained in:
Reece H. Dunn
2013-09-05 14:06:57 +01:00
parent bc346db22e
commit 1de60cdc15
10 changed files with 289 additions and 27 deletions
@@ -241,6 +241,7 @@ public class TtsService extends TextToSpeechService {
mEngine.PitchRange.setValue(settings.getPitchRange());
mEngine.Volume.setValue(settings.getVolume());
mEngine.Punctuation.setValue(settings.getPunctuationLevel());
mEngine.setPunctuationCharacters(settings.getPunctuationCharacters());
mEngine.synthesize(text, text.startsWith("<speak"));
}