Datasets:
DCNemesis
commited on
Commit
•
14b23e7
1
Parent(s):
9c804a9
fix typo
Browse files
audio-keyword-spotting.py
CHANGED
@@ -122,7 +122,7 @@ class AudioKeywordSpotting(datasets.GeneratorBasedBuilder):
|
|
122 |
def _generate_examples(self, audio_dir, data, split):
|
123 |
for key, row in enumerate(data):
|
124 |
try:
|
125 |
-
tfile = os.path.join(audio_dir,
|
126 |
if not tfile.endswith('.wav'):
|
127 |
os.rename(tfile, tfile + '.wav')
|
128 |
tfile += '.wav'
|
|
|
122 |
def _generate_examples(self, audio_dir, data, split):
|
123 |
for key, row in enumerate(data):
|
124 |
try:
|
125 |
+
tfile = os.path.join(audio_dir, row['file'])
|
126 |
if not tfile.endswith('.wav'):
|
127 |
os.rename(tfile, tfile + '.wav')
|
128 |
tfile += '.wav'
|