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