mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
docs: ✏️ improve useSpeech docs
This commit is contained in:
parent
3b971a2297
commit
2cdb09e865
@ -47,7 +47,7 @@
|
||||
<br/>
|
||||
- [__UI__](./docs/UI.md)
|
||||
- [`useAudio`](./docs/useAudio.md) — plays audio and exposes its controls.
|
||||
- [`useSpeech`](./docs/useSpeech.md) — synthesizes speech from text string.
|
||||
- [`useSpeech`](./docs/useSpeech.md) — synthesizes speech from a text string.
|
||||
<br/>
|
||||
<br/>
|
||||
- [__Animations__](./docs/Animations.md)
|
||||
|
||||
@ -12,7 +12,9 @@ const Demo = () => {
|
||||
const state = useSpeech('Hello world!');
|
||||
|
||||
return (
|
||||
<pre>{JSON.stringify(state, null, 2)}</pre>
|
||||
<pre>
|
||||
{JSON.stringify(state, null, 2)}
|
||||
</pre>
|
||||
);
|
||||
};
|
||||
```
|
||||
|
||||
@ -6,7 +6,9 @@ const Demo = () => {
|
||||
const state = useSpeech('Hello world!');
|
||||
|
||||
return (
|
||||
<pre>{JSON.stringify(state, null, 2)}</pre>
|
||||
<pre>
|
||||
{JSON.stringify(state, null, 2)}
|
||||
</pre>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user