docs: ✏️ improve useSpeech docs

This commit is contained in:
streamich 2018-10-28 11:28:56 +01:00
parent 3b971a2297
commit 2cdb09e865
3 changed files with 7 additions and 3 deletions

View File

@ -47,7 +47,7 @@
<br/>
- [__UI__](./docs/UI.md)
- [`useAudio`](./docs/useAudio.md) &mdash; plays audio and exposes its controls.
- [`useSpeech`](./docs/useSpeech.md) &mdash; synthesizes speech from text string.
- [`useSpeech`](./docs/useSpeech.md) &mdash; synthesizes speech from a text string.
<br/>
<br/>
- [__Animations__](./docs/Animations.md)

View File

@ -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>
);
};
```

View File

@ -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>
);
};