Package com.sun.speech.freetts

Examples of com.sun.speech.freetts.Relation


     *
     * @throws ProcessException if an IOException is thrown during the
     *         processing of the utterance
     */
    public void processUtterance(Utterance utterance) throws ProcessException {
  Relation tokenRelation;
  if ((tokenRelation = utterance.getRelation(Relation.TOKEN)) == null) {
      throw new IllegalStateException
    ("TokenToWords: Token relation does not exist");
  }
 
  wordRelation = WordRelation.createWordRelation(utterance, this);
 
  for (tokenItem = tokenRelation.getHead();
       tokenItem != null;
       tokenItem = tokenItem.getNext()) {

      FeatureSet featureSet = tokenItem.getFeatures();
      String tokenVal = featureSet.getString("name");
View Full Code Here

TOP

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

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.