1.0.0 • Published 3 years ago

duix-js v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Overview

Duix.com is a PaaS platform to empower every company through interactive digital-human services with face-to-face dialogue.

Install

# Install Duix
npm i duix-js -S

Quickstart

import duix from 'duix-js';

const dh = duix.init(options);
dh.ask('who are you?')
dh.say('who are you?')

Options

NameTypeDescriptionExample
tokenstringToken for this session.666886299769D83FB...
urlstringThe URL to the region of the Duix platform.https://api.us.guiji.ai
containerElementThe digital human will be presented in this DOM.document.querySelector('#duix')
loggerboolean | stringThe log level . optional false|'debug'|'info'|'warn'|'error' , default value is false .false

Events

NameDescription
loadThe digital human has been loaded.
playStart playing.
pausePlay Paused.
timeupdateThe digital human is speeking.
endedEnd playing.
errorThere are some mistakes
1.0.0

3 years ago