Check for text

main
Bob Mottram 2022-06-29 23:14:56 +01:00
parent 9ca7795944
commit fc7dff733e
1 changed files with 2 additions and 0 deletions

View File

@ -342,6 +342,8 @@ def _speaker_mimic3(pitch: int, rate: int, srange: int,
length_scale = str(1.0 - (rate / 200.0))
noise_w = str(srange / 100.0)
text = html.unescape(say_text).replace('"', "'")
if not text:
return
cmd = 'mimic3 -v ' + voice + \
' --length-scale ' + length_scale + \
' --noise-w ' + noise_w + \