react-speech-kit:用于语音识别和语音合成的React挂钩

时间:2021-04-28 23:57:00
【文件属性】:
文件名称:react-speech-kit:用于语音识别和语音合成的React挂钩
文件大小:147KB
文件格式:ZIP
更新时间:2021-04-28 23:57:00
react speech-synthesis speech-recognition speech-to-text JavaScript React语音套件 :microphone: 用于浏览器内语音识别和语音合成的React挂钩。 目录 安装 yarn add react-speech-kit 范例与示范 一个完整的例子可以在这里找到。 源代码位于examples目录中。 使用语音合成 浏览器的SpeechSynthesis API的react挂钩。 它将选项和控件公开给浏览器中的基础SpeechSynthesis。 用法 import React , { useState } from 'react' ; import { useSpeechSynthesis } from 'react-speech-kit' ; function Example ( ) { const [ value , setValue ] = useState ( '' ) ; const { speak } = useSpeechSynthesis
【文件预览】:
react-speech-kit-master
----.circleci()
--------config.yml(1KB)
----.gitignore(53B)
----README.md(5KB)
----test()
--------useSpeechSynthesis.spec.jsx(5KB)
--------mocks()
--------useSpeechRecognition.spec.jsx(6KB)
--------shared()
----.prettierrc(46B)
----examples()
--------src()
----jest.setup.js(123B)
----.eslintrc(1KB)
----package.json(2KB)
----src()
--------index.js(144B)
--------useSpeechRecognition.js(3KB)
--------useSpeechSynthesis.jsx(2KB)
----.babelrc(34B)
----.npmignore(151B)
----webpack.config.js(965B)
----yarn.lock(325KB)

网友评论