Transliteration of Thai text
    :param str text: Thai text to be transliterated
    :param str engine: 'ipa' (International Phonetic Alphabet; default) or 'icu'.
    :return: A string of Internaitonal Phonetic Alphabets indicating how the text should be pronounced.

def transliterate(text: str, engine: str = "ipa") -> str:
    """
    Transliteration of Thai text
    :param str text: Thai text to be transliterated
    :param str engine: 'ipa' (International Phonetic Alphabet; default) or 'icu'.
    :return: A string of Internaitonal Phonetic Alphabets indicating how the text should be pronounced.
    """

    if not text or not isinstance(text, str):
        return ""

    if engine == "icu" or engine == "pyicu":
        from .pyicu import transliterate
    else:
        from .ipa import transliterate

    return transliterate(text)