public class AsynchronousThreadedMaryClient extends Thread
scheduleRequest()
,
which is not synchronized. Only the last unprocessed request is remembered.Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
AsynchronousThreadedMaryClient(AudioFileReceiver emoSpeak)
Creates new AsynchronousThreadedMaryClient
|
AsynchronousThreadedMaryClient(AudioFileReceiver emoSpeak,
String serverHost,
int serverPort,
boolean printProfilingInfo,
boolean beQuiet)
Constructor to be used by applets
|
Modifier and Type | Method and Description |
---|---|
String |
getHost() |
int |
getPort() |
Vector |
getServerVoices() |
Vector |
getServerVoices(Locale locale) |
void |
requestExit() |
void |
run() |
void |
scheduleRequest(String prosodyxmlString,
MaryClient.Voice voice,
int requestNumber)
Schedule the latest request.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public AsynchronousThreadedMaryClient(AudioFileReceiver emoSpeak) throws IOException, UnknownHostException
emoSpeak
- emoSpeakIOException
- IOExceptionUnknownHostException
- UnknownHostExceptionpublic AsynchronousThreadedMaryClient(AudioFileReceiver emoSpeak, String serverHost, int serverPort, boolean printProfilingInfo, boolean beQuiet) throws IOException, UnknownHostException
emoSpeak
- emoSpeakserverHost
- serverHostserverPort
- serverPortprintProfilingInfo
- printProfilingInfobeQuiet
- beQuietIOException
- IOExceptionUnknownHostException
- UnknownHostExceptionpublic void scheduleRequest(String prosodyxmlString, MaryClient.Voice voice, int requestNumber)
prosodyxmlString
- the maryxml data to be synthesised.voice
- the synthesis voice to userequestNumber
- request numberpublic void requestExit()
public String getHost()
public int getPort()
public Vector getServerVoices() throws IOException
IOException
public Vector getServerVoices(Locale locale) throws IOException
IOException
Copyright © 2000–2016 DFKI GmbH. All rights reserved.