public class MarySocketClient 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 |
---|
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, usage
public 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 MaryClient
IOException
protected void fillServerVersion() throws IOException, UnknownHostException
fillServerVersion
in class MaryClient
IOException
- if communication with the server failsUnknownHostException
- if the host could not be foundprotected void fillDataTypes() throws UnknownHostException, IOException
fillDataTypes
in class MaryClient
UnknownHostException
IOException
protected void fillVoices() throws IOException, UnknownHostException
fillVoices
in class MaryClient
IOException
UnknownHostException
protected void fillLocales() throws IOException, UnknownHostException
fillLocales
in class MaryClient
IOException
UnknownHostException
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, UnknownHostException
requestDefaultEffectParameters
in class MaryClient
IOException
UnknownHostException
public String requestFullEffect(String effectName, String currentEffectParams) throws IOException, UnknownHostException
requestFullEffect
in class MaryClient
IOException
UnknownHostException
protected void fillEffectHelpText(String effectName) throws IOException
fillEffectHelpText
in class MaryClient
IOException
public boolean isHMMEffect(String effectName) throws IOException, UnknownHostException
isHMMEffect
in class MaryClient
IOException
UnknownHostException
public String getFeatures(String locale) throws IOException
getFeatures
in class MaryClient
IOException
public String getFeaturesForVoice(String voice) throws IOException
getFeaturesForVoice
in class MaryClient
IOException
protected void fillAudioFileFormatAndOutTypes() throws IOException
fillAudioFileFormatAndOutTypes
in class MaryClient
IOException
Copyright © 2000–2016 DFKI GmbH. All rights reserved.