This commit is contained in:
gedoor 2021-10-17 13:12:38 +08:00
parent bd888d0c37
commit d3b5d9c2b8

View File

@ -281,6 +281,9 @@ class HttpReadAloudService : BaseReadAloudService(),
return@launch
}
val speakTextLength = contentList[nowSpeak].length
if (speakTextLength <= 0) {
return@launch
}
val sleep = mediaPlayer.duration / speakTextLength
val start = speakTextLength * mediaPlayer.currentPosition / mediaPlayer.duration
for (i in start..contentList[nowSpeak].length) {