From 1c4be961c278e75f1363aebdf4d249056e4ded2a Mon Sep 17 00:00:00 2001 From: Ben Xu Date: Mon, 24 Jun 2024 12:58:16 -0400 Subject: [PATCH] fix self.tffytfp in async interpreter --- software/source/server/async_interpreter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/source/server/async_interpreter.py b/software/source/server/async_interpreter.py index 7b3f6ae..0cd2ef7 100644 --- a/software/source/server/async_interpreter.py +++ b/software/source/server/async_interpreter.py @@ -132,8 +132,8 @@ class AsyncInterpreter: # Experimental: The AI voice sounds better with replacements like these, but it should happen at the TTS layer # content = content.replace(". ", ". ... ").replace(", ", ", ... ").replace("!", "! ... ").replace("?", "? ... ") # print("yielding ", content) - if self.time_from_first_yield_to_first_put is None: - self.time_from_first_yield_to_first_put = time.time() + if self.tffytfp is None: + self.tffytfp = time.time() yield content