source: imaps-frontend/node_modules/react-use/esm/useSpeech.d.ts

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 515 bytes
RevLine 
[d565449]1declare type SpeechOptions = {
2 lang: string;
3 voice?: SpeechSynthesisVoice;
4 rate: number;
5 pitch: number;
6 volume: number;
7};
8export declare type ISpeechOptions = Partial<SpeechOptions>;
9export declare type VoiceInfo = Pick<SpeechSynthesisVoice, 'lang' | 'name'>;
10export declare type ISpeechState = SpeechOptions & {
11 isPlaying: boolean;
12 status: string;
13 voiceInfo: VoiceInfo;
14};
15declare const useSpeech: (text: string, options: ISpeechOptions) => ISpeechState;
16export default useSpeech;
Note: See TracBrowser for help on using the repository browser.