public class MaryHttpClient extends MaryClient
A GUI interface to this client
,
Description of the MARY protocol.
MaryClient.AudioPlayerListener, MaryClient.DataType, MaryClient.Voice, MaryClient.WarningReader
beQuiet, 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, usage
public MaryHttpClient() throws IOException
IOException
- if communication with the server failspublic MaryHttpClient(boolean quiet) throws IOException
IOException
public 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 MaryClient
IOException
protected void fillServerVersion() throws IOException
fillServerVersion
in class MaryClient
IOException
protected void fillDataTypes() throws IOException
fillDataTypes
in class MaryClient
IOException
protected void fillVoices() throws IOException
fillVoices
in class MaryClient
IOException
protected void fillLocales() throws IOException
fillLocales
in class MaryClient
IOException
protected void fillVoiceExampleTexts(String voicename) throws IOException
fillVoiceExampleTexts
in class MaryClient
IOException
protected void fillServerExampleText(String dataType, String locale) throws IOException
fillServerExampleText
in class MaryClient
IOException
protected String getDefaultAudioEffects() throws IOException
getDefaultAudioEffects
in class MaryClient
IOException
- IOExceptionpublic String requestDefaultEffectParameters(String effectName) throws IOException
requestDefaultEffectParameters
in class MaryClient
IOException
public String requestFullEffect(String effectName, String currentEffectParameters) throws IOException
requestFullEffect
in class MaryClient
IOException
protected void fillEffectHelpText(String effectName) throws IOException
fillEffectHelpText
in class MaryClient
IOException
public boolean isHMMEffect(String effectName) throws IOException
isHMMEffect
in class MaryClient
IOException
public String getFeatures(String locale) throws IOException
getFeatures
in class MaryClient
IOException
public String getDiscreteFeatures(String locale) throws IOException
IOException
public String getFeaturesForVoice(String voice) throws IOException
getFeaturesForVoice
in class MaryClient
IOException
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) throws IOException
_process
in class MaryClient
IOException
Copyright © 2000–2016 DFKI GmbH. All rights reserved.