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

AssertionError: Minimum of 4 sample datapoints is required #43

Open
ZXTube opened this issue Sep 6, 2023 · 1 comment
Open

AssertionError: Minimum of 4 sample datapoints is required #43

ZXTube opened this issue Sep 6, 2023 · 1 comment

Comments

@ZXTube
Copy link

ZXTube commented Sep 6, 2023

I made my ref using generate_reference but for some reason the _ref file it made always had an empty list, so I opened the generate_reference.py file to find out that only .mp3 and .wav files are searched for, while I had .m4a files, so please make some exception to say that.

Sorry I don't know how to make pull requests.

line 56, generate_reference.py:

audio_files = [
        *glob.glob(input_dir+"/*.mp3"),
        *glob.glob(input_dir+"/*.wav")
    ]

if len(audio_files) < 4:
    raise(Exception("Not enough audio files provided, keep in mind that only .mp3 and .wav files are supported"))
else:
    print(len(audio_files), "audio files were found, keep in mind that only .mp3 and .wav files are supported")

Thank you.

@TheSeriousProgrammer
Copy link
Contributor

sure, make sense will include the same in the next rollouts. Thanks for the contribution!!

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

No branches or pull requests

2 participants