Spaces:
Running
Running
Update main.ts
Browse files
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("
|
24 |
-
rate = 0.
|
25 |
-
pitch = 0.
|
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":
|