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

emptyCommands

移除artyom中所有已加载的命令

就像你可以向artyom中添加命令一样,你也可以移除他们。使用 emptyCommands 方法所有已加载的命令:

let artyom = new Artyom();

//Clear all the available commands of artyom
artyom.emptyCommands();

//Then retrieve 
var commands = artyom.getAvailableCommands();
console.log(commands); // Ouputs : []
PreviousdeviceNextfatality

Last updated 5 years ago

Was this helpful?