hmi.tts.util
Class BMLTextUtil

java.lang.Object
  extended by hmi.tts.util.BMLTextUtil

public class BMLTextUtil
extends Object

Various utils to manipulate BML text in the speech behaviour

Author:
Herwin

Constructor Summary
private BMLTextUtil()
           
 
Method Summary
static String BMLToSAPI(String text)
          Converts BML speech text to SAPI speech text, that is: sync => bookmark
static String BMLToSSML(String text)
          Converts BML speech text to SSML speech text, that is: sync => mark
static void getBookmarks(String text, Collection<WordDescription> desc, Collection<Bookmark> bookmarks)
           
static List<SyncAndOffset> getSyncAndOffsetList(String text, int numberOfWords)
           
static String stripSyncs(String text)
          Strip <sync>'s from text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BMLTextUtil

private BMLTextUtil()
Method Detail

stripSyncs

public static String stripSyncs(String text)
Strip <sync>'s from text

Parameters:
text - text to strip
Returns:
stripped text

getSyncAndOffsetList

public static List<SyncAndOffset> getSyncAndOffsetList(String text,
                                                       int numberOfWords)

getBookmarks

public static void getBookmarks(String text,
                                Collection<WordDescription> desc,
                                Collection<Bookmark> bookmarks)

BMLToSSML

public static String BMLToSSML(String text)
Converts BML speech text to SSML speech text, that is: sync => mark


BMLToSAPI

public static String BMLToSAPI(String text)
Converts BML speech text to SAPI speech text, that is: sync => bookmark