mirror of
https://github.com/streamich/react-use.git
synced 2025-12-08 18:02:14 +00:00
293 B
293 B
useSpeech
React UI hook that synthesizes human voice that speaks a given string.
Usage
import {useSpeech} from 'react-use';
const Demo = () => {
const state = useSpeech('Hello world!');
return (
<pre>
{JSON.stringify(state, null, 2)}
</pre>
);
};