Adjust range

merge-requests/30/head
Bob Mottram 2021-03-02 15:21:24 +00:00
parent 8cf1cff517
commit 058de65431
2 changed files with 5 additions and 3 deletions

View File

@ -1967,6 +1967,7 @@ if args.speaker:
'-r ' + str(rate) + \
' -p ' + str(pitch) + ' "' + \
html.unescape(nameStr) + '"'
if args.debug:
print(speakerCmd)
os.system(speakerCmd)
time.sleep(3)
@ -1986,6 +1987,7 @@ if args.speaker:
'-r ' + str(rate) + \
' -p ' + str(pitch) + ' "' + \
html.unescape(sayStr) + '"'
if args.debug:
print(speakerCmd)
os.system(speakerCmd)

View File

@ -18,7 +18,7 @@ def getSpeakerPitch(displayName: str, screenreader: str) -> int:
"""
random.seed(displayName)
if screenreader == 'picospeaker':
return random.randint(-9, 3)
return random.randint(-8, 3)
return random.randint(1, 100)