Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 281 Bytes

useSpeech.md

File metadata and controls

18 lines (12 loc) · 281 Bytes

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