Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tts lang #3

Merged
merged 5 commits into from
Sep 13, 2021
Merged

tts lang #3

merged 5 commits into from
Sep 13, 2021

Conversation

JarbasAl
Copy link
Member

@JarbasAl JarbasAl commented Sep 6, 2021

adds support the lang parameter when running under HolmesV derivatives, those always go through the execute method

also ensures mycroft-style plugins that don't accept lang work

it should not impact standalone usage of plugins (calling get_tts directly), those are expected to handle a missing/None lang parameter, its the downstream's code responsibility to ensure things work if using plugins this way, eg, hivemind-voice-satellite passes this lang param on its own accord and skips usage of execute, if it loads a plugin that does not accept lang that is out of scope for OPM

this should bring support for neon-core and hivemind

@JarbasAl JarbasAl added the enhancement New feature or request label Sep 6, 2021
Copy link
Member

@NeonDaniel NeonDaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, only comment was regarding adding documentation

@@ -381,7 +382,7 @@ def _preprocess_sentence(self, sentence):
"""
return [sentence]

def execute(self, sentence, ident=None, listen=False):
def execute(self, sentence, ident=None, listen=False, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should expected/supported kwargs be added to the docstring here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants