dlxj commited on
Commit
0b38772
1 Parent(s): 3e110b1
common_voice_17_0.py CHANGED
@@ -168,8 +168,8 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
168
  arr.append( json.loads(line.strip()) )
169
 
170
  for row in tqdm(arr, desc="Reading metadata..."): # reader
171
- if not row["path"].endswith(".mp3"):
172
- row["path"] += ".mp3"
173
  # accent -> accents in CV 8.0
174
  if "accents" in row:
175
  row["accent"] = row["accents"]
 
168
  arr.append( json.loads(line.strip()) )
169
 
170
  for row in tqdm(arr, desc="Reading metadata..."): # reader
171
+ if not row["path"].endswith(".wav"):
172
+ row["path"] += ".wav"
173
  # accent -> accents in CV 8.0
174
  if "accents" in row:
175
  row["accent"] = row["accents"]
rebuild_dataset.py CHANGED
@@ -1,6 +1,18 @@
1
 
2
  # Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16, 768 kb/s
3
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  import glob, os, re
5
  from pathlib import Path
6
  pth_wavs = glob.glob('/mnt/y/ai/Genshin_Dataset/Genshin4.8_JP/**/*.wav', recursive=True)
 
1
 
2
  # Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16, 768 kb/s
3
 
4
+ """
5
+ rm -rf ~/.cache/huggingface/datasets/dlxjj___common_voice_17_0 &&
6
+ rm -rf ~/.cache/huggingface/modules/datasets_modules/datasets/dlxjj--common_voice_17_0 &&
7
+ rm -rf ~/.cache/huggingface/modules/datasets_modules/datasets/dlxjj--common_voice_17_0.lock &&
8
+ rm -rf ~/.cache/huggingface/datasets/downloads &&
9
+ rm -rf ~/.cache/huggingface/hub/datasets--dlxjj--common_voice_17_0
10
+
11
+ """
12
+
13
+
14
+ # 更新数据集后先删除缓存
15
+
16
  import glob, os, re
17
  from pathlib import Path
18
  pth_wavs = glob.glob('/mnt/y/ai/Genshin_Dataset/Genshin4.8_JP/**/*.wav', recursive=True)
transcript/ja/train.jsonl CHANGED
@@ -1 +1 @@
1
- {"path":"common_voice_ja_19482480.mp3", "sentence":"あれ?ティマイオス、いないみたいだな…", "speaker": "paimon"}
 
1
+ {"path":"common_voice_ja_19482480__.mp3", "sentence":"あれ?ティマイオス、いないみたいだな…", "speaker": "paimon"}