ml-stuttering-events-dataset
ml-stuttering-events-dataset copied to clipboard
fix: resolve TypeError in download_audio.py
Description
I encountered a TypeError while using the np.loadtxt function in the library. The error message stated: "Text reading control character must be a single unicode character or None; but got: ','". This issue arises due to a change in how np.loadtxt handles control characters in the text.
Solution
To resolve this issue, I replaced the usage of np.loadtxt with np.genfromtxt. Unlike np.loadtxt, np.genfromtxt can gracefully handle control characters in the text and prevents the TypeError.