File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
libs/chat-box/src/lib/services Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " webapp " ,
2
+ "name" : " NGX Starter Kit " ,
3
3
"short_name" : " webapp" ,
4
4
"theme_color" : " #1976d2" ,
5
5
"background_color" : " #fafafa" ,
48
48
"type" : " image/png"
49
49
}
50
50
]
51
- }
51
+ }
Original file line number Diff line number Diff line change @@ -24,9 +24,12 @@ export class TextToSpeechService {
24
24
}
25
25
26
26
public async getVoiceList ( ) : Promise < SpeechSynthesisVoice [ ] > {
27
- await new Promise ( ( resolve , reject ) => {
28
- this . speechSynthesis . addEventListener ( 'voiceschanged' , resolve ) ;
29
- } ) ;
27
+
28
+ if ( 'onvoiceschanged' in speechSynthesis ) {
29
+ await new Promise ( ( resolve , reject ) => {
30
+ this . speechSynthesis . addEventListener ( 'voiceschanged' , resolve ) ;
31
+ } ) ;
32
+ }
30
33
return this . speechSynthesis . getVoices ( ) ;
31
34
32
35
// return new Promise((resolve: any, reject: any): void => {
You can’t perform that action at this time.
0 commit comments