public class MarySocketClient extends MaryClient
A GUI interface to this client,
Description of the MARY protocolMaryClient.AudioPlayerListener, MaryClient.DataType, MaryClient.Voice, MaryClient.WarningReaderbeQuiet, data, doProfile| Constructor and Description |
|---|
MarySocketClient()
The simplest way to create a mary client.
|
MarySocketClient(Address serverAddress)
The typical way to create a mary client.
|
MarySocketClient(Address serverAddress,
boolean profile,
boolean quiet)
An alternative way to create a mary client, which works with applets.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_process(String input,
String inputType,
String outputType,
String locale,
String audioType,
String defaultVoiceName,
String defaultStyle,
String defaultEffects,
Object output,
long timeout,
boolean streamingAudio,
String outputTypeParams,
MaryClient.AudioPlayerListener playerListener) |
protected void |
fillAudioFileFormatAndOutTypes() |
protected void |
fillDataTypes() |
protected void |
fillEffectHelpText(String effectName) |
protected void |
fillLocales() |
protected void |
fillServerExampleText(String dataType,
String locale) |
protected void |
fillServerVersion()
Get the version info from the server.
|
protected void |
fillVoiceExampleTexts(String voicename) |
protected void |
fillVoices() |
protected String |
getDefaultAudioEffects()
Request the available audio effects for a voice from the server
|
String |
getFeatures(String locale) |
String |
getFeaturesForVoice(String voice) |
boolean |
isHMMEffect(String effectName) |
String |
requestDefaultEffectParameters(String effectName) |
String |
requestFullEffect(String effectName,
String currentEffectParams) |
getAddress, getAllDataTypes, getAudioEffects, getAudioFileFormatType, getAudioFileFormatTypes, getAudioOutTypes, getGeneralDomainVoices, getGeneralDomainVoices, getHost, getInputDataTypes, getLimitedDomainVoices, getLimitedDomainVoices, getLocales, getMaryClient, getMaryClient, getMaryClient, getOutputDataTypes, getPort, getServerExampleText, getVoiceExampleTextsLimitedDomain, getVoices, getVoices, initialise, isServerVersionAtLeast, main, process, process, process, process, requestEffectHelpText, streamAudio, usagepublic MarySocketClient()
throws IOException
IOException - if communication with the server failspublic MarySocketClient(Address serverAddress) throws IOException
mary.client.profile (=true/false) - determines whether profiling (timing) information is calculated;mary.client.quiet (=true/false) - tells the client not to print any of the normal information to stderr.serverAddress - the address of the serverIOException - if communication with the server failspublic MarySocketClient(Address serverAddress, boolean profile, boolean quiet) throws IOException
serverAddress - the address of the serverprofile - determines whether profiling (timing) information is calculatedquiet - tells the client not to print any of the normal information to stderrIOException - if communication with the server failsprotected void _process(String input, String inputType, String outputType, String locale, String audioType, String defaultVoiceName, String defaultStyle, String defaultEffects, Object output, long timeout, boolean streamingAudio, String outputTypeParams, MaryClient.AudioPlayerListener playerListener) throws IOException
_process in class MaryClientIOExceptionprotected void fillServerVersion()
throws IOException,
UnknownHostException
fillServerVersion in class MaryClientIOException - if communication with the server failsUnknownHostException - if the host could not be foundprotected void fillDataTypes()
throws UnknownHostException,
IOException
fillDataTypes in class MaryClientUnknownHostExceptionIOExceptionprotected void fillVoices()
throws IOException,
UnknownHostException
fillVoices in class MaryClientIOExceptionUnknownHostExceptionprotected void fillLocales()
throws IOException,
UnknownHostException
fillLocales in class MaryClientIOExceptionUnknownHostExceptionprotected void fillVoiceExampleTexts(String voicename) throws IOException
fillVoiceExampleTexts in class MaryClientIOExceptionprotected void fillServerExampleText(String dataType, String locale) throws IOException
fillServerExampleText in class MaryClientIOExceptionprotected String getDefaultAudioEffects() throws IOException
getDefaultAudioEffects in class MaryClientIOException - IOExceptionpublic String requestDefaultEffectParameters(String effectName) throws IOException, UnknownHostException
requestDefaultEffectParameters in class MaryClientIOExceptionUnknownHostExceptionpublic String requestFullEffect(String effectName, String currentEffectParams) throws IOException, UnknownHostException
requestFullEffect in class MaryClientIOExceptionUnknownHostExceptionprotected void fillEffectHelpText(String effectName) throws IOException
fillEffectHelpText in class MaryClientIOExceptionpublic boolean isHMMEffect(String effectName) throws IOException, UnknownHostException
isHMMEffect in class MaryClientIOExceptionUnknownHostExceptionpublic String getFeatures(String locale) throws IOException
getFeatures in class MaryClientIOExceptionpublic String getFeaturesForVoice(String voice) throws IOException
getFeaturesForVoice in class MaryClientIOExceptionprotected void fillAudioFileFormatAndOutTypes()
throws IOException
fillAudioFileFormatAndOutTypes in class MaryClientIOExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.