larksr_websdk 3.2.32 → 3.2.33
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/dist/doc/update.md +44 -0
- package/dist/larksr-web-sdk.min.js +1 -1
- package/dist/types/larksr.d.ts +2 -2
- package/package.json +1 -1
- package/types/larksr.d.ts +2 -2
package/dist/doc/update.md
CHANGED
|
@@ -8,3 +8,47 @@
|
|
|
8
8
|
1. [添加像素流送支持](https://docs.unrealengine.com/4.27/zh-CN/SharingAndReleasing/PixelStreaming/PixelStreamingIntro/)。
|
|
9
9
|
2. 完善安全性, 添加 SDK ID 加密配置。
|
|
10
10
|
3. 移除 CreateLarkSRClientFromePXYHost,CreateLarkSRClientFromeAPI, CreateLarkSRClientFromeUrl 函数。直接使用 `new LarkSR(config: ILarkSRConfig)` 方式创建对象。
|
|
11
|
+
|
|
12
|
+
## V3.2.33
|
|
13
|
+
|
|
14
|
+
1. 添加智能语音相关接口支持
|
|
15
|
+
|
|
16
|
+
LarkSR 对象添加:
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
/**
|
|
20
|
+
* 开始智能语音对话文本输入
|
|
21
|
+
* 应在只能语音为开始状态下开始输入
|
|
22
|
+
* @param text 输入的文本
|
|
23
|
+
* @returns 返回对话 ID
|
|
24
|
+
*/
|
|
25
|
+
public aiDmTextInput(text: string) {
|
|
26
|
+
/**
|
|
27
|
+
* 开始智能语音对话语音输入,自动请求录音权限
|
|
28
|
+
* 应在只能语音为开始状态下开始输入
|
|
29
|
+
* @returns 成功返回对话id,失败返回异常
|
|
30
|
+
*/
|
|
31
|
+
public startAiDmVoiceInput() {
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 停止智能语音输入,通知语音引擎当前用户输入对话结束
|
|
35
|
+
* @returns 返回当前对话的id
|
|
36
|
+
*/
|
|
37
|
+
public stopAiDmVoiceInput() {
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
LarkSR 添加如下事件:
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
larksr.on('aivoicestatus', (e) => {
|
|
44
|
+
// 智能语音服务状态
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
larksr.on('aivoiceasrresult', (e) => {
|
|
48
|
+
// 智能语音转文字识别结果
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
larksr.on('aivoicedmresult', (e) => {
|
|
52
|
+
// 智能语音对话结果
|
|
53
|
+
});
|
|
54
|
+
```
|