|
@@ -575,6 +575,7 @@ export default {
|
|
|
}
|
|
|
that.audioPlayer = new Audio('http://192.168.0.245:8008' + res.msg)
|
|
|
that.audioPlayer.muted = that.ariaSettings.isMuted
|
|
|
+ that.audioPlayer.playbackRate = speechRateFactors[that.ariaSettings.speechRateLevel]
|
|
|
that.audioPlayer.oncanplaythrough = () => {
|
|
|
that.audioPlayer.play()
|
|
|
}
|
|
@@ -798,6 +799,9 @@ export default {
|
|
|
if (this.ariaSettings.speechRateLevel === speechRateFactors.length) {
|
|
|
this.ariaSettings.speechRateLevel = 0
|
|
|
}
|
|
|
+ if (this.audioPlayer) {
|
|
|
+ this.audioPlayer.playbackRate = speechRateFactors[this.ariaSettings.speechRateLevel]
|
|
|
+ }
|
|
|
},
|
|
|
onClickScreenReaderMode() {
|
|
|
if (this.ariaSettings.readMode === 'point') {
|