Update ears.py
Browse files
ears.py
CHANGED
|
@@ -67,13 +67,3 @@ class EarsDataset(datasets.GeneratorBasedBuilder):
|
|
| 67 |
'audio': {'array': audio_array, 'sampling_rate': sampling_rate},
|
| 68 |
'spk_id': spk_id, # Include spk_id for train set
|
| 69 |
}
|
| 70 |
-
elif "blind_testset" in folder_path.lower():
|
| 71 |
-
# Processing for test set
|
| 72 |
-
for audio_file in os.listdir(folder_path):
|
| 73 |
-
if audio_file.endswith(('.wav', '.mp3')): # Add other extensions if needed
|
| 74 |
-
audio_path = os.path.join(folder_path, audio_file)
|
| 75 |
-
audio_array, sampling_rate = sf.read(audio_path) # Load audio file
|
| 76 |
-
yield audio_file, {
|
| 77 |
-
'audio': {'array': audio_array, 'sampling_rate': sampling_rate},
|
| 78 |
-
# No spk_id for the test set
|
| 79 |
-
}
|
|
|
|
| 67 |
'audio': {'array': audio_array, 'sampling_rate': sampling_rate},
|
| 68 |
'spk_id': spk_id, # Include spk_id for train set
|
| 69 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|