diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2010-03-17 22:07:13 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2010-03-17 22:08:26 -0700 |
commit | 76dd788a6eed08d537d9deb16e656b74e49b1e5a (patch) | |
tree | f798b47d6d0bba207be5cd47218cd5097850ff55 /packages | |
parent | cc83c868b6a34c52060698ef441745ba9e4537a2 (diff) | |
download | frameworks_base-76dd788a6eed08d537d9deb16e656b74e49b1e5a.zip frameworks_base-76dd788a6eed08d537d9deb16e656b74e49b1e5a.tar.gz frameworks_base-76dd788a6eed08d537d9deb16e656b74e49b1e5a.tar.bz2 |
Support plugin parameter updates for TTS plugin settings.
Change-Id: Ia18a15b260a5eccb9ac55a8d526832c015224bca
Diffstat (limited to 'packages')
-rwxr-xr-x | packages/TtsService/src/android/tts/SynthProxy.java | 9 | ||||
-rwxr-xr-x | packages/TtsService/src/android/tts/TtsService.java | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/packages/TtsService/src/android/tts/SynthProxy.java b/packages/TtsService/src/android/tts/SynthProxy.java index cece94e..5f283e1 100755 --- a/packages/TtsService/src/android/tts/SynthProxy.java +++ b/packages/TtsService/src/android/tts/SynthProxy.java @@ -48,7 +48,7 @@ public class SynthProxy { /** * Constructor; pass the location of the native TTS .so to use. */ - public SynthProxy(String nativeSoLib) { + public SynthProxy(String nativeSoLib, String engineConfig) { boolean applyFilter = nativeSoLib.toLowerCase().contains("pico"); Log.v(TtsService.SERVICE_TAG, "About to load "+ nativeSoLib + ", applyFilter="+applyFilter); native_setup(new WeakReference<SynthProxy>(this), nativeSoLib); @@ -105,6 +105,13 @@ public class SynthProxy { } /** + * Sets the engine configuration. + */ + public int setConfig(String engineConfig) { + return android.speech.tts.TextToSpeech.SUCCESS; + } + + /** * Sets the language. */ public int setLanguage(String language, String country, String variant) { diff --git a/packages/TtsService/src/android/tts/TtsService.java b/packages/TtsService/src/android/tts/TtsService.java index 2b9e7e1..2a3486f 100755 --- a/packages/TtsService/src/android/tts/TtsService.java +++ b/packages/TtsService/src/android/tts/TtsService.java @@ -166,7 +166,7 @@ public class TtsService extends Service implements OnCompletionListener { String soLibPath = "/system/lib/libttspico.so"; if (sNativeSynth == null) { - sNativeSynth = new SynthProxy(soLibPath); + sNativeSynth = new SynthProxy(soLibPath, ""); } mSelf = this; @@ -269,7 +269,7 @@ public class TtsService extends Service implements OnCompletionListener { sNativeSynth.shutdown(); sNativeSynth = null; } - sNativeSynth = new SynthProxy(soFilename); + sNativeSynth = new SynthProxy(soFilename, ""); currentSpeechEngineSOFile = soFilename; return TextToSpeech.SUCCESS; } |