Skip to content

Commit

Permalink
This should fix Issue marytts-it#14
Browse files Browse the repository at this point in the history
  • Loading branch information
ftesser authored and giuliopaci committed Apr 30, 2013
1 parent d0c0a46 commit f6217a2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ public JPhonemiser(String componentName,
this.removeTrailingOneFromPhones = MaryProperties.getBoolean(removetrailingonefromphonesProperty, true);
}
Syllabifier syllabifier = null;
// how do you know about syllabifierClassProperty? (de = null, other true)
if (syllabifierClassProperty != null) {
String className = MaryProperties.getProperty(
syllabifierClassProperty, null);
Expand All @@ -165,7 +166,11 @@ public JPhonemiser(String componentName,
syllabifier = (Syllabifier) c.newInstance(this.allophoneSet,
this.removeTrailingOneFromPhones);
}
} else {
// className is null for all lang except italian...
}
// if a syllabifier is not set go with the default
if (syllabifier == null)
{
syllabifier = new Syllabifier(this.allophoneSet,
this.removeTrailingOneFromPhones);
}
Expand Down

0 comments on commit f6217a2

Please sign in to comment.