More sensible ranges

merge-requests/21/head
Bob Mottram 2021-03-02 15:19:34 +00:00
parent b83edb26a4
commit 8cf1cff517
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ def getSpeakerPitch(displayName: str, screenreader: str) -> int:
"""
random.seed(displayName)
if screenreader == 'picospeaker':
return random.randint(-79, 39)
return random.randint(-9, 3)
return random.randint(1, 100)
@ -27,7 +27,7 @@ def getSpeakerRate(displayName: str, screenreader: str) -> int:
"""
random.seed(displayName)
if screenreader == 'picospeaker':
return random.randint(-90, 9900)
return random.randint(0, 20)
return random.randint(50, 120)