fix self.tffytfp in async interpreter

pull/284/head
Ben Xu 7 months ago
parent 72f41ad760
commit 1c4be961c2

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

Loading…
Cancel
Save