keshan commited on
Commit
8630748
1 Parent(s): 1dce4d2

Update multispeaker-tts-sinhala.py

Browse files
Files changed (1) hide show
  1. multispeaker-tts-sinhala.py +4 -3
multispeaker-tts-sinhala.py CHANGED
@@ -34,21 +34,22 @@ _LANGUAGES = [
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):
49
  """SiTTS, a manually quality checked, Sinhala multi-speaker TTS corpora."""
50
 
51
- BUILDER_CONFIGS = SiTTSConfig()
52
  BUILDER_CONFIG_CLASS = SiTTSConfig
53
 
54
  def _info(self):
 
34
  class SiTTSConfig(datasets.BuilderConfig):
35
  """BuilderConfig for SiTTS."""
36
 
37
+ def __init__(self, *args, languages, **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, name="+".join(languages), **kwargs,
45
  )
46
+ self.languages = languages
47
 
48
 
49
  class SiTTS(datasets.GeneratorBasedBuilder):
50
  """SiTTS, a manually quality checked, Sinhala multi-speaker TTS corpora."""
51
 
52
+ BUILDER_CONFIGS = [SiTTSConfig(languages=[lang]) for lang in _LANGUAGES]
53
  BUILDER_CONFIG_CLASS = SiTTSConfig
54
 
55
  def _info(self):