Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use left-padding rather than right-padding for prefix audio #198

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

coezbek
Copy link
Contributor

@coezbek coezbek commented Mar 20, 2025

The existing code uses right-padding of the audio prefix data in case the audio prefix data isn't a multiple of 512 samples.

This might cause an unintended gap between prefix audio and generated audio.

This patch switches to left padding of the audio prefix.

In this patch I also added a 350ms silence prefix which is exactly 30 audio tokens long (30 * 512) to ensure that clipping does not happen and also because the model seems to use roughly 20-25 tokens look-ahead to warm-up.

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.

None yet

1 participant