react-use/docs/useSpeech.md
2019-04-02 20:02:13 +11:00

21 lines
293 B
Markdown

# `useSpeech`
React UI hook that synthesizes human voice that speaks a given string.
## Usage
```jsx
import {useSpeech} from 'react-use';
const Demo = () => {
const state = useSpeech('Hello world!');
return (
<pre>
{JSON.stringify(state, null, 2)}
</pre>
);
};
```