Skip to content

Commit

Permalink
feat/sample_configs (#4)
Browse files Browse the repository at this point in the history
provide sample configs per language, this can be accessed via OPM to filter plugins

Co-authored-by: jarbasai <[email protected]>
  • Loading branch information
NeonJarbas and JarbasAl authored Jul 29, 2022
1 parent b33d759 commit 9fdc928
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
18 changes: 18 additions & 0 deletions ovos_tts_plugin_mimic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,21 @@ def get_tts_class(self):
@staticmethod
def get_lang_list():
return []


MimicTTSPluginConfig = {
"en-us": [
{"voice": "ap", "gender": "male"},
{"voice": "slt", "gender": "female"},
{"voice": "kal", "gender": "male"},
{"voice": "awb", "gender": "male"},
{"voice": "rms", "gender": "male"}
]
}

if MimicTTSPlugin.find_premium_mimic():
MimicTTSPluginConfig["en-us"].append(
{"voice": "trinity", "gender": "female"}
)


8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ def required(requirements_file):
if pkg.strip() and not pkg.startswith("#")]


PLUGIN_ENTRY_POINT = 'ovos-tts-plugin-mimic = ' \
'ovos_tts_plugin_mimic:MimicTTSPlugin'
PLUGIN_ENTRY_POINT = 'ovos-tts-plugin-mimic = ovos_tts_plugin_mimic:MimicTTSPlugin'
SAMPLE_CONFIGS = 'ovos-tts-plugin-mimic.config = ovos_tts_plugin_mimic:MimicTTSPluginConfig'

setup(
name='ovos-tts-plugin-mimic',
version='0.2.6',
Expand Down Expand Up @@ -81,5 +82,6 @@ def required(requirements_file):
'Programming Language :: Python :: 3.6',
],
keywords='mycroft plugin tts OVOS OpenVoiceOS',
entry_points={'mycroft.plugin.tts': PLUGIN_ENTRY_POINT}
entry_points={'mycroft.plugin.tts': PLUGIN_ENTRY_POINT,
'mycroft.plugin.tts.config': SAMPLE_CONFIGS}
)

0 comments on commit 9fdc928

Please sign in to comment.