summaryrefslogtreecommitdiffstats
path: root/packages/TtsService/src/android/tts/TtsService.java
diff options
context:
space:
mode:
authorCharles Chen <clchen@google.com>2010-03-25 19:59:50 -0700
committerCharles Chen <clchen@google.com>2010-03-26 16:14:10 -0700
commitdef7185cf19d48c95b50c2b83503d5cd21a613bf (patch)
treee74a813f03a3e4ecacba580bec34948a5ac67426 /packages/TtsService/src/android/tts/TtsService.java
parent9c3cee9824026764275e4d84ba9b5d9fdc5da690 (diff)
downloadframeworks_base-def7185cf19d48c95b50c2b83503d5cd21a613bf.zip
frameworks_base-def7185cf19d48c95b50c2b83503d5cd21a613bf.tar.gz
frameworks_base-def7185cf19d48c95b50c2b83503d5cd21a613bf.tar.bz2
Cherry-picking this fix into Froyo.
This fix is part of addressing bug #2548048 Making it possible to determine which TTS engine is currently set as the default by the user. Change-Id: Ifa422f43a33498b94d96811078c0794d64668357
Diffstat (limited to 'packages/TtsService/src/android/tts/TtsService.java')
-rwxr-xr-xpackages/TtsService/src/android/tts/TtsService.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/TtsService/src/android/tts/TtsService.java b/packages/TtsService/src/android/tts/TtsService.java
index 0d2921e..ae48e0e 100755
--- a/packages/TtsService/src/android/tts/TtsService.java
+++ b/packages/TtsService/src/android/tts/TtsService.java
@@ -1436,6 +1436,15 @@ public class TtsService extends Service implements OnCompletionListener {
return mSelf.setEngine(packageName);
}
+ /**
+ * Returns the packagename of the default speech synthesis engine.
+ *
+ * @return Packagename of the TTS engine that the user has chosen as their default.
+ */
+ public String getDefaultEngine() {
+ return mSelf.getDefaultEngine();
+ }
+
};
}