tencentcloud-sdk-nodejs-trtc 4.1.40 → 4.1.44
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/package.json
CHANGED
|
@@ -140,10 +140,27 @@ export interface ServerPushText {
|
|
|
140
140
|
StopAfterPlay?: boolean;
|
|
141
141
|
/**
|
|
142
142
|
* 服务端推送播报音频
|
|
143
|
-
|
|
143
|
+
格式说明:音频必须为单声道,采样率必须跟对应TTS的采样率保持一致,编码为Base64字符串。
|
|
144
144
|
输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
|
|
145
145
|
*/
|
|
146
146
|
Audio?: string;
|
|
147
|
+
/**
|
|
148
|
+
* 默认为0,仅在Interrupt为false时有效
|
|
149
|
+
- 0表示当前有交互发生时,会丢弃Interrupt为false的消息
|
|
150
|
+
- 1表示当前有交互发生时,不会丢弃Interrupt为false的消息,而是缓存下来,等待当前交互结束后,再去处理
|
|
151
|
+
|
|
152
|
+
注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空
|
|
153
|
+
*/
|
|
154
|
+
DropMode?: number;
|
|
155
|
+
/**
|
|
156
|
+
* ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。**目前仅支持传入0,如果需要传入1,请提工单联系我们添加权限。**
|
|
157
|
+
注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。
|
|
158
|
+
例子:
|
|
159
|
+
- Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断
|
|
160
|
+
- Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断
|
|
161
|
+
|
|
162
|
+
*/
|
|
163
|
+
Priority?: number;
|
|
147
164
|
}
|
|
148
165
|
/**
|
|
149
166
|
* DescribeTRTCMarketQualityMetricData返回参数结构体
|