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

speechSupported

验证 speechSynthesis 是否被当前浏览器支持。

SpeechSynthesis接口是用于控制文本到语音输出的脚本化Web API。该函数允许你检查 Speech Synthesis API 是否在当前浏览器中使用。

if(artyom.speechSupported()){
  // Use artyom.say("Text");
}else{
  // Unsupported :/
}
PrevioussimulateInstructionNextwhen

Last updated 5 years ago

Was this helpful?