Tabnine Logo
marytts.modules
Code IndexAdd Tabnine to your IDE (free)

How to use marytts.modules

Best Java code snippets using marytts.modules (Showing top 20 results out of 315)

origin: marytts/marytts

public void startup() throws Exception {
  super.startup();
  setPunctuationPosRegex();
  setUnpronounceablePosRegex();
}
origin: marytts/marytts

public void startup() throws Exception {
  startupSynthesizers();
  super.startup();
}
origin: marytts/marytts

private boolean isMinipFinal(Element syllable) {
  // If this syllable is followed by a boundary with breakindex
  // 3 or above, return true.
  return isLastBeforeBoundary(syllable, 3);
}
origin: marytts/marytts

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;
}
origin: marytts/marytts

  public MaryData process(MaryData d) throws Exception {
    MaryData result = super.process(d);
    return result;
  }
}
origin: marytts/marytts

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;
  }
}
origin: marytts/marytts

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);
}
origin: marytts/marytts

public HTSUttModel processUttFromFile(String feaFile, HMMData htsData) throws Exception {
  List<Target> targetFeaturesList = getTargetsFromFile(feaFile, htsData);
  return processTargetList(targetFeaturesList, null, htsData);
}
origin: marytts/marytts

/**
 * 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);
}
origin: marytts/marytts

/**
 * 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");
}
origin: marytts/marytts

public void startup() throws Exception {
  // local startup goes here
  super.startup();
}
origin: marytts/marytts

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;
}
origin: marytts/marytts

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;
  }
}
origin: marytts/marytts

public void startup() throws Exception {
  super.startup();
  setPunctuationPosRegex();
  setUnpronounceablePosRegex();
}
origin: marytts/marytts

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);
}
origin: marytts/marytts

public void startup() throws Exception {
  startupSynthesizers();
  super.startup();
}
origin: marytts/marytts

private boolean isMinipFinal(Element syllable) {
  // If this syllable is followed by a boundary with breakindex
  // 3 or above, return true.
  return isLastBeforeBoundary(syllable, 3);
}
origin: marytts/marytts

/**
 * 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");
}
origin: marytts/marytts

private boolean isMajIPFinal(Element syllable) {
  // If this syllable is followed by a boundary with breakindex
  // 4 or above, return true.
  return isLastBeforeBoundary(syllable, 4);
}
origin: marytts/marytts

private boolean isMajIPFinal(Element syllable) {
  // If this syllable is followed by a boundary with breakindex
  // 4 or above, return true.
  return isLastBeforeBoundary(syllable, 4);
}
marytts.modules

Most used classes

  • AllophoneSet
  • JTokeniser
  • Allophone
  • TrainedLTS
    This predicts pronunciation from a model trained with LTSTrainer.
  • PronunciationModel
    This module serves as a post-lexical pronunciation model. Its appropriate place in the module chain
  • JPhonemiser,
  • MaryModule,
  • ModuleRegistry,
  • PAConverter,
  • HTSEngine,
  • TargetFeatureLister,
  • Syllabifier,
  • APMLParser,
  • AcousticModeller,
  • CARTDurationModeller,
  • CARTF0Modeller,
  • DummyModule,
  • EmotionmlParser,
  • ExternalModule$ProcessingThread
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now