tencentcloud-sdk-nodejs-trtc 4.1.56 → 4.1.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/package.json
CHANGED
|
@@ -75,6 +75,10 @@ export interface AgentConfig {
|
|
|
75
75
|
* 声纹配置
|
|
76
76
|
*/
|
|
77
77
|
VoicePrint?: VoicePrint;
|
|
78
|
+
/**
|
|
79
|
+
* 语义断句检测
|
|
80
|
+
*/
|
|
81
|
+
TurnDetection?: TurnDetection;
|
|
78
82
|
}
|
|
79
83
|
/**
|
|
80
84
|
* CreatePicture请求参数结构体
|
|
@@ -3393,7 +3397,7 @@ export interface VideoParams {
|
|
|
3393
3397
|
*/
|
|
3394
3398
|
export interface RegisterVoicePrintRequest {
|
|
3395
3399
|
/**
|
|
3396
|
-
* 整个wav音频文件的base64字符串,其中wav文件限定为16k
|
|
3400
|
+
* 整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
|
|
3397
3401
|
*/
|
|
3398
3402
|
Audio: string;
|
|
3399
3403
|
/**
|
|
@@ -3865,6 +3869,32 @@ export interface AgentParams {
|
|
|
3865
3869
|
*/
|
|
3866
3870
|
MaxIdleTime?: number;
|
|
3867
3871
|
}
|
|
3872
|
+
/**
|
|
3873
|
+
* 断句配置
|
|
3874
|
+
*/
|
|
3875
|
+
export interface TurnDetection {
|
|
3876
|
+
/**
|
|
3877
|
+
* TurnDetectionMode为3时生效,语义断句的灵敏程度
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
功能简介:根据用户所说的话来判断其已完成发言来分割音频
|
|
3881
|
+
|
|
3882
|
+
|
|
3883
|
+
可选: "low" | "medium" | "high" | "auto"
|
|
3884
|
+
|
|
3885
|
+
|
|
3886
|
+
auto 是默认值,与 medium 相同。
|
|
3887
|
+
low 将让用户有足够的时间说话。
|
|
3888
|
+
high 将尽快对音频进行分块。
|
|
3889
|
+
|
|
3890
|
+
|
|
3891
|
+
如果您希望模型在对话模式下更频繁地响应,可以将 SemanticEagerness 设置为 high
|
|
3892
|
+
如果您希望在用户停顿时,AI能够等待片刻,可以将 SemanticEagerness 设置为 low
|
|
3893
|
+
无论什么模式,最终都会分割送个大模型进行回复
|
|
3894
|
+
|
|
3895
|
+
*/
|
|
3896
|
+
SemanticEagerness?: string;
|
|
3897
|
+
}
|
|
3868
3898
|
/**
|
|
3869
3899
|
* UpdateStreamIngest请求参数结构体
|
|
3870
3900
|
*/
|
|
@@ -3951,7 +3981,7 @@ export interface UpdateVoicePrintRequest {
|
|
|
3951
3981
|
*/
|
|
3952
3982
|
AudioFormat?: number;
|
|
3953
3983
|
/**
|
|
3954
|
-
* 整个wav音频文件的base64字符串,其中wav文件限定为16k
|
|
3984
|
+
* 整个wav音频文件的base64字符串,其中wav文件限定为16k采样率, 16bit位深, 单声道, 8到18秒音频时长,有效音频不小于6秒(不能有太多静音段),编码数据大小不超过2M
|
|
3955
3985
|
*/
|
|
3956
3986
|
Audio?: string;
|
|
3957
3987
|
/**
|