Fix linter and server package test

This commit is contained in:
Reuben Morais
2020-02-13 17:51:20 +01:00
parent 995eb1bf07
commit ffd00ce295
3 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -121,7 +121,8 @@ class Synthesizer(object):
wav = np.array(wav)
self.ap.save_wav(wav, path)
def split_into_sentences(self, text):
@staticmethod
def split_into_sentences(text):
text = " " + text + " <stop>"
text = text.replace("\n", " ")
text = re.sub(prefixes, "\\1<prd>", text)