[mirotalksfu] - add new voice cmd
هذا الالتزام موجود في:
@@ -1063,7 +1063,7 @@ function isImageURL(url) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function openURL(url, blank = false) {
|
function openURL(url, blank = false) {
|
||||||
blank ? windows.open(url, '_blank') : (window.location.href = url);
|
blank ? window.open(url, '_blank') : (window.location.href = url);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ####################################################
|
// ####################################################
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ const commands = {
|
|||||||
roomLock: 'lock the room',
|
roomLock: 'lock the room',
|
||||||
roomUnlock: 'unlock the room',
|
roomUnlock: 'unlock the room',
|
||||||
about: 'show the about',
|
about: 'show the about',
|
||||||
|
email: 'open the email',
|
||||||
stopRecognition: 'stop the voice recognition',
|
stopRecognition: 'stop the voice recognition',
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -243,6 +244,9 @@ function execVoiceCommands(transcript) {
|
|||||||
printCommand(commands.about);
|
printCommand(commands.about);
|
||||||
aboutButton.click();
|
aboutButton.click();
|
||||||
break;
|
break;
|
||||||
|
case commands.email:
|
||||||
|
openURL('mailto:?subject=&body=', true);
|
||||||
|
break;
|
||||||
case commands.stopRecognition:
|
case commands.stopRecognition:
|
||||||
printCommand(commands.stopRecognition);
|
printCommand(commands.stopRecognition);
|
||||||
chatSpeechStopButton.click();
|
chatSpeechStopButton.click();
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم