org.jvoicexml.implementation.mary
Class MarySynthesizedOutputFactory

java.lang.Object
  extended by org.jvoicexml.implementation.mary.MarySynthesizedOutputFactory
All Implemented Interfaces:
ResourceFactory<SynthesizedOutput>

public class MarySynthesizedOutputFactory
extends Object
implements ResourceFactory<SynthesizedOutput>

implementation of a. ResourceFactory for the SynthesizedOutput based on MaryTTS

Author:
Dirk Schnelle-Walka, Giannis Assiouras

Constructor Summary
MarySynthesizedOutputFactory()
           
 
Method Summary
 SynthesizedOutput createResource()
          
 int getInstances()
           
 Class<SynthesizedOutput> getResourceType()
           
 String getType()
           
 void setAudioType(String value)
          Sets the type of the audio.
 void setInstances(int number)
          Sets the number of instances that this factory will create.
 void setLang(String value)
          Sets the language.
 void setType(String resourceType)
          Sets the type of the resource.
 void setVoiceName(String name)
          Sets the voice that will be used from Mary server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarySynthesizedOutputFactory

public MarySynthesizedOutputFactory()
Method Detail

createResource

public final SynthesizedOutput createResource()
                                       throws NoresourceError

Specified by:
createResource in interface ResourceFactory<SynthesizedOutput>
Throws:
NoresourceError

getInstances

public final int getInstances()
Specified by:
getInstances in interface ResourceFactory<SynthesizedOutput>

getResourceType

public final Class<SynthesizedOutput> getResourceType()
Specified by:
getResourceType in interface ResourceFactory<SynthesizedOutput>

getType

public final String getType()
Specified by:
getType in interface ResourceFactory<SynthesizedOutput>

setInstances

public final void setInstances(int number)
Sets the number of instances that this factory will create.

Parameters:
number - Number of instances to create.

setType

public final void setType(String resourceType)
Sets the type of the resource.

Parameters:
resourceType - type of the resource.

setAudioType

public final void setAudioType(String value)
Sets the type of the audio.

Parameters:
value - type of the audio.

setVoiceName

public final void setVoiceName(String name)
Sets the voice that will be used from Mary server.

Parameters:
name - voice name.

setLang

public final void setLang(String value)
Sets the language.

Parameters:
value - the new language


Copyright © 2010-2011JVoiceXML group.