mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
190 lines
9.6 KiB
JavaScript
190 lines
9.6 KiB
JavaScript
// SpeechRecognition对象
|
|
bodavm.memory.notDefined['SpeechRecognition'] = function SpeechRecognition() {};
|
|
bodavm.toolsFunc.safeProto(bodavm.memory.notDefined['SpeechRecognition'], "SpeechRecognition");
|
|
bodavm.memory.notDefined['SpeechRecognition'].prototype.__proto__ = EventTarget.prototype;
|
|
bodavm.memory.notDefined['SpeechRecognition'].__proto__ = EventTarget;
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "grammars", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function grammars() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "grammars_get", arguments);
|
|
},
|
|
set: function grammars() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "grammars_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "lang", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function lang() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "lang_get", arguments);
|
|
},
|
|
set: function lang() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "lang_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "continuous", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function continuous() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "continuous_get", arguments);
|
|
},
|
|
set: function continuous() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "continuous_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "interimResults", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function interimResults() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "interimResults_get", arguments);
|
|
},
|
|
set: function interimResults() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "interimResults_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "maxAlternatives", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function maxAlternatives() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "maxAlternatives_get", arguments);
|
|
},
|
|
set: function maxAlternatives() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "maxAlternatives_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "onaudiostart", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onaudiostart() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onaudiostart_get", arguments);
|
|
},
|
|
set: function onaudiostart() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onaudiostart_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "onsoundstart", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onsoundstart() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onsoundstart_get", arguments);
|
|
},
|
|
set: function onsoundstart() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onsoundstart_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "onspeechstart", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onspeechstart() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onspeechstart_get", arguments);
|
|
},
|
|
set: function onspeechstart() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onspeechstart_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "onspeechend", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onspeechend() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onspeechend_get", arguments);
|
|
},
|
|
set: function onspeechend() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onspeechend_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "onsoundend", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onsoundend() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onsoundend_get", arguments);
|
|
},
|
|
set: function onsoundend() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onsoundend_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "onaudioend", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onaudioend() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onaudioend_get", arguments);
|
|
},
|
|
set: function onaudioend() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onaudioend_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "onresult", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onresult() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onresult_get", arguments);
|
|
},
|
|
set: function onresult() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onresult_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "onnomatch", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onnomatch() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onnomatch_get", arguments);
|
|
},
|
|
set: function onnomatch() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onnomatch_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "onerror", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onerror() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onerror_get", arguments);
|
|
},
|
|
set: function onerror() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onerror_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "onstart", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onstart() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onstart_get", arguments);
|
|
},
|
|
set: function onstart() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onstart_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "onend", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function onend() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onend_get", arguments);
|
|
},
|
|
set: function onend() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "onend_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "abort", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: function abort() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "abort", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "start", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: function start() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "start", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['SpeechRecognition'].prototype, "stop", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
value: function stop() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['SpeechRecognition'].prototype, "SpeechRecognition", "stop", arguments);
|
|
}
|
|
});
|
|
webkitSpeechRecognition = bodavm.memory.notDefined['SpeechRecognition']; |