|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
eu.semaine.components.Component
eu.semaine.components.mary.SpeechPreprocessor
public class SpeechPreprocessor
Speech preprocessor : To find pitch accent and boundaries Speech BML realiser : Audio synthesis and phone timings
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class eu.semaine.components.Component |
|---|
Component.State |
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class eu.semaine.components.Component |
|---|
inputWaiting, isInput, isOutput, log, meta, receivers, senders, state, waitingTime |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
|
SpeechPreprocessor()
|
protected |
SpeechPreprocessor(java.lang.String compName,
java.lang.String fmlReceiverTopic,
java.lang.String bmlReceiverTopic,
java.lang.String fmlbmlSenderTopic)
Protected constructor which must be called by every constructor |
| Method Summary | |
|---|---|
protected void |
customStartIO()
Any custom startup code can go here. |
java.lang.String |
getCurrentCharacter()
|
static java.util.Locale |
getMessageLocale(SEMAINEXMLMessage xm)
For an FML-APML or BML message, find the content of the 'language' attribute of the speech tag, and return a corresponding Locale object. |
static marytts.modules.synthesis.Voice |
getVoice(SEMAINEXMLMessage xm,
java.lang.String character)
Find a suitable voice for the given combination of FML-APML message and character name. |
static java.lang.String |
getVoiceEffects(SEMAINEXMLMessage xm,
java.lang.String character)
For the given combination of FML-APML message and character name, if they fit together, return any voice effects listed in the character's entry in the CharacterConfigInfo. |
void |
react(SEMAINEMessage m)
Reactions to messages. |
| Methods inherited from class eu.semaine.components.Component |
|---|
act, exitRequested, messageAvailableFrom, requestExit, run |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpeechPreprocessor()
throws javax.jms.JMSException
componentName -
javax.jms.JMSException
protected SpeechPreprocessor(java.lang.String compName,
java.lang.String fmlReceiverTopic,
java.lang.String bmlReceiverTopic,
java.lang.String fmlbmlSenderTopic)
throws javax.jms.JMSException
compName -
javax.jms.JMSException| Method Detail |
|---|
protected void customStartIO()
throws java.lang.Exception
Component
customStartIO in class Componentjava.lang.Exception - if anything goes wrong in the internal processing of the component.
public void react(SEMAINEMessage m)
throws java.lang.Exception
Component
react in class Componentjavax.jms.JMSException - if communication with the JMS server goes wrong.
java.lang.Exception - if anything goes wrong in the internal processing of the component.public static java.util.Locale getMessageLocale(SEMAINEXMLMessage xm)
xm -
public static marytts.modules.synthesis.Voice getVoice(SEMAINEXMLMessage xm,
java.lang.String character)
throws SystemConfigurationException
xm - an FML-APML messagecharacter - a character name
SystemConfigurationException - if no voice can be found for the given character
public static java.lang.String getVoiceEffects(SEMAINEXMLMessage xm,
java.lang.String character)
xm - an FML-APML messagecharacter - a character name
public java.lang.String getCurrentCharacter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||