jimbozhang commited on
Commit
7b69e51
1 Parent(s): dfe82cf

Add speaker, gender and age in dataviewer

Browse files
Files changed (1) hide show
  1. speechocean762.py +6 -0
speechocean762.py CHANGED
@@ -58,6 +58,9 @@ class Speechocean762Dataset(datasets.GeneratorBasedBuilder):
58
  "file": datasets.Value("string"),
59
  "audio": datasets.Audio(sampling_rate=16_000),
60
  "text": datasets.Value("string"),
 
 
 
61
  "accuracy": datasets.Value("int16"),
62
  "fluency": datasets.Value("int16"),
63
  "prosodic": datasets.Value("int16"),
@@ -89,6 +92,9 @@ class Speechocean762Dataset(datasets.GeneratorBasedBuilder):
89
  "file": path,
90
  "audio": path,
91
  "text": row["text"],
 
 
 
92
  "accuracy": row["accuracy"],
93
  "fluency": row["fluency"],
94
  "prosodic": row["prosodic"],
 
58
  "file": datasets.Value("string"),
59
  "audio": datasets.Audio(sampling_rate=16_000),
60
  "text": datasets.Value("string"),
61
+ "speaker": datasets.Value("string"),
62
+ "gender": datasets.Value("string"),
63
+ "age": datasets.Value("int16"),
64
  "accuracy": datasets.Value("int16"),
65
  "fluency": datasets.Value("int16"),
66
  "prosodic": datasets.Value("int16"),
 
92
  "file": path,
93
  "audio": path,
94
  "text": row["text"],
95
+ "speaker": row["speaker"],
96
+ "gender": row["gender"],
97
+ "age": row["age"],
98
  "accuracy": row["accuracy"],
99
  "fluency": row["fluency"],
100
  "prosodic": row["prosodic"],