|
@@ -574,6 +574,7 @@ export default {
|
|
|
that.audioPlayer.pause()
|
|
|
}
|
|
|
that.audioPlayer = new Audio('http://192.168.0.245:8008' + res.msg)
|
|
|
+ that.audioPlayer.muted = that.ariaSettings.isMuted
|
|
|
that.audioPlayer.oncanplaythrough = () => {
|
|
|
that.audioPlayer.play()
|
|
|
}
|
|
@@ -788,6 +789,9 @@ export default {
|
|
|
},
|
|
|
onClickMute() {
|
|
|
this.ariaSettings.isMuted = !this.ariaSettings.isMuted
|
|
|
+ if (this.audioPlayer) {
|
|
|
+ this.audioPlayer.muted = this.ariaSettings.isMuted
|
|
|
+ }
|
|
|
},
|
|
|
onClickSpeechRate() {
|
|
|
this.ariaSettings.speechRateLevel++
|