public class LocalMaryInterface extends Object implements MaryInterface
Constructor and Description |
---|
LocalMaryInterface() |
public LocalMaryInterface() throws MaryConfigurationException
MaryConfigurationException
protected void init()
protected void setReasonableDefaults()
public void setInputType(String newInputType) throws IllegalArgumentException
setInputType
in interface MaryInterface
IllegalArgumentException
public String getInputType()
getInputType
in interface MaryInterface
public void setOutputType(String newOutputType) throws IllegalArgumentException
setOutputType
in interface MaryInterface
IllegalArgumentException
public String getOutputType()
getOutputType
in interface MaryInterface
public void setLocale(Locale newLocale) throws IllegalArgumentException
setLocale
in interface MaryInterface
IllegalArgumentException
public Locale getLocale()
getLocale
in interface MaryInterface
public void setVoice(String voiceName) throws IllegalArgumentException
setVoice
in interface MaryInterface
IllegalArgumentException
public String getVoice()
getVoice
in interface MaryInterface
public void setAudioEffects(String audioEffects)
setAudioEffects
in interface MaryInterface
public String getAudioEffects()
getAudioEffects
in interface MaryInterface
public void setStyle(String newStyle)
setStyle
in interface MaryInterface
public String getStyle()
getStyle
in interface MaryInterface
public void setOutputTypeParams(String params)
setOutputTypeParams
in interface MaryInterface
public String getOutputTypeParams()
getOutputTypeParams
in interface MaryInterface
public void setStreamingAudio(boolean newIsStreaming)
setStreamingAudio
in interface MaryInterface
public boolean isStreamingAudio()
isStreamingAudio
in interface MaryInterface
public String generateText(String text) throws SynthesisException
generateText
in interface MaryInterface
SynthesisException
public String generateText(Document doc) throws SynthesisException
generateText
in interface MaryInterface
SynthesisException
public Document generateXML(String text) throws SynthesisException
generateXML
in interface MaryInterface
SynthesisException
public Document generateXML(Document doc) throws SynthesisException
generateXML
in interface MaryInterface
SynthesisException
public AudioInputStream generateAudio(String text) throws SynthesisException
generateAudio
in interface MaryInterface
SynthesisException
public AudioInputStream generateAudio(Document doc) throws SynthesisException
generateAudio
in interface MaryInterface
SynthesisException
public Set<String> getAvailableVoices()
getAvailableVoices
in interface MaryInterface
public Set<String> getAvailableVoices(Locale aLocale)
getAvailableVoices
in interface MaryInterface
public Set<Locale> getAvailableLocales()
getAvailableLocales
in interface MaryInterface
public Set<String> getAvailableInputTypes()
getAvailableInputTypes
in interface MaryInterface
public Set<String> getAvailableOutputTypes()
getAvailableOutputTypes
in interface MaryInterface
public boolean isTextType(String dataType)
isTextType
in interface MaryInterface
public boolean isXMLType(String dataType)
isXMLType
in interface MaryInterface
public boolean isAudioType(String dataType)
isAudioType
in interface MaryInterface
Copyright © 2000–2016 DFKI GmbH. All rights reserved.