Made the platform TTS service aware of the path for the default TTS library to load.

This commit is contained in:
Jean-Michel Trivi
2009-06-10 18:38:50 -07:00
parent 238bf47a85
commit b3c5a8785b

View File

@@ -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;