|
@@ -15,7 +15,6 @@ import io.legado.app.lib.dialogs.SelectItem
|
|
|
import io.legado.app.model.ReadAloud
|
|
import io.legado.app.model.ReadAloud
|
|
|
import io.legado.app.model.ReadBook
|
|
import io.legado.app.model.ReadBook
|
|
|
import io.legado.app.utils.*
|
|
import io.legado.app.utils.*
|
|
|
-import java.util.*
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 本地朗读
|
|
* 本地朗读
|
|
@@ -60,7 +59,6 @@ class TTSReadAloudService : BaseReadAloudService(), TextToSpeech.OnInitListener
|
|
|
if (status == TextToSpeech.SUCCESS) {
|
|
if (status == TextToSpeech.SUCCESS) {
|
|
|
textToSpeech?.let {
|
|
textToSpeech?.let {
|
|
|
it.setOnUtteranceProgressListener(ttsUtteranceListener)
|
|
it.setOnUtteranceProgressListener(ttsUtteranceListener)
|
|
|
- it.language = Locale.CHINA
|
|
|
|
|
ttsInitFinish = true
|
|
ttsInitFinish = true
|
|
|
play()
|
|
play()
|
|
|
}
|
|
}
|