Overview
The Duix SDK exposes a set of core methods for initializing, controlling, and interacting with the real-time digital human. All asynchronous methods return a Promise resolving to{ err, data }.
init(options: object): Promise
Initializes the SDK with configuration parameters and prepares the rendering environment.
start(options: object): Promise
Begins rendering the digital human and starts the real-time interaction.Note: Always callParametersstart()after theinitialSuccessevent to ensure all resources are ready:
setVideoMuted(flag: boolean)
Toggles video playback mute state.true = muted, false = unmuted.
break()
Immediately interrupts the current speech or response playback.speak(options: object): Promise
Drives the digital human to speak using text or an audio URL.answer(options: object): Promise
Asks a question and drives the digital human to respond with speech.getAnswer(options: object): Promise
Fetches a platform-generated response to a question without directly playing it.
Return data