Skip to content

Conversation

@tjb4578
Copy link
Contributor

@tjb4578 tjb4578 commented Nov 16, 2024

generate_stream() was processing the final chunk twice, causing it to repeat the last word. I removed the redundancy, but needed to add logic to handle an edge case that would occur if the full audio chunk was smaller than the chunk size. I'm not sure if such an edge case is even possible but I threw it in just in case.

Handle socket server edge case
@SWivid SWivid self-requested a review November 16, 2024 04:52
@SWivid
Copy link
Owner

SWivid commented Nov 16, 2024

Hi @tjb4578 many thanks~

Thought probably will have edge case encountered in actual usage.
Since there are many people using this, will see if someone is willing to test.

cc @kunci115 @moseshu @amabilee @duanx123 @atlonxp @hjj-lmx
Thanks in advance!

Copy link
Contributor

@kunci115 kunci115 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Reviewed and tested

@SWivid SWivid removed their request for review November 18, 2024 08:24
@SWivid SWivid merged commit 5cc0253 into SWivid:main Nov 18, 2024
1 check passed
spygaurad pushed a commit to spygaurad/F5-TTS that referenced this pull request Feb 28, 2025
…ted-final-chunk

Removed redundant final chunk logic from socket_server.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants