Skip to content

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