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

Prevent empty segments from being added for syllable breaks #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rdavidson1994
Copy link

The -p argument to input phones is meant to allow using '-' to indicate syllable breaks. Right now, this always fails with this error message:

> .\flite -p "pau ih0 - n k r ax0 - m eh1 n t - ax0 l pau"
VAL: tried to access string in -1 typed val

The problem is that tokentosegs unconditionally adds a new segment to the utterance for every token. In the case of '-', this segment never has its name set and is never added to the syllable structure, which breaks some assumptions later on. Moving the relation_append call past the check for '-' solves the problem.

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.

1 participant