Package com.sun.speech.freetts

Examples of com.sun.speech.freetts.Unit


       unitItem = unitItem.getNext()) {
      FeatureSet featureSet = unitItem.getFeatures();

      String unitName = featureSet.getString("name");
      targetEnd = featureSet.getInt("target_end");
      Unit unit = (Unit) featureSet.getObject("unit");
      int unitSize = unit.getSize();

      uIndex = 0;
      m = (float)unitSize/(float)(targetEnd - targetStart);
      numberFrames = lpcResult.getNumberOfFrames();
     
      // for all the pitchmarks that are required
      for (; (pmI < numberFrames) &&
         (targetTimes[pmI] <= targetEnd); pmI++) {

    Sample sample = unit.getNearestSample(uIndex);
   
    // Get LPC coefficients by copying
    lpcResult.setFrame(pmI, sample.getFrameData());

    // Get residual by copying
View Full Code Here

TOP

Related Classes of com.sun.speech.freetts.Unit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.