|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModificationPlugin
Interface for the plugin system of emofilt.
Algorithms to modify utterances should implement this.
In order to implement a new modification, authors should
this is an example of the initialisation file:
name|f0Mean label|level type|pitch defaultRate|100 minRate|0 maxRate|400 step|10 rateLabel|rate tooltip|Change the overall level of pitchcontour in percent. Values higher than 100 increase, values lower than that decrease the level. button.tooltip|Click the label to reset the values to default. # Foreground color controlFG|white # Background color controlBG|lightgrey
Method Summary | |
---|---|
java.lang.String |
getModificationType()
Return the type of modification. |
java.lang.String |
getName()
return a unique identifier. |
ModificationPanel |
getPanel()
Return the panel for the GUI to set values. |
void |
init(org.apache.log4j.Logger logger,
boolean useGui)
Initialize Modification and give a logger object. |
Utterance |
modify(Utterance utt,
org.jdom.Element emotion,
double rate,
Language lang)
Change an utterance according to an emotion-description, perhaps depending on the chosen language. |
org.jdom.Element |
setEmotion(org.jdom.Element emotion)
Change the emotion because the user made some change. |
void |
setGui(org.jdom.Element emotion)
Change the Gui because the Emotion might have changed. |
void |
setGuiDefault()
Set GUI to default value; |
void |
setPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Set a PropertyChangeListener so emofilt knows about gui-changes. |
java.lang.String |
toString()
Return the variables for debugging. |
Method Detail |
---|
void init(org.apache.log4j.Logger logger, boolean useGui)
logger
- A log4j logger.useGui
- Indicate whether the GUI will be displayed.Utterance modify(Utterance utt, org.jdom.Element emotion, double rate, Language lang)
utt
- The original utterance.emotion
- The emotion as a jdom element.rate
- The rate of change as a value between 0 and 1. A value of 1
means full effect, 0 no change.lang
- The language of the utterance.
java.lang.String getModificationType()
void setGui(org.jdom.Element emotion)
emotion
- The emotion as a jdom element.org.jdom.Element setEmotion(org.jdom.Element emotion)
emotion
- The emotion as a jdom element.
void setPropertyChangeListener(java.beans.PropertyChangeListener pcl)
java.lang.String getName()
java.lang.String toString()
toString
in class java.lang.Object
void setGuiDefault()
ModificationPanel getPanel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |