Loading android/src/com/reecedunn/espeak/TtsService.java +22 −21 Original line number Diff line number Diff line Loading @@ -94,8 +94,10 @@ public class TtsService extends TextToSpeechService { if (mOnLanguagesDownloaded != null) { unregisterReceiver(mOnLanguagesDownloaded); } if (mAsyncExtract != null) { mAsyncExtract.cancel(true); } } /** * Sets up the native eSpeak engine. Loading Loading @@ -320,8 +322,7 @@ public class TtsService extends TextToSpeechService { } } if (text.startsWith("<?xml")) { if (text.startsWith("<?xml")) { // eSpeak does not recognise/skip "<?...?>" preprocessing tags, // so need to remove these before passing to synthesize. text = text.substring(text.indexOf("?>") + 2).trim(); Loading Loading
android/src/com/reecedunn/espeak/TtsService.java +22 −21 Original line number Diff line number Diff line Loading @@ -94,8 +94,10 @@ public class TtsService extends TextToSpeechService { if (mOnLanguagesDownloaded != null) { unregisterReceiver(mOnLanguagesDownloaded); } if (mAsyncExtract != null) { mAsyncExtract.cancel(true); } } /** * Sets up the native eSpeak engine. Loading Loading @@ -320,8 +322,7 @@ public class TtsService extends TextToSpeechService { } } if (text.startsWith("<?xml")) { if (text.startsWith("<?xml")) { // eSpeak does not recognise/skip "<?...?>" preprocessing tags, // so need to remove these before passing to synthesize. text = text.substring(text.indexOf("?>") + 2).trim(); Loading