r/PythonProjects2 • u/SmartKey001 • 6h ago
[Python] - Code review request for TWIN AI’s speech and avatar pipeline
Hey everyone! I’d appreciate a code review of TWIN AI, an open-source Windows app that answers questions using a CV and project notes. Replies can be delivered as text, speech, or a lip-synced avatar.
I’m looking for feedback on how the Python backend delivers a spoken reply. The goal is to start playback as soon as the first sentence is ready, keep later sentences flowing, and keep the avatar in sync.
Two things I’d love another developer’s eyes on:
- If a later sentence takes longer to generate, do you see a place where audio could stall or video could fall behind?
- If the user stops playback midway and starts a new reply, what would you test to make sure audio from the previous reply can’t leak through?
Even one observation about a specific function or a missing test case would help. Thanks!