{"repo":"JamesBrill/react-speech-recognition","free":true,"listed":false,"github":"https://github.com/JamesBrill/react-speech-recognition","clone":"git clone https://github.com/JamesBrill/react-speech-recognition.git","description":"💬Speech recognition for your React app","language":"JavaScript","stars":842,"topics":["react","speech-recognition","speech-to-text"],"license":"MIT","category":"ui-components","readme_excerpt":"react-speech-recognition A React hook that converts speech from the microphone to text and makes it available to your React components. How it works useSpeechRecognition is a React hook that gives a component access to a transcript of speech picked up from the user's microphone. SpeechRecognition manages the global state of the Web Speech API, exposing functions to turn the microphone on and off. Under the hood, it uses Web Speech API. Note that browser support for this API is currently limited, with Chrome having the best experience - see supported browsers for more information. This version requires React 16.8 so that React hooks can be used. If you're used to version 2.x of react-speech-recognition or want to use an older version of React, you can see the old README here. If you want to migrate to version 3.x, see the migration guide here. Useful links Basic example Why you should use a polyfill with this library Cross-browser example Supported browsers Polyfills API docs Troubleshooting Version 3 migration guide TypeScript declaration file in DefinitelyTyped Installation To install: To import in your React code: Basic example The most basic example of a component using this hook would be: You can see more examples in the example React app attached to this repo. See Developing. Why you should use a polyfill with this library By default, speech recognition is not supported in all browsers, with the best native experience being available on desktop Chrome. To avoid the limit","default_branch":null,"files":null,"tree":[],"storefront":"/r/JamesBrill","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JamesBrill/react-speech-recognition/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}