Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse espeak -X Flag for word to phoneme word mappings #4

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

TediPapajorgji
Copy link
Member

What does this PR do?
This PR introduces the new return_word_mappings parameter to the phonemize function to enable text to phoneme mappings for espeak backend only. In-turn when setting this value to True, appends the -X flag to espeak which prints out the mappings. See espeak PR here (coming soon).

What did you do?

  • Added parameter return_word_mappings
  • If return_word_mappings is true, append -X flag to espeak
  • If return_word_mappings is true, parse -X flag output
  • If return_word_mappings is true, return phonemized text and phoneme mappings, else just return phonemized text.

How did you test?

  • Through the python console
  • Modified resembletron's call to phonemize inside the synthesis.py#prepare_symbol_seqs_with_ssml function (added in Resembletrons PR #245)

What should the reviewer look out for?
Nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants