mirror of https://gitlab.com/bashrc2/epicyon
Change rates for mimic3
parent
2601fd2e1e
commit
f6b2fed3f5
|
@ -351,7 +351,7 @@ def _speaker_mimic3(pitch: int, rate: int, srange: int,
|
||||||
voice = 'en_US/ljspeech_low'
|
voice = 'en_US/ljspeech_low'
|
||||||
if pitch > 75:
|
if pitch > 75:
|
||||||
voice = 'en_US/vctk_low'
|
voice = 'en_US/vctk_low'
|
||||||
length_scale = str(1.0 - (rate / 200.0))
|
length_scale = str(1.0 - (rate / 600.0))
|
||||||
if srange > 100:
|
if srange > 100:
|
||||||
srange = 100
|
srange = 100
|
||||||
noise_w = str(srange / 100.0)
|
noise_w = str(srange / 100.0)
|
||||||
|
@ -369,7 +369,6 @@ def _speaker_mimic3(pitch: int, rate: int, srange: int,
|
||||||
except OSError as ex:
|
except OSError as ex:
|
||||||
print('EX: unable to play ' + audio_filename + ' ' + str(ex))
|
print('EX: unable to play ' + audio_filename + ' ' + str(ex))
|
||||||
_play_sound(audio_filename)
|
_play_sound(audio_filename)
|
||||||
time.sleep(4)
|
|
||||||
|
|
||||||
|
|
||||||
def _speaker_picospeaker(pitch: int, rate: int, system_language: str,
|
def _speaker_picospeaker(pitch: int, rate: int, system_language: str,
|
||||||
|
|
Loading…
Reference in New Issue