public VoiceSectioner(String s, Voice defaultVoice) { this.s = s; this.pos = 0; this.currentVoice = defaultVoice; this.logger = MaryUtils.getLogger("VoiceSectioner"); }
public VoiceSectioner(String s, Voice defaultVoice) { this.s = s; this.pos = 0; this.currentVoice = defaultVoice; this.logger = MaryUtils.getLogger("VoiceSectioner"); }
/** * Provide a Logger object whose name is built from MaryUtils.LOGPREFIX and the given nameSuffix. * * @param clazz * the class to use for the logger name. * @return getLogger(clazz.getSimpleName()) */ public static Logger getLogger(Class clazz) { return getLogger(clazz.getSimpleName()); }
/** * Initialise the unit selector. Need to call load() separately. * * @see #load(UnitDatabase unitDatabase, float targetCostWeight, int beamSize) * @throws Exception * Exception */ public UnitSelector() throws Exception { logger = MaryUtils.getLogger(this.getClass()); }
/** * Initialise the unit selector. Need to call load() separately. * * @see #load(UnitDatabase unitDatabase, float targetCostWeight, int beamSize) * @throws Exception * Exception */ public UnitSelector() throws Exception { logger = MaryUtils.getLogger(this.getClass()); }
/** * Provide a Logger object whose name is built from MaryUtils.LOGPREFIX and the given nameSuffix. * * @param clazz * the class to use for the logger name. * @return getLogger(clazz.getSimpleName()) */ public static Logger getLogger(Class clazz) { return getLogger(clazz.getSimpleName()); }
public BaseHttpRequestHandler() { super(); logger = MaryUtils.getLogger("server"); requestMap = Collections.synchronizedMap(new HashMap<String, Object[]>()); }
public AudioReader(InputStream from, AudioDestination audioDestination, String endMarker) { super(Thread.currentThread().getName() + " reader"); this.from = from; this.audioDestination = audioDestination; this.endMarker = endMarker != null ? endMarker.getBytes() : null; latestSeenTime = System.currentTimeMillis(); logger = MaryUtils.getLogger("Audio reader"); }
protected InternalModule(String name, MaryDataType inputType, MaryDataType outputType, Locale locale) { this.name = name; this.inputType = inputType; this.outputType = outputType; this.locale = locale; logger = MaryUtils.getLogger(name()); this.state = MODULE_OFFLINE; }
protected InternalModule(String name, MaryDataType inputType, MaryDataType outputType, Locale locale) { this.name = name; this.inputType = inputType; this.outputType = outputType; this.locale = locale; logger = MaryUtils.getLogger(name()); this.state = MODULE_OFFLINE; }
public void shutdown() { logger = MaryUtils.getLogger(name()); logger.info("Module shut down."); state = MODULE_OFFLINE; }
public StreamingOutputPiper(InputStream input) throws Exception { this.input = input; logger = MaryUtils.getLogger(this.getName()); textWriter = null; binaryWriter = null; response = null; contentType = null; }
public void run() { Logger myLogger = MaryUtils.getLogger(this.getName()); try { maryRequest.process(); myLogger.info("Streaming request processed successfully."); } catch (Throwable t) { myLogger.error("Processing failed.", t); } } }.start();
public void run() { Logger myLogger = MaryUtils.getLogger(this.getName()); try { maryRequest.process(); myLogger.info("Streaming request processed successfully."); } catch (Throwable t) { myLogger.error("Processing failed.", t); } } }.start();
/** * Start up the waveform synthesizer. This must be called once before calling synthesize(). * * @throws Exception * Exception */ public void startup() throws Exception { logger = MaryUtils.getLogger("InterpolatingSynthesizer"); // Register interpolating voice: Voice.registerVoice(new InterpolatingVoice(this, "interpolatingvoice")); logger.info("started."); }
/** * Start up the waveform synthesizer. This must be called once before calling synthesize(). * * @throws Exception * Exception */ public void startup() throws Exception { logger = MaryUtils.getLogger("InterpolatingSynthesizer"); // Register interpolating voice: Voice.registerVoice(new InterpolatingVoice(this, "interpolatingvoice")); logger.info("started."); }
public StreamingOutputWriter(Request request, OutputStream output) throws Exception { this.request = request; this.output = output; this.setName("RW " + request.getId()); logger = MaryUtils.getLogger(this.getName()); }
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); }
public StreamingOutputWriter(Request request, OutputStream output) throws Exception { this.request = request; this.output = output; this.setName("RW " + request.getId()); logger = MaryUtils.getLogger(this.getName()); }
public synchronized void startup() throws Exception { assert state == MODULE_OFFLINE; setExitRequested(false); open(); setNeedToRestart(false); logger = MaryUtils.getLogger(name()); logger.info("Module started (" + inputType() + "->" + outputType() + ", locale " + getLocale() + ")."); state = MODULE_RUNNING; }