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
  • 网络连接
  • 迄今为止,Artyom 只能在 Google Chrome 上使用
  • 语音识别 Speech Recognition
  • 语音合成 Speech Synthesis

Was this helpful?

  1. 开始

必要条件

为了保证 Artyom.js 正常使用,浏览器必须满足一些要求。

网络连接

语音对话需要通过 webkitSpeechRecognition 对象转化为文本,因此,要发出语音命令,将需要有效的Internet连接。

语音合成(artyom.say)可以在没有互联网连接的情况下工作,但是将使用浏览器的本地语音。

迄今为止,Artyom 只能在 Google Chrome 上使用

简而言之,如果需要给用户提供全部的 Artyom 功能,他需要使用 Google Chrome 浏览器。

Artyom 使用 Web Speech API, Speech Recognition 和 Speech Synthesis。Web Speech API 允许你将语音数据合并到Web应用程序中。Web Speech API 包含两个部分:SpeechSynthesis(文本 -> 语音)和 SpeechRecognition(异步语音识别)

语音识别 Speech Recognition

为了处理语音命令,Artyom 依赖于 Window的对象webkitSpeechRecognition。而这个功能只能在 Google Chrome(Android和桌面)上可用。

语音合成 Speech Synthesis

artyom 使用 Window 的对象 speechSynthesis 合成文本语音。该特性的可用性因设备的不同而不同。该功能可以在 Google Chrome(Android 或 桌面版)使用,还可以在 Safari 上使用。

Previous简介NextChangelog

Last updated 5 years ago

Was this helpful?