anpham2 commited on
Commit
ccd9136
·
verified ·
1 Parent(s): bb0246f

Upload README (1).md

Browse files
Files changed (1) hide show
  1. README (1).md +64 -0
README (1).md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 1. Data Cleaning and Validation:
2
+ - Samples containing Ruby tag as well as ■ are removed by using regex on {} and ruby ( the amount of samples removed nearly 100 samples)
3
+ - audio_path/genshin/genshin_english/audio/"The_Captain"_112313.wav: this type of audio can run, I check by using this code:
4
+
5
+ ```python
6
+ import os
7
+ import librosa
8
+ import matplotlib.pyplot as plt
9
+ import numpy as np
10
+ if os.path.exists(path):
11
+
12
+ # Load the audio and resample to 24,000 Hz
13
+ wave, sr = librosa.load(path, sr=24000)
14
+
15
+ # Print basic info
16
+ print(f"Sample rate: {sr}")
17
+ print(f"Waveform shape: {wave.shape}")
18
+
19
+ print(f"Duration: {len(wave) / sr:.2f} seconds")
20
+
21
+ # Optional: Plot the waveform
22
+ plt.figure(figsize=(10, 4))
23
+ plt.plot(np.linspace(0, len(wave) / sr, num=len(wave)), wave)
24
+ plt.title("Waveform")
25
+ plt.xlabel("Time (s)")
26
+ plt.ylabel("Amplitude")
27
+ plt.tight_layout()
28
+ plt.show()
29
+ ```
30
+
31
+ # 2. CSV and Phoneme Files:
32
+ - all_EN_game_v2.csv: this is the final version containing path,transcript, speaker_id (not number). Game are wutheringWaves_Dataset_new, honkai_starail and genshin
33
+ - all_JA_game_v2.csv: this is the final version containing path,transcript, speaker_id (not number). Game are wutheringWaves_Dataset_new, honkai_starail and genshin and Gal_game.
34
+ - JA_phoneme.txt: this is the final version containing path,phoneme, speaker_id_name ( number). This file is maken from all_JA_game_v2.csv
35
+ - EN_phoneme.txt: this is the final version containing path,phoneme, speaker_id_name ( number). This file is maken from all_EN_game_v2.csv
36
+
37
+ # 3. Directory Structure and Dataset Repositories
38
+ - The root path start from Data_Speech and the path given in all_JA_game_v2, all_EN_game_v2.txt start from audio_path
39
+ - There are 2 responsity
40
+ + Path 1: https://huggingface.co/datasets/NoWaifuNoLaifu/TTS_dataset
41
+ ![alt text](image.png)
42
+ + Path 2: https://huggingface.co/datasets/anpham2/genshin_impact
43
+ ![alt text](image-1.png)
44
+
45
+ - Please construct data as follow:
46
+
47
+ Please pay attention to audio_2s.zip, you first need to extract gal_game_JA.zip first, then move audio_2s.zip into folder gal_game_JA and extract audio_2s.zip.
48
+
49
+ All the zip file including wutheringWaves_Dataset_new.zip, genshin_japanese.zip, genshin_english.zip, honkai_starail.zip and gal_game_JA.zip just need to be added at right place then etract, nothing more.
50
+
51
+ ```
52
+ audio_path/
53
+ |____wutheringWaves_Dataset_new.zip
54
+ |
55
+ |____genshin/
56
+ | |____genshin_japanese.zip
57
+ | |____genshin_english.zip
58
+ |
59
+ |
60
+ |____honkai_starail.zip
61
+ |
62
+ |____gal_game_JA.zip
63
+ |____audio_2s.zip
64
+ ```