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

Automatically convert audio to mono, add more helpful error messages #166

Merged
merged 6 commits into from
Nov 20, 2024

Conversation

eginhard
Copy link
Member

Audio is now automatically converted to mono (using librosa, which averages all channels) and a warning is shown for non-mono files. Fixes #153

I also added more helpful error messages for these common issues:

  • passing a custom formatter name to the dataset config
  • loading XTTS checkpoint from a folder that doesn't contain a vocab.json file

I refactored the audio processing code a bit to deduplicate, improve type hints and fix lint issues.

@eginhard eginhard merged commit 312593e into dev Nov 20, 2024
36 checks passed
@eginhard eginhard deleted the error-messages branch November 20, 2024 10:21
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.

Unclear error message with multi-channel audio
2 participants