zann-voice 0.1.33 → 0.1.34
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 +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,6 +92,13 @@ voice.connect({
|
|
|
92
92
|
video?: boolean;
|
|
93
93
|
}
|
|
94
94
|
```
|
|
95
|
+
**onMessage type**
|
|
96
|
+
| 属性 | 类型| 是否必须 |备注 |
|
|
97
|
+
| -------------| :-----------: | :-----------: | :-----------: |
|
|
98
|
+
| start | string |是 | 开始新的一轮对话 |
|
|
99
|
+
| user | string |是 | 用户说话ASR识别(全量) |
|
|
100
|
+
| assistant | string |是 | 大模型答案 (全量) |
|
|
101
|
+
| end | string |是 | 这一轮对话结束 |
|
|
95
102
|
|
|
96
103
|
### **2.destroy()销毁,挂断**
|
|
97
104
|
> 销毁,或者挂断由connect()创建的通话
|