mirror of https://gitlab.com/bashrc2/epicyon
Adjust range
parent
8cf1cff517
commit
058de65431
|
@ -1967,7 +1967,8 @@ if args.speaker:
|
||||||
'-r ' + str(rate) + \
|
'-r ' + str(rate) + \
|
||||||
' -p ' + str(pitch) + ' "' + \
|
' -p ' + str(pitch) + ' "' + \
|
||||||
html.unescape(nameStr) + '"'
|
html.unescape(nameStr) + '"'
|
||||||
print(speakerCmd)
|
if args.debug:
|
||||||
|
print(speakerCmd)
|
||||||
os.system(speakerCmd)
|
os.system(speakerCmd)
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
|
|
||||||
|
@ -1986,7 +1987,8 @@ if args.speaker:
|
||||||
'-r ' + str(rate) + \
|
'-r ' + str(rate) + \
|
||||||
' -p ' + str(pitch) + ' "' + \
|
' -p ' + str(pitch) + ' "' + \
|
||||||
html.unescape(sayStr) + '"'
|
html.unescape(sayStr) + '"'
|
||||||
print(speakerCmd)
|
if args.debug:
|
||||||
|
print(speakerCmd)
|
||||||
os.system(speakerCmd)
|
os.system(speakerCmd)
|
||||||
|
|
||||||
prevSay = speakerJson['say']
|
prevSay = speakerJson['say']
|
||||||
|
|
|
@ -18,7 +18,7 @@ def getSpeakerPitch(displayName: str, screenreader: str) -> int:
|
||||||
"""
|
"""
|
||||||
random.seed(displayName)
|
random.seed(displayName)
|
||||||
if screenreader == 'picospeaker':
|
if screenreader == 'picospeaker':
|
||||||
return random.randint(-9, 3)
|
return random.randint(-8, 3)
|
||||||
return random.randint(1, 100)
|
return random.randint(1, 100)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue