AIPlayer DATA
1. AIModel
Item in getAIList() → data.ai[]. Keys are snake_case. Pass ai_name to init({ aiName }).
| Param | Type | Description |
|---|---|---|
ai_name | String | Required. Value for init({ aiName }) |
ai_type | String | Required. '2D' |
ai_display_name | String | Optional. UI label only |
model_id | String | Optional. Catalog id — not the init argument |
language | String | Optional. e.g. 'ko', 'en' |
thumb_url | String | Optional. Thumbnail URL |
2. AIClipSet
| Param | Type | Description |
|---|---|---|
json | Object | AIClipset json object used for GesturePlay |
json.text | String | A sentence to be synthesized |
json.gst | String | Gesture name. |
3. AIGesture
| Param | Type | Description |
|---|---|---|
json | Object | AIClipset json object used for GesturePlay |
json.enableSpeech | Boolean | A boolean indicating whether speech can be performed simultaneously to the gesture |
json.gst | String | Gesture's name |
4. AIPlayerState
| Param | Type | Description |
|---|---|---|
state | Number | AIPlayerState(NONE: 0, INITIALIZE: 1, IDLE: 2, PLAY: 3, PAUSE: 4, RELEASE: 5) |
5. AIError
| Param | Type | Description |
|---|---|---|
json | Object | AIError |
json.code | AIErrorCode | AIError code number |
json.message | String | AIError message |
5.1. AIErrorCode
| Param | Type | Description |
|---|---|---|
code | Number | SDK band: AI_API_ERR: 10000, AI_SERVER_ERR: 11000, AI_RES_ERR: 12000, AI_INIT_ERR: 13000, INVALID_AICLIPSET_ERR: 14000, AICLIPSET_PRELOAD_ERR: 15000, AICLIPSET_PLAY_ERR: 16000, RESERVED_ERR: 17000, UNKNOWN_ERR: -1. Server codes are 0–9999 and are not those SDK bands. Common values: 1402 token expired, 1407 invalid token. 1402 is not INVALID_AICLIPSET_ERR (14000). See Troubleshooting. |
6. AIEvent
| Param | Type | Description |
|---|---|---|
json | Object | AIEvent |
json.type | AIEventType | AIEvent type number |
json.clipSet | AIClipSet | AIClipSet related with this AIEvent |
6.1. AIEventType
| Param | Type | Description |
|---|---|---|
type | Number | AIEventType( RES_LOAD_STARTED: 0, RES_LOAD_COMPLETED: 1, AICLIPSET_PLAY_PREPARE_STARTED: 2, AICLIPSET_PLAY_PREPARE_COMPLETED: 3, AICLIPSET_PRELOAD_STARTED: 4, AICLIPSET_PRELOAD_COMPLETED: 5, AICLIPSET_PRELOAD_FAILED: 6, AICLIPSET_PLAY_STARTED: 7, AICLIPSET_PLAY_COMPLETED: 8, AICLIPSET_PLAY_FAILED: 9, AI_CONNECTED: 10, AI_DISCONNECTED: 11, AICLIPSET_PLAY_BUFFERING: 12, AICLIPSET_RESTART_FROM_BUFFERING: 13, AIPLAYER_STATE_CHANGED: 14, AI_RECONNECT_ATTEMPT: 15, AI_RECONNECT_FAILED: 16, UNKNOWN: -1,) |