|
|
@ -148,14 +148,21 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 更新朗读速度 |
|
|
|
|
|
|
|
*/ |
|
|
|
override fun upSpeechRate(reset: Boolean) { |
|
|
|
override fun upSpeechRate(reset: Boolean) { |
|
|
|
job?.cancel() |
|
|
|
job?.cancel() |
|
|
|
mediaPlayer.reset() |
|
|
|
mediaPlayer.reset() |
|
|
|
nowSpeak = 0 |
|
|
|
nowSpeak = 0 |
|
|
|
playingIndex = -1 |
|
|
|
playingIndex = -1 |
|
|
|
|
|
|
|
readAloudNumber = 0 |
|
|
|
play() |
|
|
|
play() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 上一段 |
|
|
|
|
|
|
|
*/ |
|
|
|
override fun prevP() { |
|
|
|
override fun prevP() { |
|
|
|
if (nowSpeak > 0) { |
|
|
|
if (nowSpeak > 0) { |
|
|
|
mediaPlayer.stop() |
|
|
|
mediaPlayer.stop() |
|
|
@ -165,6 +172,9 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 下一段 |
|
|
|
|
|
|
|
*/ |
|
|
|
override fun nextP() { |
|
|
|
override fun nextP() { |
|
|
|
if (nowSpeak < contentList.size - 1) { |
|
|
|
if (nowSpeak < contentList.size - 1) { |
|
|
|
mediaPlayer.stop() |
|
|
|
mediaPlayer.stop() |
|
|
|