-
Notifications
You must be signed in to change notification settings - Fork 0
/
benchmark_rtf_es.py
30 lines (25 loc) · 1.29 KB
/
benchmark_rtf_es.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
from benchmark_rtf import benchmark_rtf
if __name__ == "__main__":
from ovos_tts_plugin_edge_tts import EdgeTTSPlugin
from ovos_tts_plugin_nos import NosTTSPlugin
from ovos_tts_plugin_espeakng import EspeakNGTTS
from ovos_tts_plugin_google_tx import GoogleTranslateTTS
from ovos_tts_plugin_pico import PicoTTS
from ovos_tts_plugin_coqui import CoquiTTSPlugin
# Define plugins
LANG = "es-es"
_NOS = NosTTSPlugin(config={})
# Define plugins
PLUGINS = [
# ("plugin_name", TTS_plugin_instance, voice, langs)
("ovos-tts-plugin-coqui", CoquiTTSPlugin(lang=LANG), 'tts_models/es/css10/vits', [LANG]),
("ovos-tts-plugin-edge-tts", EdgeTTSPlugin(config={}), 'es-ES-AlvaroNeural', [LANG]),
("ovos-tts-plugin-edge-tts", EdgeTTSPlugin(config={}), 'es-ES-ElviraNeural', [LANG]),
("ovos-tts-plugin-pico", PicoTTS(config={}), "pico", [LANG]),
("ovos-tts-plugin-google-tx", GoogleTranslateTTS(config={}), "google", [LANG]),
# ("ovos-tts-plugin-piper", _PIPER, "carlfm-x-low", [LANG]),
("ovos-tts-plugin-cotovia", _NOS.cotovia, "sabela", [LANG]),
("ovos-tts-plugin-cotovia", _NOS.cotovia, "iago", [LANG]),
("ovos-tts-plugin-espeak", EspeakNGTTS(config={}), "robot", [LANG])
]
benchmark_rtf(LANG, PLUGINS)