-
-
Save abodacs/8e437345aa903fc98ef42d994ee7e8a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from phonemizer.backend import EspeakBackend | |
backend = EspeakBackend('en-us', preserve_punctuation=True, with_stress=True) | |
text = ["Hello, world!", "Welcome to Medium!"] | |
phonemized = backend.phonemize(text, strip=True) | |
print(phonemized) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://betterprogramming.pub/convert-text-to-phoneme-in-python-989b6e05b70f