public class MaryHttpClient extends MaryClient
A GUI interface to this client,
Description of the MARY protocol.MaryClient.AudioPlayerListener, MaryClient.DataType, MaryClient.Voice, MaryClient.WarningReaderbeQuiet, data, doProfile| Constructor and Description |
|---|
MaryHttpClient()
The simplest way to create a mary client.
|
MaryHttpClient(Address serverAddress)
The typical way to create a mary client.
|
MaryHttpClient(Address serverAddress,
boolean profile,
boolean quiet)
An alternative way to create a mary client, which works with applets.
|
MaryHttpClient(boolean quiet) |
| 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() |
protected void |
fillVoiceExampleTexts(String voicename) |
protected void |
fillVoices() |
protected String |
getDefaultAudioEffects()
Request the available audio effects for a voice from the server
|
String |
getDiscreteFeatures(String locale) |
String |
getFeatures(String locale) |
String |
getFeaturesForVoice(String voice) |
boolean |
isHMMEffect(String effectName) |
String |
requestDefaultEffectParameters(String effectName) |
String |
requestFullEffect(String effectName,
String currentEffectParameters) |
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 MaryHttpClient()
throws IOException
IOException - if communication with the server failspublic MaryHttpClient(boolean quiet)
throws IOException
IOExceptionpublic MaryHttpClient(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 MaryHttpClient(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 fillAudioFileFormatAndOutTypes()
throws IOException
fillAudioFileFormatAndOutTypes in class MaryClientIOExceptionprotected void fillServerVersion()
throws IOException
fillServerVersion in class MaryClientIOExceptionprotected void fillDataTypes()
throws IOException
fillDataTypes in class MaryClientIOExceptionprotected void fillVoices()
throws IOException
fillVoices in class MaryClientIOExceptionprotected void fillLocales()
throws IOException
fillLocales in class MaryClientIOExceptionprotected 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
requestDefaultEffectParameters in class MaryClientIOExceptionpublic String requestFullEffect(String effectName, String currentEffectParameters) throws IOException
requestFullEffect in class MaryClientIOExceptionprotected void fillEffectHelpText(String effectName) throws IOException
fillEffectHelpText in class MaryClientIOExceptionpublic boolean isHMMEffect(String effectName) throws IOException
isHMMEffect in class MaryClientIOExceptionpublic String getFeatures(String locale) throws IOException
getFeatures in class MaryClientIOExceptionpublic String getDiscreteFeatures(String locale) throws IOException
IOExceptionpublic String getFeaturesForVoice(String voice) throws IOException
getFeaturesForVoice in class MaryClientIOExceptionprotected 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 MaryClientIOExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.