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

Fix: Resolve "IndexError: invalid index to scalar variable" issue #9

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

Conversation

git-pixel22
Copy link

I think the error was caused because the code was written to handle stereo (two-channel) audio data, while the input audio files were mono (single-channel), resulting in an attempt to access non-existent indices for the second channel.

To handle different types of audio formats (mono or stereo) within the convert_to_mono_audio method, you can modify it to check the number of channels and perform different actions accordingly.

Fix #5

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.

IndexError: invalid index to scalar variable.
1 participant