org.activemath.webapp.speech
Class SpeechControllerAssistent
java.lang.Object
org.activemath.webapp.speech.SpeechControllerAssistent
- All Implemented Interfaces:
- SpeechControllerAssistentInterface
public class SpeechControllerAssistent
- extends Object
- implements SpeechControllerAssistentInterface
This class is used in the diffenrent controllers to prefer the Data for the Speech Output.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static Category log
SpeechControllerAssistent
public SpeechControllerAssistent(PresentationTool pTool)
SpeechControllerAssistent
public SpeechControllerAssistent(TransformTool tTool)
getTransformedTextFromItem
public String getTransformedTextFromItem(String itemId,
String lang)
- Specified by:
getTransformedTextFromItem in interface SpeechControllerAssistentInterface
- Parameters:
itemId - -
The Id of the itemlang - -
The language in which the text should be transformed.
- Returns:
- - The Content text of the item, parsed for Speech Output in the language of
lang.
getTransformedTextFromExercise
public String getTransformedTextFromExercise(List contents,
String lang)
- Specified by:
getTransformedTextFromExercise in interface SpeechControllerAssistentInterface
- Parameters:
contents - -
The list of contents from the last step in the exercise.lang - -
The language in which the text should be transformed.
- Returns:
- - The feedback text from the last exercise step