react-text-to-speech
Version:
An easy-to-use React.js library that leverages the Web Speech API to convert text to speech.
8 lines (5 loc) • 680 B
TypeScript
import React from 'react';
import { SpeechProps, HighlightedTextProps } from './types.js';
declare function HighlightedText({ id, children, ...props }: HighlightedTextProps): React.JSX.Element;
declare function Speech({ startBtn, pauseBtn, stopBtn, useStopOverPause, enableConditionalHighlight, props, children, ...hookProps }: SpeechProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
export { HighlightedText, Speech as default };