diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2009-06-10 18:38:50 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2009-06-10 18:38:50 -0700 |
commit | b3c5a8785bc643843117752d37769a1edfe9a9e2 (patch) | |
tree | 1a2bb990c308c2a0578fc9bb9475698029a44886 | |
parent | 238bf47a850532233ed51362dca95facf8680770 (diff) | |
download | frameworks_base-b3c5a8785bc643843117752d37769a1edfe9a9e2.zip frameworks_base-b3c5a8785bc643843117752d37769a1edfe9a9e2.tar.gz frameworks_base-b3c5a8785bc643843117752d37769a1edfe9a9e2.tar.bz2 |
Made the platform TTS service aware of the path for the default TTS library to load.
-rwxr-xr-x | packages/TtsService/src/android/tts/TtsService.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/packages/TtsService/src/android/tts/TtsService.java b/packages/TtsService/src/android/tts/TtsService.java index c2c76fd..8a64113 100755 --- a/packages/TtsService/src/android/tts/TtsService.java +++ b/packages/TtsService/src/android/tts/TtsService.java @@ -117,16 +117,7 @@ public class TtsService extends Service implements OnCompletionListener { // app. prefs = PreferenceManager.getDefaultSharedPreferences(this); - PackageManager pm = this.getPackageManager(); - String soLibPath = ""; - try { - soLibPath = pm.getApplicationInfo("com.svox.pico", 0).dataDir; - } catch (NameNotFoundException e) { - // This exception cannot actually happen as com.svox.pico is - // included with the system image. - e.printStackTrace(); - } - soLibPath = soLibPath + "/lib/libttspico.so"; + String soLibPath = "/system/lib/libttspico.so"; nativeSynth = new SynthProxy(soLibPath); mSelf = this; |