Datasets:
Update NURC-SP_ENTOA_TTS.py
Browse files- NURC-SP_ENTOA_TTS.py +22 -22
NURC-SP_ENTOA_TTS.py
CHANGED
@@ -39,21 +39,21 @@ class NurcSPDataset(GeneratorBasedBuilder):
|
|
39 |
return DatasetInfo(
|
40 |
features=datasets.Features(
|
41 |
{
|
42 |
-
"
|
43 |
-
"
|
44 |
-
"
|
45 |
"start_time": datasets.Value("string"),
|
46 |
"end_time": datasets.Value("string"),
|
|
|
|
|
47 |
"duration": datasets.Value("string"),
|
48 |
-
"
|
49 |
-
"
|
50 |
-
"
|
51 |
-
"variety": datasets.Value("string"),
|
52 |
-
"accent": datasets.Value("string"),
|
53 |
-
"sex": datasets.Value("string"),
|
54 |
"age_range": datasets.Value("string"),
|
55 |
-
"
|
56 |
-
"
|
|
|
57 |
"audio": datasets.Audio(sampling_rate=16_000),
|
58 |
}
|
59 |
)
|
@@ -113,21 +113,21 @@ class NurcSPDataset(GeneratorBasedBuilder):
|
|
113 |
for row in csv_reader:
|
114 |
file_path = Path(row['file_path']).as_posix()
|
115 |
examples[file_path] = {
|
116 |
-
"
|
117 |
-
"
|
118 |
-
"
|
119 |
"start_time": row['start_time'],
|
120 |
"end_time": row['end_time'],
|
|
|
|
|
121 |
"duration": row['duration'],
|
122 |
-
"
|
123 |
-
"
|
124 |
-
"
|
125 |
-
"variety": row['variety'],
|
126 |
-
"accent": row['accent'],
|
127 |
-
"sex": row['sex'],
|
128 |
"age_range": row['age_range'],
|
129 |
-
"
|
130 |
-
"
|
|
|
131 |
}
|
132 |
csv_paths.append(file_path)
|
133 |
|
|
|
39 |
return DatasetInfo(
|
40 |
features=datasets.Features(
|
41 |
{
|
42 |
+
"path": datasets.Value("string"),
|
43 |
+
"name": datasets.Value("string"),
|
44 |
+
"speaker": datasets.Value("string"),
|
45 |
"start_time": datasets.Value("string"),
|
46 |
"end_time": datasets.Value("string"),
|
47 |
+
"normalized_text": datasets.Value("string"),
|
48 |
+
"text": datasets.Value("string"),
|
49 |
"duration": datasets.Value("string"),
|
50 |
+
"type": datasets.Value("string"),
|
51 |
+
"year": datasets.Value("string"),
|
52 |
+
"gender": datasets.Value("string"),
|
|
|
|
|
|
|
53 |
"age_range": datasets.Value("string"),
|
54 |
+
"total_duration": datasets.Value("string"),
|
55 |
+
"quality": datasets.Value("string"),
|
56 |
+
"theme": datasets.Value("string"),
|
57 |
"audio": datasets.Audio(sampling_rate=16_000),
|
58 |
}
|
59 |
)
|
|
|
113 |
for row in csv_reader:
|
114 |
file_path = Path(row['file_path']).as_posix()
|
115 |
examples[file_path] = {
|
116 |
+
"path": row['path'],
|
117 |
+
"name": row['name'],
|
118 |
+
"speaker": row['speaker'],
|
119 |
"start_time": row['start_time'],
|
120 |
"end_time": row['end_time'],
|
121 |
+
"normalized_text": row['normalized_text'],
|
122 |
+
"text": row['text'],
|
123 |
"duration": row['duration'],
|
124 |
+
"type": row['type'],
|
125 |
+
"year": row['year'],
|
126 |
+
"gender": row['gender'],
|
|
|
|
|
|
|
127 |
"age_range": row['age_range'],
|
128 |
+
"total_duration": row['total_duration'],
|
129 |
+
"quality": row['quality'],
|
130 |
+
"theme": row['theme'],
|
131 |
}
|
132 |
csv_paths.append(file_path)
|
133 |
|