gnilets commited on
Commit
4bde95a
·
verified ·
1 Parent(s): ea8410f

Update main.ts

Browse files
Files changed (1) hide show
  1. main.ts +1 -1
main.ts CHANGED
@@ -24,7 +24,7 @@ async function synthesizeSpeech(model: string, voice: string, text: string) {
24
  rate = 0.0;
25
  pitch = 0.0;
26
 
27
- switch (voice) {
28
  case "ava":
29
  voiceName = "en-US-AvaMultilingualNeural";
30
  break;
 
24
  rate = 0.0;
25
  pitch = 0.0;
26
 
27
+ switch (model) {
28
  case "ava":
29
  voiceName = "en-US-AvaMultilingualNeural";
30
  break;