Use srange

main
Bob Mottram 2022-06-29 23:09:44 +01:00
parent b048e77381
commit ec2db6a882
1 changed files with 2 additions and 2 deletions

View File

@ -340,7 +340,7 @@ def _speaker_mimic3(pitch: int, rate: int, srange: int,
if pitch > 75:
voice = 'en_US/vctk_low'
length_scale = str(1.0 - (rate / 200.0))
noise_w = str(float(srange) / 100.0)
noise_w = str(srange / 100.0)
text = html.unescape(say_text).replace('"', "'")
cmd = 'mimic3 -v ' + voice + \
' --length-scale ' + length_scale + \
@ -420,7 +420,7 @@ def _text_to_speech(say_str: str, screenreader: str,
elif screenreader == 'picospeaker':
_speaker_picospeaker(pitch, rate, system_language, say_str)
elif screenreader == 'mimic3':
_speaker_mimic3(pitch, rate, system_language, say_str)
_speaker_mimic3(pitch, rate, srange, say_str)
def _say_command(content: str, say_str: str, screenreader: str,