';
- html += '
' + Globalize.translate('HeaderSaySomethingLike') + '
';
+ html += '
' + Globalize.translate('HeaderSaySomethingLike') + '
';
html += '
';
html += '
';
@@ -301,31 +324,6 @@ define(['paperdialoghelper'], function (paperDialogHelper) {
}
}
- ///
Getgrammars the given language.
- ///
The language.
- ///
.
- function getGrammarCommands(language) {
-
- var file = "grammar";
- if (language && language.length > 0)
- file = language;
-
- var grammar = (function () {
- var grm = null;
- $.ajax({
- async: false,
- global: false,
- url: "voice/grammar/" + file + ".json",
- dataType: "json",
- success: function (data) {
- grm = data;
- }
- });
- return grm;
- })();
- return grammar;
- }
-
///
Speaks the given text.
///
The text.
///
.
@@ -353,7 +351,7 @@ define(['paperdialoghelper'], function (paperDialogHelper) {
///
An enum constant representing the window. voice input manager option.
- window.VoiceInputManager = {
+ return {
isSupported: function () {
@@ -371,7 +369,7 @@ define(['paperdialoghelper'], function (paperDialogHelper) {
window.msSpeechRecognition;
},
- startListening: startListening,
+ startListening: startListening
};
});
\ No newline at end of file