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

Update main.ts

Browse files
Files changed (1) hide show
  1. main.ts +3 -3
main.ts CHANGED
@@ -20,9 +20,9 @@ async function synthesizeSpeech(model: string, voice: string, text: string) {
20
  let rate = 0;
21
  let pitch = 0;
22
 
23
- if (model.includes("tts")) {
24
- rate = 0.1;
25
- pitch = 0.2;
26
 
27
  switch (voice) {
28
  case "ava":
 
20
  let rate = 0;
21
  let pitch = 0;
22
 
23
+ if (!model.includes("Neural")) {
24
+ rate = 0.0;
25
+ pitch = 0.0;
26
 
27
  switch (voice) {
28
  case "ava":