-
Notifications
You must be signed in to change notification settings - Fork 0
/
benchmark_rtf_ca.py
36 lines (31 loc) · 1.84 KB
/
benchmark_rtf_ca.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from benchmark_rtf import benchmark_rtf
if __name__ == "__main__":
from ovos_tts_plugin_edge_tts import EdgeTTSPlugin
from ovos_tts_plugin_espeakng import EspeakNGTTS
from ovos_tts_plugin_google_tx import GoogleTranslateTTS
from ovos_tts_plugin_matxa_multispeaker_cat import MatxaCatalanTTSPlugin
from ovos_tts_plugin_nos import NosTTSPlugin
from ovos_tts_plugin_piper import PiperTTSPlugin
from ovos_tts_plugin_coqui import CoquiTTSPlugin
LANG = "ca"
_NOS = NosTTSPlugin(config={})
_MATXA = MatxaCatalanTTSPlugin(config={})
_PIPER = PiperTTSPlugin(config={})
# Define plugins
PLUGINS = [
# ("plugin_name", TTS_plugin_instance, voice, langs)
("ovos-tts-plugin-coqui", CoquiTTSPlugin(lang=LANG), 'tts_models/ca/custom/vits', [LANG]),
("ovos-tts-plugin-edge-tts", EdgeTTSPlugin(config={}), 'ca-ES-JoanaNeural', [LANG]),
("ovos-tts-plugin-edge-tts", EdgeTTSPlugin(config={}), 'ca-ES-EnricNeural', [LANG]),
("ovos-tts-plugin-google-tx", GoogleTranslateTTS(config={}), "google", [LANG]),
("ovos-tts-plugin-espeak", EspeakNGTTS(config={}), "robot", [LANG]),
("ovos-tts-plugin-matxa-multispeaker-cat", _MATXA, "central/grau", [LANG]),
("ovos-tts-plugin-matxa-multispeaker-cat", _MATXA, "central/elia", [LANG]),
("ovos-tts-plugin-matxa-multispeaker-cat", _MATXA, "balear/quim", [LANG]),
("ovos-tts-plugin-matxa-multispeaker-cat", _MATXA, "balear/olga", [LANG]),
("ovos-tts-plugin-matxa-multispeaker-cat", _MATXA, "valencia/lluc", [LANG]),
("ovos-tts-plugin-matxa-multispeaker-cat", _MATXA, "valencia/gina", [LANG]),
("ovos-tts-plugin-matxa-multispeaker-cat", _MATXA, "nord-occidental/pere", [LANG]),
("ovos-tts-plugin-matxa-multispeaker-cat", _MATXA, "nord-occidental/emma", [LANG]),
]
benchmark_rtf(LANG, PLUGINS)