public void startup() throws Exception { super.startup(); setPunctuationPosRegex(); setUnpronounceablePosRegex(); }
public void startup() throws Exception { startupSynthesizers(); super.startup(); }
private boolean isMinipFinal(Element syllable) { // If this syllable is followed by a boundary with breakindex // 3 or above, return true. return isLastBeforeBoundary(syllable, 3); }
public void shutdown() { assert state == MODULE_RUNNING; close(); setExitRequested(true); doNotifyAll(); try { processingThread.join(); restarterThread.join(); } catch (InterruptedException e) { logger.info(e); } logger.info("Module shut down."); state = MODULE_OFFLINE; }
public MaryData process(MaryData d) throws Exception { MaryData result = super.process(d); return result; } }
private int getMinDuration(Element segment) { int minDuration = klattDurationParams.getMinDuration(segment.getAttribute("p")); // additional reduction for unstressed segments: // (this comes from klatt's original rule no. 7) if (getStress(getSyllable(segment)) == 0) { // For unstressed segments, // increase stretchability by reducing minimum duration: return (minDuration * getPropertyAsInteger("rule7.mindur")) / 100; } else { // default return minDuration; } }
public ProcessTimeoutDestroyer(ExternalModule module) { this.module = module; logger = MaryUtils.getLogger(module.name() + " timer"); // The timer threads must have a higher priority than the // normal threads, in order to make sure they are processed // before any other. setPriority(getPriority() + 1); }
public HTSUttModel processUttFromFile(String feaFile, HMMData htsData) throws Exception { List<Target> targetFeaturesList = getTargetsFromFile(feaFile, htsData); return processTargetList(targetFeaturesList, null, htsData); }
/** * Access the code from within the our own code so that a subclass can override it. Use this rather than the public static * method in local code. * * @param segmentsAndBoundaries * segmentsAndBoundaries * @param pauseSymbol * pauseSymbol * @return TargetFeatureLister */ protected List<Target> overridableCreateTargetsWithPauses(List<Element> segmentsAndBoundaries, String pauseSymbol) { return TargetFeatureLister.createTargetsWithPauses(segmentsAndBoundaries, pauseSymbol); }
/** * Klatt Rule 0: Overall default speed. * * @return A percentage value as a factor for duration (100 corresponds to no change). */ private int klattRule0(Element segment) { return getPropertyAsInteger("rule0.all"); }
public void startup() throws Exception { // local startup goes here super.startup(); }
public void shutdown() { assert state == MODULE_RUNNING; close(); setExitRequested(true); doNotifyAll(); try { processingThread.join(); restarterThread.join(); } catch (InterruptedException e) { logger.info(e); } logger.info("Module shut down."); state = MODULE_OFFLINE; }
private int getMinDuration(Element segment) { int minDuration = klattDurationParams.getMinDuration(segment.getAttribute("p")); // additional reduction for unstressed segments: // (this comes from klatt's original rule no. 7) if (getStress(getSyllable(segment)) == 0) { // For unstressed segments, // increase stretchability by reducing minimum duration: return (minDuration * getPropertyAsInteger("rule7.mindur")) / 100; } else { // default return minDuration; } }
public void startup() throws Exception { super.startup(); setPunctuationPosRegex(); setUnpronounceablePosRegex(); }
public ProcessTimeoutDestroyer(ExternalModule module) { this.module = module; logger = MaryUtils.getLogger(module.name() + " timer"); // The timer threads must have a higher priority than the // normal threads, in order to make sure they are processed // before any other. setPriority(getPriority() + 1); }
public void startup() throws Exception { startupSynthesizers(); super.startup(); }
private boolean isMinipFinal(Element syllable) { // If this syllable is followed by a boundary with breakindex // 3 or above, return true. return isLastBeforeBoundary(syllable, 3); }
/** * Klatt Rule 0: Overall default speed. * * @return A percentage value as a factor for duration (100 corresponds to no change). */ private int klattRule0(Element segment) { return getPropertyAsInteger("rule0.all"); }
private boolean isMajIPFinal(Element syllable) { // If this syllable is followed by a boundary with breakindex // 4 or above, return true. return isLastBeforeBoundary(syllable, 4); }
private boolean isMajIPFinal(Element syllable) { // If this syllable is followed by a boundary with breakindex // 4 or above, return true. return isLastBeforeBoundary(syllable, 4); }