Skip to content

Commit

Permalink
feat:g2p
Browse files Browse the repository at this point in the history
move the G2P plugin from TTS base class into ovos-audio

it was only there originally as a way to deploy it to classic mycroft-core when they didn't review PRs
  • Loading branch information
JarbasAl committed Oct 23, 2024
1 parent 18c5df9 commit cbc6e5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ovos_audio/playback.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ def __init__(self, queue=TTS.queue, bus=None):
self._now_playing = None
self._started = Event()
self.tts_transform = TTSTransformersService(self.bus)
self.g2p: Optional[Grapheme2PhonemePlugin] = OVOSG2PFactory.create()
try:
self.g2p: Optional[Grapheme2PhonemePlugin] = OVOSG2PFactory.create()
except: # not mission critical
self.g2p = None

@property
def is_running(self):
Expand Down

0 comments on commit cbc6e5c

Please sign in to comment.