UNPKG

rooks

Version:

Collection of awesome react hooks

19 lines (18 loc) 417 B
interface UseSpeechOptions { text: string; language?: string; voiceURI?: string; onEnd?: () => void; volume?: number; pitch?: number; rate?: number; } interface SpeechControls { start: () => void; pause: () => void; resume: () => void; stop: () => void; isPlaying: boolean; } declare function useSpeech(options: UseSpeechOptions): SpeechControls; export { useSpeech };