Skip to content

Commit

Permalink
Fix speech plugin activation detection
Browse files Browse the repository at this point in the history
  • Loading branch information
sulkaharo committed Jul 16, 2018
1 parent 23f6f9a commit d80c605
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,11 +597,11 @@ client.load = function load(serverSettings, callback) {
$(this).addClass('playing');
});

//var speechPlugin = client.plugins('speech');
//
//if (speechPlugin) {
// speechPlugin.say(alarmMessage);
//}
var speechPlugin = client.plugins.enabledPlugins['speech'];

if (speechPlugin) {
speechPlugin.say(alarmMessage);
}

}

Expand Down
3 changes: 3 additions & 0 deletions lib/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -11455,6 +11455,9 @@ function init() {
,
'change': {
fi: 'muutos'
},
'Speech': {
fi: 'Puhe'
}

};
Expand Down

0 comments on commit d80c605

Please sign in to comment.