All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.daisy.pipeline.tts.SSMLAdapter Maven / Gradle / Ivy

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy