Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Gabrielsson committed Aug 9, 2024
1 parent 8ebe98d commit 2246903
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions nightly/plugins/responsivevoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ app.plugin.responsivevoice = {
__autoload: function () {
var script = document.createElement('script')
script.src = 'https://code.responsivevoice.org/responsivevoice.js?key=HoGHbU9L'
script.defer = true

script.onload = function () {
responsiveVoice.clickEvent()
responsiveVoice.init()
}

document.head.appendChild(script)
},

speak: function () {
if (responsiveVoice.voiceSupport()) {
responsiveVoice.speak("hello world")
}
speak: function (object) {
var value = object.exec.value
responsiveVoice.speak(value, 'Arabic Male')
}
}

0 comments on commit 2246903

Please sign in to comment.