Skip to main content

SpeechGetOOCRanges

Callable

  • SpeechGetOOCRanges(Message: string): { length: number; start: number }[]

  • Returns the index where the OOC part of a message starts as well as it's length. Attention: Currently this function does not detect the end of OOC messages properly to mimic the old behaviour before it was introduced. So "length" ALWAYS ranges from the opening parenthesis to the end of the message!!!


    Parameters

    • Message: string

      The message to check

    Returns { length: number; start: number }[]

    Contains the starting position of each detected OOC section of Message (Without OOC section, this references past the end of Message); length - contains the length of the OOC section of Message