Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
StormblessedKal
/
testspace
like
0
Runtime error
App
Files
Files
e1412bc
testspace
/
src
/
gruut_phonemize.py
StormblessedKal
docker for runpod
e1412bc
12 months ago
raw
Copy download link
history
blame
Safe
243 Bytes
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