Package com.sun.speech.freetts.util

Examples of com.sun.speech.freetts.util.BulkTimer.start()


        String destPath = ".";
       
  try {
      if (args.length > 0) {
    BulkTimer timer = BulkTimer.LOAD;
    timer.start();
    for (int i = 0 ; i < args.length; i++) {
                    if (args[i].equals("-src")) {
                        srcPath = args[++i];
                    } else if (args[i].equals("-dest")) {
                        destPath = args[++i];
View Full Code Here


       if (suffixPos != -1) {
           indexName = name.substring(0, suffixPos) + ".idx";
       }

       System.out.println("Loading " + name);
       timer.start("load_text");
       DiphoneUnitDatabase udb = new DiphoneUnitDatabase(
        new URL("file:"
                                        + srcPath + "/" + name), false);
       timer.stop("load_text");
View Full Code Here

        new URL("file:"
                                        + srcPath + "/" + name), false);
       timer.stop("load_text");

       System.out.println("Dumping " + binaryName);
       timer.start("dump_binary");
           udb.dumpBinary(destPath + "/" + binaryName);
       timer.stop("dump_binary");

       timer.start("load_binary");
       DiphoneUnitDatabase budb =
View Full Code Here

       System.out.println("Dumping " + binaryName);
       timer.start("dump_binary");
           udb.dumpBinary(destPath + "/" + binaryName);
       timer.stop("dump_binary");

       timer.start("load_binary");
       DiphoneUnitDatabase budb =
          new DiphoneUnitDatabase(
            new URL("file:"
                                            + destPath + "/" + binaryName),
                                    true);
View Full Code Here

                                            + destPath + "/" + binaryName),
                                    true);
       timer.stop("load_binary");

       System.out.println("Dumping " + indexName);
       timer.start("dump index");
           budb.dumpBinaryIndex(destPath + "/" + indexName);
       timer.stop("dump index");
        } else if (args[i].equals("-compare")) {

      timer.start("load_text");
View Full Code Here

       timer.start("dump index");
           budb.dumpBinaryIndex(destPath + "/" + indexName);
       timer.stop("dump index");
        } else if (args[i].equals("-compare")) {

      timer.start("load_text");
       DiphoneUnitDatabase udb = new DiphoneUnitDatabase(
        new URL("file:./diphone_units.txt"), false);
      timer.stop("load_text");

      timer.start("load_binary");
View Full Code Here

      timer.start("load_text");
       DiphoneUnitDatabase udb = new DiphoneUnitDatabase(
        new URL("file:./diphone_units.txt"), false);
      timer.stop("load_text");

      timer.start("load_binary");
      DiphoneUnitDatabase budb =
          new DiphoneUnitDatabase(
            new URL("file:./diphone_units.bin"), true);
      timer.stop("load_binary");
View Full Code Here

      DiphoneUnitDatabase budb =
          new DiphoneUnitDatabase(
            new URL("file:./diphone_units.bin"), true);
      timer.stop("load_binary");

      timer.start("compare");
      if (udb.compare(budb)) {
          System.out.println("other compare ok");
      } else {
          System.out.println("other compare different");
      }
View Full Code Here

  String name = "cmulex_lts";

  try {
      if (args.length > 0) {
    BulkTimer timer = new BulkTimer();
    timer.start();
    for (int i = 0 ; i < args.length; i++) {
                    if (args[i].equals("-src")) {
                        srcPath = args[++i];
                    } else if (args[i].equals("-dest")) {
                        destPath = args[++i];
View Full Code Here

                               && i < args.length -1) {
      name = args[++i];
        } else if (args[i].equals("-generate_binary")) {

       System.out.println("Loading " + name);
       timer.start("load_text");
       LetterToSoundImpl text = new LetterToSoundImpl(
        new URL("file:" + srcPath + "/"
                                        + name + ".txt"),
                                false);
       timer.stop("load_text");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.