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

recognizingSupported

验证浏览器是否支持 WebkitSpeechRecognition API。

WebkitSpeechRecognition 仅在Google Chrome 25及更高版本中允许对语音识别功能进行控制和调整。

可以使用artyom.recognizingSupported在浏览器中验证artyom 能否提供该API:

if(artyom.recognizingSupported()){
   // Artyom can process commands
}else{
   // This browser doesn't support webkitSpeechRecognition
}
PreviousonNextredirectRecognizedTextOutput

Last updated 5 years ago

Was this helpful?