基于WebSocket的单独输出数字人

Hierarchy

Constructors

Properties

prefixed: string | boolean

Methods

  • Type Parameters

    Parameters

    • event: T
    • fn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any

    Returns this

  • Calls each of the listeners registered for a given event.

    Type Parameters

    Parameters

    • event: T
    • Rest...args: any[]

    Returns boolean

  • Returns void

  • Returns {
        arkitFace: null | {};
    }

    • arkitFace: null | {}
  • Returns void

  • Return the listeners registered for a given event.

    Type Parameters

    Parameters

    • event: T

    Returns ((...args: any[]) => void)[]

  • Type Parameters

    Parameters

    • event: T
    • Optionalfn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any
    • Optionalonce: boolean

    Returns this

  • Add a listener for a given event.

    Type Parameters

    Parameters

    • event: T
    • fn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any

    Returns this

  • Add a one-time listener for a given event.

    Type Parameters

    Parameters

    • event: T
    • fn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any

    Returns this

  • Parameters

    • func: ((err: TYError) => void)
        • (err): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • func: (() => void)
        • (): void
        • Returns void

    Returns void

  • Remove all listeners, or those of the specified event.

    Parameters

    Returns this

  • Remove the listeners of a given event.

    Type Parameters

    Parameters

    • event: T
    • Optionalfn: ((...args: any[]) => void)
        • (...args): void
        • Parameters

          • Rest...args: any[]

          Returns void

    • Optionalcontext: any
    • Optionalonce: boolean

    Returns this

  • Parameters

    • options: ISpeech

    Returns void

  • Parameters

    • rootContainer: string | HTMLDivElement

    Returns void

  • Returns void