g-ai-robot3 0.1.81 → 0.1.82

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.
Files changed (2) hide show
  1. package/README.md +12 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -19,9 +19,8 @@ import "g-ai-robot3/dist/g-ai-robot3.css";
19
19
  :canvasWidth="180" :canvasHeight="180" :videoStyle="{width:'180px',visibility:'hidden'}" :digitalStyle="{width:'180px',height:'180px'}"
20
20
  >
21
21
  </g-ai-robot>
22
-
23
- ## 必填参数 (Required Parameters)
24
-
22
+ ```
23
+ ### 必填参数 (Required Parameters)
25
24
 
26
25
  | 参数 | 说明 | 类型 | 示例值 | 注意事项 |
27
26
  |--------------------|-----------------------|--------------|-----------------------------------------|--------------------------------------------------------------------------|
@@ -36,7 +35,7 @@ import "g-ai-robot3/dist/g-ai-robot3.css";
36
35
  | :canvasWidth="180" :canvasHeight="180" :videoStyle="{width:'180px',visibility:'hidden'}" :digitalStyle="{width:'180px',height:'180px'}" |
37
36
 
38
37
  ## 基础配置参数
39
-
38
+ ```
40
39
  | 参数 | 说明 | 类型 | 默认值 |
41
40
  |---------------------|---------------------------------------|------------|-----------------------------------------|
42
41
  | `isDebug` | 是否开启调试模式(打印语音输出) | boolean | `false` |
@@ -55,9 +54,9 @@ import "g-ai-robot3/dist/g-ai-robot3.css";
55
54
  | `useAudio` | 是否启用音频功能 | boolean | `true` |
56
55
  | `space` | 监听间隔(ms) 已废弃 | number | `3000` |
57
56
  | `mode` | 交互模式,默认video,其他已废弃 | string | `"video"` |
58
-
57
+ ```
59
58
  ### API 配置
60
-
59
+ ```
61
60
  | 参数 | 说明 | 类型 | 默认值 |
62
61
  |---------------------------|--------------------------------|------------|-----------------------------------------|
63
62
  | `apiPrefix` | API基础路径,自定义跨域 | string | `'/api21215'` |
@@ -68,9 +67,9 @@ import "g-ai-robot3/dist/g-ai-robot3.css";
68
67
  | `audioWs` | 语音WebSocket服务 | string | `wss://model.keepsoft.net:39002/funasrWs` |
69
68
  | `voiceprintWs` | 声纹识别WebSocket服务 | string | `wss://model.keepsoft.net:39002/speakerWs` |
70
69
  | `instructWs` | 指令WebSocket服务(已废弃) | string | `wss://model.keepsoft.net:39002/commandWs` |
71
-
70
+ ```
72
71
  ### 数字人配置
73
-
72
+ ```
74
73
  | 参数 | 说明 | 类型 | 默认值 |
75
74
  |------------------------|--------------------------|--------------|----------------------------|
76
75
  | `videoStyle` | 视频样式 | CSSProperties | `{ width: "180px", visibility: "hidden" }` |
@@ -84,9 +83,9 @@ import "g-ai-robot3/dist/g-ai-robot3.css";
84
83
  | `humanaudio` | 数字人音频接口 | string | `${apiPrefix}/metahuman/humanaudio` |
85
84
  | `stop_audio` | 停止音频接口 | string | `${apiPrefix}/metahuman/stop_audio` |
86
85
  | `textDriven` | 文本驱动接口 | string | `${apiPrefix}/intelligentVoice/tts` |
87
-
86
+ ```
88
87
  ### 消息气泡配置
89
-
88
+ ```
90
89
  | 参数 | 说明 | 类型 | 默认值 |
91
90
  |--------------------|--------------------------|---------|---------|
92
91
  | `showMsgNumber` | 显示消息数量 | number | `5` |
@@ -94,9 +93,7 @@ import "g-ai-robot3/dist/g-ai-robot3.css";
94
93
  | `useCustomDialog` | 是否使用自定义对话框 | boolean | `false` |
95
94
  | `BubbleWidth` | 气泡宽度 | number | `220` |
96
95
  | `BubbleBottom` | 气泡底部距离 | number | `85` |
97
-
98
- ## 事件处理
99
-
96
+ ```
100
97
  ### 关键词触发事件,工作流处理
101
98
 
102
99
  ```typescript
@@ -115,4 +112,5 @@ eventFun: [
115
112
  console.log("打开技术舱");
116
113
  }
117
114
  }
118
- ]
115
+ ]
116
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "g-ai-robot3",
3
3
  "private": false,
4
- "version": "0.1.81",
4
+ "version": "0.1.82",
5
5
  "type": "module",
6
6
  "main": "dist/g-ai-robot3.js",
7
7
  "module": "dist/g-ai-robot3.es.js",