@crh-fe/oava-customer-sdk 1.0.58 → 1.0.59
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 +1 -1
- package/dist/customerComponent.js +496 -305
- package/dist/customerComponent.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ client.init("", {
|
|
|
101
101
|
| `userFaceBase64` | `string` | 否 | 用户人脸 base64,用于人像比对 |
|
|
102
102
|
| `isBrowserEnv` | `boolean` | 否 | 是否为浏览器环境,默认 `true`。浏览器传 `true`:返回按钮/录制提示 `top: 0`、上方视频区 `top: 40px`;App WebView 传 `false`:保留默认顶部留白,对应位置为 `50px`、`90px`。SDK 不会自动识别运行环境 |
|
|
103
103
|
| `recordAnswerOnly` | `boolean` | 否 | 默认 `false`,沿用现有收音逻辑。设为 `true` 时,录制期间仅在倒计时回答阶段录入客户声音;播报、等待及倒计时结束后,客户麦克风音轨静音。视频和坐席播报声音持续保留,不区分数字人或人工坐席 |
|
|
104
|
-
| `
|
|
104
|
+
| `asrConfig` | `object` | 否 | `{ type: 0 }` 为离线(默认);`{ type: 1, licenseCode: '...' }` 为实时。客户端仅在收到开始录制通知(`system-recordId`)时通过无请求体的 `POST aiServerUrl + '/witness/queryRealAsrConfig'`、`license-code` 请求头获取一次 `ws_url` 和 `token` 并持续复用,无需直接传入凭据;复用本地 RTC 音频流,实时回答最多 10 秒 |
|
|
105
105
|
|
|
106
106
|
实时模式的配置示例、黑白名单匹配及结束方式见 [实时 ASR 接入说明](../../REALTIME_ASR.md)。
|
|
107
107
|
|