|
|
@ -18,6 +18,7 @@ object ReadAloud { |
|
|
|
private fun getReadAloudClass(): Class<*> { |
|
|
|
private fun getReadAloudClass(): Class<*> { |
|
|
|
val spId = App.INSTANCE.getPrefLong(PreferKey.speakEngine) |
|
|
|
val spId = App.INSTANCE.getPrefLong(PreferKey.speakEngine) |
|
|
|
httpTTS = App.db.httpTTSDao().get(spId) |
|
|
|
httpTTS = App.db.httpTTSDao().get(spId) |
|
|
|
|
|
|
|
stop(App.INSTANCE) |
|
|
|
return if (httpTTS != null) { |
|
|
|
return if (httpTTS != null) { |
|
|
|
HttpReadAloudService::class.java |
|
|
|
HttpReadAloudService::class.java |
|
|
|
} else { |
|
|
|
} else { |
|
|
|