mirror of
https://github.com/streamich/react-use.git
synced 2026-01-25 14:17:16 +00:00
14 lines
309 B
TypeScript
14 lines
309 B
TypeScript
export interface SpeechState {
|
|
isPlaying: boolean;
|
|
volume: number;
|
|
}
|
|
export interface SpeechOptions {
|
|
lang?: any;
|
|
pitch?: number;
|
|
rate?: number;
|
|
voice?: any;
|
|
volume?: number;
|
|
}
|
|
declare const useSpeech: (text: string, opts?: SpeechOptions) => SpeechState;
|
|
export default useSpeech;
|