From 9309bfce144e3b3ec09cd88c125d459c8d8fde4a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 1 Mar 2021 22:09:33 +0000 Subject: [PATCH] Recreate session --- epicyon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epicyon.py b/epicyon.py index f1857eb5c..8f8ba80d9 100644 --- a/epicyon.py +++ b/epicyon.py @@ -1929,11 +1929,11 @@ if args.speaker: print('Setting up espeak') from espeak import espeak - session = createSession(proxyType) print('Running speaker for ' + nickname + '@' + domain) prevSay = '' while (1): + session = createSession(proxyType) speakerJson = \ getSpeakerFromServer(baseDir, session, nickname, args.password, domain, port, @@ -1946,7 +1946,7 @@ if args.speaker: pitch = getSpeakerPitch(speakerJson['name']) espeak.set_parameter(espeak.Parameter.Pitch, pitch) rate = getSpeakerRate(speakerJson['name']) - espeak.set_parameter(espeak.Parameter.Rate, 110) + espeak.set_parameter(espeak.Parameter.Rate, rate) srange = getSpeakerRange(speakerJson['name']) espeak.set_parameter(espeak.Parameter.Range, srange) espeak.synth(html.unescape(speakerJson['name'])) @@ -1959,7 +1959,7 @@ if args.speaker: espeak.synth(html.unescape(sayStr)) prevSay = speakerJson['say'] - time.sleep(20) + time.sleep(30) sys.exit() if federationList: