mirror of https://gitlab.com/bashrc2/epicyon
Adjust range
parent
8cf1cff517
commit
058de65431
|
@ -1967,7 +1967,8 @@ if args.speaker:
|
|||
'-r ' + str(rate) + \
|
||||
' -p ' + str(pitch) + ' "' + \
|
||||
html.unescape(nameStr) + '"'
|
||||
print(speakerCmd)
|
||||
if args.debug:
|
||||
print(speakerCmd)
|
||||
os.system(speakerCmd)
|
||||
time.sleep(3)
|
||||
|
||||
|
@ -1986,7 +1987,8 @@ if args.speaker:
|
|||
'-r ' + str(rate) + \
|
||||
' -p ' + str(pitch) + ' "' + \
|
||||
html.unescape(sayStr) + '"'
|
||||
print(speakerCmd)
|
||||
if args.debug:
|
||||
print(speakerCmd)
|
||||
os.system(speakerCmd)
|
||||
|
||||
prevSay = speakerJson['say']
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue