main
Last change
on this file since d565449 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
|
Line | |
---|
1 | declare type SpeechOptions = {
|
---|
2 | lang: string;
|
---|
3 | voice?: SpeechSynthesisVoice;
|
---|
4 | rate: number;
|
---|
5 | pitch: number;
|
---|
6 | volume: number;
|
---|
7 | };
|
---|
8 | export declare type ISpeechOptions = Partial<SpeechOptions>;
|
---|
9 | export declare type VoiceInfo = Pick<SpeechSynthesisVoice, 'lang' | 'name'>;
|
---|
10 | export declare type ISpeechState = SpeechOptions & {
|
---|
11 | isPlaying: boolean;
|
---|
12 | status: string;
|
---|
13 | voiceInfo: VoiceInfo;
|
---|
14 | };
|
---|
15 | declare const useSpeech: (text: string, options: ISpeechOptions) => ISpeechState;
|
---|
16 | export default useSpeech;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.