Yehor Smoliakov commited on
Commit
fab94a8
1 Parent(s): 08bfc90

Add a fixed dataset

Browse files
examples/count_duration.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from datasets import load_dataset
2
+
3
+ ds = load_dataset("Yehor/tts-mykyta-uk", "lada")
4
+
5
+ for row in ds['train']:
6
+ print(row)
examples/remove_accents.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ from datasets import load_dataset
3
+
4
+ def remove_accents(x):
5
+ chars = list(x.encode('utf-8').replace(b'\xcc\x81', b'').decode('utf-8'))
6
+
7
+ return ''.join(chars)
8
+
9
+ ds = load_dataset("Yehor/tts-mykyta-uk", "lada")
10
+
11
+ for row in ds['train']:
12
+ row['text'] = remove_accents(row['text'])
13
+
14
+ print(json.dumps(row))
voices/lada/train.jsonl CHANGED
The diff for this file is too large to render. See raw diff