virtual-human-cf 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -113,7 +113,14 @@ const onEnded = () => {
|
|
|
113
113
|
| 事件名 | 说明 | 回调参数 |
|
|
114
114
|
|--------|------|----------|
|
|
115
115
|
| connected | WebSocket 连接成功 | - |
|
|
116
|
-
| eventNotifaction | 自定义事件接收器 |
|
|
116
|
+
| eventNotifaction | 自定义事件接收器 | 载荷数据 |
|
|
117
|
+
| end | 数字人对话结束 | 载荷数据 |
|
|
118
|
+
| pause | 暂停播放 | 载荷数据 |
|
|
119
|
+
| error | 错误事件 | 错误信息 |
|
|
120
|
+
| playComplete | 播放完成,数字人对话结束,关闭数字人 | - |
|
|
121
|
+
|
|
122
|
+
```json
|
|
123
|
+
eventNotifaction => 载荷数据 :{
|
|
117
124
|
|
|
118
125
|
"type": "send_event",
|
|
119
126
|
// 自定义事件名称
|
|
@@ -122,11 +129,8 @@ const onEnded = () => {
|
|
|
122
129
|
"params": {
|
|
123
130
|
"domid": "wrap-1"
|
|
124
131
|
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
| pause | 暂停播放 | 载荷数据 |
|
|
128
|
-
| error | 错误事件 | 错误信息 |
|
|
129
|
-
| playComplete | 播放完成,数字人对话结束,关闭数字人 | - |
|
|
132
|
+
}
|
|
133
|
+
```
|
|
130
134
|
|
|
131
135
|
#### 示例
|
|
132
136
|
|