Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiefy authored Sep 27, 2022
1 parent 114cdac commit 6fae254
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions text/cleaners.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ def japanese_triphone_cleaners(text):
text = ''
for i, sentence in enumerate(sentences):
phones = pyopenjtalk.g2p(sentence, kana=False)
print(phones)
phones = phones.replace(' ','')
phones = phones.replace('A', 'a').replace('I', 'i').replace('U', 'u').replace('E', 'e').replace('O', 'o')
phones = phones.replace('ch','ʧ').replace('sh','ʃ').replace('cl','Q')
Expand All @@ -183,5 +182,5 @@ def japanese_triphone_cleaners(text):
text += unidecode(marks[i]).replace(' ', '')
if len(text) > 0 and re.match('[A-Za-z]',text[-1]):
text += '.'
print(text)
return text

0 comments on commit 6fae254

Please sign in to comment.