if (!MaryUtils.isWindows()) gmmParams.useNativeCLibTrainer = false;
if (!MaryUtils.isWindows()) gmmParams.useNativeCLibTrainer = false;
public SortedMap getDefaultProps(DatabaseLayout db) { this.db = db; if (props == null) { props = new TreeMap(); if (db.getProp(db.GENDER).equals("female")) { props.put(MINPITCH, "100"); props.put(MAXPITCH, "500"); } else { props.put(MINPITCH, "75"); props.put(MAXPITCH, "300"); } if (MaryUtils.isWindows()) props.put(COMMAND, "c:/tcl/tclsh.exe"); // TODO someone with windows, please confirm or correct else props.put(COMMAND, "/usr/bin/tclsh"); } return props; }
public SortedMap getDefaultProps(DatabaseLayout db) { this.db = db; if (props == null) { props = new TreeMap(); props.put(COMMAND, "praat"); if (db.getProp(db.GENDER).equals("female")) { props.put(MINPITCH, "100"); props.put(MAXPITCH, "500"); } else { props.put(MINPITCH, "75"); props.put(MAXPITCH, "300"); } props.put(WAVEDIR, db.getProp(db.VOCALIZATIONSDIR) + File.separator + "wav"); props.put(LF0DIR, db.getProp(db.VOCALIZATIONSDIR) + File.separator + "lf0"); props.put(FRAMEPERIOD, "80"); props.put(SAMPLERATE, "16000"); // vocalizationsDir = db.getProp(db.ROOTDIR)+File.separator+"vocalizations"; if (MaryUtils.isWindows()) props.put(COMMAND, "c:/tcl/tclsh.exe"); // TODO someone with windows, please confirm or correct else props.put(COMMAND, "/usr/bin/tclsh"); } return props; }
+ " " + getProp(FRAMEPERIOD) + " " + getProp(SAMPLERATE); if (MaryUtils.isWindows()) strTmp = "cmd.exe /c " + strTmp; else
@Deprecated protected boolean praatPitchmarks(String basename) throws IOException { String wavFilename = new File(getProp(WAVEDIR) + basename + db.getProp(db.WAVEXT)).getAbsolutePath(); String pointprocessFilename = getProp(PRAATPMDIR) + basename + pointpExt; String strTmp = getProp(COMMAND) + " " + tmpScript + " " + wavFilename + " " + pointprocessFilename + " " + getProp(MINPITCH) + " " + getProp(MAXPITCH); if (MaryUtils.isWindows()) strTmp = "cmd.exe /c " + strTmp; General.launchProc(strTmp, "PraatPitchmarker", basename); // Now convert the praat format into EST pm format: estPitchmarks(basename); return true; }
getProp(WAVEDIR), getProp(PRAATPMDIR), getProp(MINPITCH), getProp(MAXPITCH) }, " "); System.out.println("Running Praat as: " + praatCommand); if (MaryUtils.isWindows()) { praatCommand = "cmd.exe /c " + praatCommand;
+ " " + getProp(FRAMELENGTH) + " " + getProp(NUMFORMANTS) + " " + getProp(LPCORDER); if (MaryUtils.isWindows()) strTmp = "cmd.exe /c " + db.getExternal(db.TCLPATH) + "/tclsh " + strTmp; else
String strTmp = scriptFileName + " " + wavFile + " " + snackFile + " " + getProp(MAXPITCH) + " " + getProp(MINPITCH); if (MaryUtils.isWindows()) strTmp = "cmd.exe /c " + strTmp; else
String strSnackTmp = scriptSnackFileName + " " + wavFile + " " + snackFile + " " + getProp(MAXPITCH) + " " + getProp(MINPITCH) + " " + getProp(FRAMELENGTH) + " " + getProp(NUMFORMANTS) + " " + getProp(LPCORDER); if (MaryUtils.isWindows()) strSnackTmp = "cmd.exe /c " + db.getExternal(db.TCLPATH) + "/tclsh " + strSnackTmp; else