Spaces:
Runtime error
Runtime error
File size: 243 Bytes
5cf7b18 |
1 2 3 4 5 6 7 8 9 10 |
from gruut import sentences
def gphonemize(text):
phonemes = ''
for sent in sentences(text, lang="en-us"):
for word in sent:
if word.phonemes:
phonemes += ''.join(word.phonemes)
return phonemes |