rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
19 lines • 456 B
TypeScript
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 };
//# sourceMappingURL=useSpeech.d.ts.map