1.2.8 • Published 7 years ago
react-speech-recognition-status v1.2.8
React Speech Recognition Status
React component useful to display the speech recognition status

Install
npm install react-speech-recognition-statusRequirements
NPM modules
>=react@15>=react-dom@15>=prop-types@15
Styles
font-awesomehas to be loaded
Usage
import SpeechRecognitionStatus from 'react-speech-recognition-status';
const SpeechRecognitionStatusComponent = <SpeechRecognitionStatus
contextName='Foo'
recording
final
text='hello world'
/>Supported Options
contextName(string): Displays a label at the left of the transcriptionerror(bool): When istruedisplays an error iconconnecting(bool): When istruedisplays a connecting iconrecording(bool): When istruedisplays a mic iconfinal(bool): When istrueadds a classname'final'to the text containertext(string): Displays the given transcription into the text containercompact(bool): When istruedisplays compacted versionvolume(number): Whenrecordingistruethe mic icon shows the volume level