Skip to content

Commit b0a5c00

Browse files
authored
Merge pull request #369 from Resgrid/develop
RE1-T115 TTS fixes
2 parents 878add7 + 136bd58 commit b0a5c00

6 files changed

Lines changed: 626 additions & 586 deletions

File tree

Core/Resgrid.Config/TtsConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static class TtsConfig
2525
public static string S3PublicBaseUrl = "";
2626

2727
public static string DefaultVoice = "en-us+klatt4";
28-
public static int DefaultSpeed = 165;
28+
public static int DefaultSpeed = 150;
2929
public static int MaxConcurrentGenerations = 4;
3030
public static int MaxTextLength = 1000;
3131
public static string PiperExecutable = "piper";

Tests/Resgrid.Tests/Web/Tts/TtsServiceTests.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ public void create_piper_start_info_should_use_english_model_for_english_voices(
253253
"--output_file",
254254
"/tmp/raw.wav",
255255
"--length-scale",
256-
"1.06");
256+
"1.06",
257+
"--sentence-silence",
258+
"0.0");
257259
}
258260

259261
[Test]
@@ -272,7 +274,9 @@ public void create_piper_start_info_should_fallback_to_default_model_for_unmappe
272274
"--output_file",
273275
"/tmp/raw.wav",
274276
"--length-scale",
275-
"1.06");
277+
"1.06",
278+
"--sentence-silence",
279+
"0.0");
276280
}
277281

278282
[Test]
@@ -290,7 +294,9 @@ public void create_piper_start_info_should_adjust_length_scale_for_speed()
290294
"--output_file",
291295
"/tmp/raw.wav",
292296
"--length-scale",
293-
"0.50");
297+
"0.50",
298+
"--sentence-silence",
299+
"0.0");
294300
}
295301

296302
[Test]

0 commit comments

Comments
 (0)