DCNemesis commited on
Commit
14b23e7
1 Parent(s): 9c804a9
Files changed (1) hide show
  1. audio-keyword-spotting.py +1 -1
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, ''.join(row['file'][2:]))
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'