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

setDebug

立刻调整 artyom 的debug 模式。

不通过初始化函数的方式动态修改 artyom 的 debug 模式状态。注意artyom 的debug模式已经被禁用了,将无法展示 debug 控制台信息,使用 artyom.setDebug 函数修改之。

// Enable debug
artyom.setDebug(true);

// Disable debug
artyom.setDebug();
// or
artyom.setDebug(false);
PrevioussayRandomNextShutup

Last updated 5 years ago

Was this helpful?