org.daisy.pipeline.tts.SSMLAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tts-common Show documentation
Show all versions of tts-common Show documentation
Common API for TTS functionality
The newest version!
package org.daisy.pipeline.tts;
import net.sf.saxon.s9api.QName;
/**
* Transform the SSML according to the TTS engine's features and bugs
*/
public interface SSMLAdapter {
String getHeader(String voiceName);
String getFooter();
/**
* @return null to discard the element
*/
QName adaptElement(QName element);
/**
* @return a clean version of the input text.
*/
String adaptText(String text);
/**
* @return null to discard the attribute
*/
QName adaptAttributeName(QName element, QName attr, String value);
String adaptAttributeValue(QName element, QName attr, String value);
}