Skip to content

Instantly share code, notes, and snippets.

@abodacs
Forked from wfng92/phonemizer-backend.py
Created November 12, 2022 23:27
Show Gist options
  • Select an option

  • Save abodacs/8e437345aa903fc98ef42d994ee7e8a9 to your computer and use it in GitHub Desktop.

Select an option

Save abodacs/8e437345aa903fc98ef42d994ee7e8a9 to your computer and use it in GitHub Desktop.
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)
@abodacs

abodacs commented Nov 12, 2022

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment