fix self.tffytfp in async interpreter

This commit is contained in:
Ben Xu 2024-06-24 12:58:16 -04:00
parent 72f41ad760
commit 1c4be961c2
1 changed files with 2 additions and 2 deletions

View File

@ -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