mirror of https://gitlab.com/bashrc2/epicyon
More sensible ranges
parent
b83edb26a4
commit
8cf1cff517
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue