Skip to content

Commit

Permalink
Add get_tts signature compatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 3, 2023
1 parent 0a585be commit 1a67660
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neon_audio/tts/neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ def _init_playback(self):
TTS.playback.start()

def _get_tts(self, sentence: str, request: dict = None, **kwargs):
if isinstance(request, str):
# OVOS-compat signature; args[2] is lang
request = {"language": request}
if any([x in inspect.signature(self.get_tts).parameters
for x in {"speaker", "wav_file"}]):
LOG.info("Legacy Neon TTS signature found")
Expand Down

0 comments on commit 1a67660

Please sign in to comment.