jjery2243542 / voice_conversion

246 stars 67 forks source link

IndexError: list index out of range #11

Closed Husnain08 closed 5 years ago

Husnain08 commented 5 years ago

When I run the make_dataset_vctk.py script, I get the following error. I am using the following file as the speaker-info.txt. The error message is also attached to this. Am I missing something? speaker-info.txt mistake

jjery2243542 commented 5 years ago

No, the speaker-info.txt is provided by VCTK, not this list.

Husnain08 commented 5 years ago

This solved my problem. Now I am using this file and it's also giving me a strange error. Can you please take a look? speaker-info.txt ms

Husnain08 commented 5 years ago

@jjery2243542 I figured out the solution. In the preprocessing file, you used the following speaker_id, uttid = re.match(r'p(\d+)(\d+).wav', (sub_filename)).groups() However, re.match checks for a match only at the beginning of the string which is not the case. Just change this line to speaker_id, uttid = re.search(r'p(\d+)(\d+).wav', str(sub_filename)).groups() And this problem is solved