Update multispeaker-tts-sinhala.py
Browse files- multispeaker-tts-sinhala.py +15 -17
multispeaker-tts-sinhala.py
CHANGED
@@ -5,27 +5,26 @@ import os
|
|
5 |
import datasets
|
6 |
|
7 |
logger = datasets.logging.get_logger(__name__)
|
8 |
-
_DESCRIPTION = """\\nThis data set contains multi-speaker high quality transcribed audio data for
|
9 |
The file si_lk.lines.txt contains a FileID, which in tern contains the UserID and the Transcription of audio in the file.
|
10 |
The data set has been manually quality checked, but there might still be errors.
|
11 |
|
12 |
-
|
13 |
"""
|
14 |
_CITATION = """
|
15 |
-
@inproceedings{
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
URL = {http://dx.doi.org/10.21437/SLTU.2018-14}
|
24 |
}
|
25 |
"""
|
26 |
_URL = "https://www.openslr.org/30/"
|
27 |
-
_DATA_URL = "https://
|
28 |
-
_DATA_FILE_URL = "https://
|
29 |
_LICENSE = "https://www.openslr.org/resources/30/LICENSE.txt"
|
30 |
_LANGUAGES = [
|
31 |
"si",
|
@@ -35,16 +34,15 @@ _LANGUAGES = [
|
|
35 |
class SiTTSConfig(datasets.BuilderConfig):
|
36 |
"""BuilderConfig for SiTTS."""
|
37 |
|
38 |
-
def __init__(self, *args,
|
39 |
"""BuilderConfig for SiTTS.
|
40 |
Args:
|
41 |
languages (:obj:`List[str]`): list of languages to load
|
42 |
**kwargs: keyword arguments forwarded to super.
|
43 |
"""
|
44 |
super().__init__(
|
45 |
-
*args,
|
46 |
)
|
47 |
-
self.languages = languages
|
48 |
|
49 |
|
50 |
class SiTTS(datasets.GeneratorBasedBuilder):
|
@@ -90,7 +88,7 @@ class SiTTS(datasets.GeneratorBasedBuilder):
|
|
90 |
lines = f.readlines()
|
91 |
|
92 |
for id_, line in enumerate(lines):
|
93 |
-
id_value, sentence = line.strip().split(
|
94 |
# sentence = re.findall(r'"(.*?)"', line)[0].strip()
|
95 |
# id_value = re.findall(r"(sin_[^\s]+)", line)[0]
|
96 |
file_path = "{0}.wav".format(id_value)
|
|
|
5 |
import datasets
|
6 |
|
7 |
logger = datasets.logging.get_logger(__name__)
|
8 |
+
_DESCRIPTION = """\\nThis data set contains multi-speaker high quality transcribed audio data for Sinhala. The data set consists of wave files, and a TSV file.
|
9 |
The file si_lk.lines.txt contains a FileID, which in tern contains the UserID and the Transcription of audio in the file.
|
10 |
The data set has been manually quality checked, but there might still be errors.
|
11 |
|
12 |
+
Part of this dataset was collected by Google in Sri Lanka and the rest was contributed by Path to Nirvana organization.
|
13 |
"""
|
14 |
_CITATION = """
|
15 |
+
@inproceedings{Sodimana2018,
|
16 |
+
author={Keshan Sodimana and Pasindu {De Silva} and Supheakmungkol Sarin and Oddur Kjartansson and Martin Jansche and Knot Pipatsrisawat and Linne Ha},
|
17 |
+
title={{A Step-by-Step Process for Building TTS Voices Using Open Source Data and Frameworks for Bangla, Javanese, Khmer, Nepali, Sinhala, and Sundanese}},
|
18 |
+
year=2018,
|
19 |
+
booktitle={Proc. The 6th Intl. Workshop on Spoken Language Technologies for Under-Resourced Languages},
|
20 |
+
pages={66--70},
|
21 |
+
doi={10.21437/SLTU.2018-14},
|
22 |
+
url={http://dx.doi.org/10.21437/SLTU.2018-14}
|
|
|
23 |
}
|
24 |
"""
|
25 |
_URL = "https://www.openslr.org/30/"
|
26 |
+
_DATA_URL = "https://huggingface.co/datasets/keshan/wit-dataset/resolve/09d263477614f9fa8c8af0d8ad78f6d4e410a43c/data.tar.gz"
|
27 |
+
_DATA_FILE_URL = "https://huggingface.co/datasets/keshan/wit-dataset/resolve/09d263477614f9fa8c8af0d8ad78f6d4e410a43c/file_index.tsv"
|
28 |
_LICENSE = "https://www.openslr.org/resources/30/LICENSE.txt"
|
29 |
_LANGUAGES = [
|
30 |
"si",
|
|
|
34 |
class SiTTSConfig(datasets.BuilderConfig):
|
35 |
"""BuilderConfig for SiTTS."""
|
36 |
|
37 |
+
def __init__(self, *args, **kwargs):
|
38 |
"""BuilderConfig for SiTTS.
|
39 |
Args:
|
40 |
languages (:obj:`List[str]`): list of languages to load
|
41 |
**kwargs: keyword arguments forwarded to super.
|
42 |
"""
|
43 |
super().__init__(
|
44 |
+
*args, **kwargs,
|
45 |
)
|
|
|
46 |
|
47 |
|
48 |
class SiTTS(datasets.GeneratorBasedBuilder):
|
|
|
88 |
lines = f.readlines()
|
89 |
|
90 |
for id_, line in enumerate(lines):
|
91 |
+
id_value, sentence = line.strip().split("\t")
|
92 |
# sentence = re.findall(r'"(.*?)"', line)[0].strip()
|
93 |
# id_value = re.findall(r"(sin_[^\s]+)", line)[0]
|
94 |
file_path = "{0}.wav".format(id_value)
|