From 1e6a45a2d029f9e711e2de9a43bde50607b082c0 Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Mon, 22 Jun 2009 16:03:40 -0700 Subject: [PATCH] Updated TTS settings to support language, country and variant settings. Disable/enable entries based on whether language files are installed on the phone. Added entry to install the language files on the phone. --- res/values/arrays.xml | 12 +- res/values/strings.xml | 10 +- res/xml/tts_settings.xml | 6 + .../settings/TextToSpeechSettings.java | 201 ++++++++++++++---- 4 files changed, 182 insertions(+), 47 deletions(-) diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 06bf7879b1f..9bfeb1309d4 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -122,12 +122,12 @@ - en-rUS - en-rGB - fr-rFR - de-rDE - it-rIT - es-rES + eng-USA + eng-GBR + fra-FRA + deu-DEU + ita-ITA + spa-ESP diff --git a/res/values/strings.xml b/res/values/strings.xml index 69aaff1708b..e7bad742b37 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1737,10 +1737,16 @@ found in the list of installed applications. Language Sets the language-specific voice for the spoken text - + Listen to an example - + Play a short demonstration of speech synthesis + + Install voice data + + Install the voice data required for speech synthesis + + Voices required for speech synthesis already properly installed This is an example of speech synthesis. diff --git a/res/xml/tts_settings.xml b/res/xml/tts_settings.xml index 5a7aaa2205e..4ec2a4d801c 100644 --- a/res/xml/tts_settings.xml +++ b/res/xml/tts_settings.xml @@ -22,6 +22,12 @@ android:persistent="false" android:title="@string/tts_play_example_title" android:summary="@string/tts_play_example_summary" /> + +