update components

This commit is contained in:
Luke Pulverenti 2016-05-25 12:10:57 -04:00
parent 196a7b8fc8
commit 9977ee3741
50 changed files with 770 additions and 998 deletions

View file

@ -2,7 +2,6 @@
// <summary>voicecommands class</summary>
define([], function () {
/// <summary> Process the command. </summary>
/// <param name="commandPath"> Full pathname of the command file. </param>
/// <param name="result"> The result. </param>

View file

@ -324,31 +324,6 @@ define(['dialogHelper', 'jQuery', 'paper-button'], function (dialogHelper, $) {
}
}
/// <summary> Speaks the given text. </summary>
/// <param name="text"> The text. </param>
/// <returns> . </returns>
function speak(text) {
if (!SpeechSynthesisUtterance) {
console.log('API not supported');
}
var utterance = new SpeechSynthesisUtterance(text);
utterance.lang = lang;
utterance.rate = 0.9;
utterance.pitch = 1;
utterance.addEventListener('end', function () {
console.log('Synthesizing completed');
});
utterance.addEventListener('error', function (event) {
console.log('Synthesizing error');
});
console.log('Synthesizing the text: ' + text);
speechSynthesis.speak(utterance);
}
/// <summary> An enum constant representing the window. voice input manager option. </summary>
return {
startListening: startListening