Skip to content

Commit

Permalink
Neon patch (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejgray authored Jun 10, 2023
1 parent 2963fe6 commit b8771e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ovos_tts_plugin_piper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ def get_tts(self, sentence, wav_file, lang=None, speaker=None):
tuple ((str) file location, (str) generated phonemes)
"""
lang = lang or self.lang
# HACK: bug in some neon-core versions - neon_audio.tts.neon:_get_tts:198 - INFO - Legacy Neon TTS signature found
if isinstance(speaker, dict):
LOG.warning("Legacy Neon TTS signature found, pass speaker as a str")
speaker = None
wav_bytes = self.engine.synthesize(sentence,
speaker_id=speaker or self.speaker,
length_scale=self.length_scale,
Expand Down

0 comments on commit b8771e1

Please sign in to comment.