mirix commited on
Commit
7552323
1 Parent(s): 3f85539

Bug fixed, you need to redownload the parquet file as well

Files changed (1) hide show
  1. parquet2csv_wav.py +1 -1
parquet2csv_wav.py CHANGED
@@ -52,7 +52,7 @@ df2 = df2.with_columns(pl.col('ytid_seg').str.replace_all(bad_dir, sample_dir))
52
  def numpy2wav(row):
53
  segment = os.path.splitext(os.path.basename(os.path.normpath(row[0])))[0]
54
  print('PROCESSED:', segment)
55
- write(sample_dir + segment + '.wav', 16000, np.array(row[1]))
56
  return segment
57
 
58
  # Apply the function (this will take a while)
 
52
  def numpy2wav(row):
53
  segment = os.path.splitext(os.path.basename(os.path.normpath(row[0])))[0]
54
  print('PROCESSED:', segment)
55
+ write(sample_dir + segment + '.wav', 16000, np.array(row[1]).astype(np.int16))
56
  return segment
57
 
58
  # Apply the function (this will take a while)