Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3c5a878 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

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

parent 238bf47a
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -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;