Skip to content

Commit

Permalink
fix pt, remove deprfecate g2p plug leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Dec 8, 2023
1 parent 5ba9329 commit fa5736f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions ovos_tts_plugin_piper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@
from ovos_utils.xdg_utils import xdg_data_home


class PiperG2P(Grapheme2PhonemePlugin):
piper = None

def __init__(self, piper_engine, *args, **kwargs):
self.piper = piper_engine
super().__init__(*args, **kwargs)

def get_ipa(self, word, lang=None, ignore_oov=False):
return self.piper.phonemizer.phonemize(word, phoneme_separator=" ").split(" ")


class PiperTTSPlugin(TTS):
"""Interface to Piper TTS."""
lang2voices = {
Expand Down Expand Up @@ -93,7 +82,7 @@ class PiperTTSPlugin(TTS):
'mc_speech-medium',
'mls_6892-low'],
'pt-br': ['edresson-low', 'faber-medium'],
'pt-pt': ['tugao-medium'],
'pt': ['tugao-medium'],
'ro': ['mihai-medium'],
'ru': ['irina-medium',
'denis-medium',
Expand Down

0 comments on commit fa5736f

Please sign in to comment.