Change rates for mimic3

main
Bob Mottram 2022-06-30 12:49:37 +01:00
parent 2601fd2e1e
commit f6b2fed3f5
1 changed files with 1 additions and 2 deletions

View File

@ -351,7 +351,7 @@ def _speaker_mimic3(pitch: int, rate: int, srange: int,
voice = 'en_US/ljspeech_low'
if pitch > 75:
voice = 'en_US/vctk_low'
length_scale = str(1.0 - (rate / 200.0))
length_scale = str(1.0 - (rate / 600.0))
if srange > 100:
srange = 100
noise_w = str(srange / 100.0)
@ -369,7 +369,6 @@ def _speaker_mimic3(pitch: int, rate: int, srange: int,
except OSError as ex:
print('EX: unable to play ' + audio_filename + ' ' + str(ex))
_play_sound(audio_filename)
time.sleep(4)
def _speaker_picospeaker(pitch: int, rate: int, system_language: str,