Artyom.js 中文翻译
  • Artyom
  • FAQ
  • 翻译相关
  • 开始
    • 简介
    • 必要条件
    • Changelog
  • API
    • isObeying
    • addCommands
    • clearGarbageCollection
    • debug
    • detectErrors
    • device
    • emptyCommands
    • fatality
    • getAvailableCommands
    • getLanguage
    • getProperties
    • getVoices
    • initialize
    • isRecognizing
    • isSpeaking
    • newDictation
    • newPrompt
    • obey
    • on
    • recognizingSupported
    • redirectRecognizedTextOutput
    • remoteProcessorService
    • removeCommands
    • repeatLastSay
    • restart
    • say
    • sayRandom
    • setDebug
    • Shutup
    • simulateInstruction
    • speechSupported
    • when
Powered by GitBook
On this page

Was this helpful?

  1. API

fatality

停止识别的命令

该方法允许用户在任何时间终止语音识别。与 initialize 方法一样实现 promises 并只会停止语音识别,而并不会停止语音合成的队列(如果想要终止发音说话,则需要使用shutUp函数)。

var artyom = new Artyom();

artyom.initialize({
    lang:"en-GB",
    debug:true, //Show what recognizes in the Console
    listen:true, //Start listening after this
    speed:0.8, // Talk a little bit slow
});

/**
 * After of 5 seconds, stop artyom.
 */
setTimeout(function(){
    artyom.fatality().then(() => {
        console.log("Artyom succesfully stopped !");
    });
}, 5000);
PreviousemptyCommandsNextgetAvailableCommands

Last updated 5 years ago

Was this helpful?