From 058de6543149f4e9c9762797218116a043f197a5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 2 Mar 2021 15:21:24 +0000 Subject: [PATCH] Adjust range --- epicyon.py | 6 ++++-- speaker.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/epicyon.py b/epicyon.py index 1bf414a1e..3a2eee815 100644 --- a/epicyon.py +++ b/epicyon.py @@ -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'] diff --git a/speaker.py b/speaker.py index 094610690..524be28be 100644 --- a/speaker.py +++ b/speaker.py @@ -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)