trtc-cloud-js-sdk 2.12.1 → 2.12.2-beta.0
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 +1 -1
- package/trtc-cloud-js-sdk.d.ts +45 -1
- package/trtc-cloud-js-sdk.esm.js +1 -1
- package/trtc-cloud-js-sdk.js +1 -1
package/package.json
CHANGED
package/trtc-cloud-js-sdk.d.ts
CHANGED
|
@@ -58,6 +58,20 @@ declare enum TRTCAudioQuality {
|
|
|
58
58
|
TRTCAudioQualityDefault = 2,
|
|
59
59
|
TRTCAudioQualityMusic = 3
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* 音频场景增强枚举(实验接口配套类型)
|
|
63
|
+
*
|
|
64
|
+
* 用于 `callExperimentalAPI` 的 `setAudioQualityEx` 接口,与 `TRTCAudioQuality`
|
|
65
|
+
*
|
|
66
|
+
* - `default` (0):普通场景,关闭 AI 降噪
|
|
67
|
+
* - `silent` (8):安静场景,开启 AI 降噪(mode 由 audioQuality 决定)
|
|
68
|
+
* - `hifi2` (18):高保真 v2 场景,开启 AI 降噪(mode 由 audioQuality 决定)
|
|
69
|
+
*/
|
|
70
|
+
declare enum TRTCAudioSceneEx {
|
|
71
|
+
default = 0,
|
|
72
|
+
silent = 8,
|
|
73
|
+
hifi2 = 18
|
|
74
|
+
}
|
|
61
75
|
/**
|
|
62
76
|
* 设备信息<br>
|
|
63
77
|
* @param {String} deviceId - 设备PID,字符编码格式是UTF-8
|
|
@@ -1101,6 +1115,14 @@ declare class TRTC_Cloud extends EventEmitter {
|
|
|
1101
1115
|
private _isBeautyEnabled;
|
|
1102
1116
|
private _isTestBeautyEnabled;
|
|
1103
1117
|
private _enableAutoPlayDialog;
|
|
1118
|
+
private _sdkAppId;
|
|
1119
|
+
private _userId;
|
|
1120
|
+
private _userSig;
|
|
1121
|
+
private _currentAudioQuality;
|
|
1122
|
+
private _lastAudioScene;
|
|
1123
|
+
private _isAIDenoiserEnabled;
|
|
1124
|
+
private _currentAIDenoiserMode;
|
|
1125
|
+
private _pendingAIDenoiserApply;
|
|
1104
1126
|
private _remoteStatisticsUserIdList;
|
|
1105
1127
|
private _hasJoinedRoom;
|
|
1106
1128
|
private _isExitingRoom;
|
|
@@ -1749,6 +1771,28 @@ declare class TRTC_Cloud extends EventEmitter {
|
|
|
1749
1771
|
setBeautyStyle(style: TRTCBeautyStyle, beautyLevel: number, whitenessLevel: number, ruddinessLevel: number): Promise<void>;
|
|
1750
1772
|
setTestBeautyStyle(style: TRTCBeautyStyle, beautyLevel: number, whitenessLevel: number, ruddinessLevel: number): Promise<void>;
|
|
1751
1773
|
useBeautyStyle(assetsPath?: string): Promise<void>;
|
|
1774
|
+
/**
|
|
1775
|
+
* 设置音频质量增强(AI 降噪)。仅缓存 audioScene 并触发一次状态机决策,
|
|
1776
|
+
* 真实开关由 _applyAIDenoiserDecision 完成。
|
|
1777
|
+
*
|
|
1778
|
+
* 约束:必须在 enterRoom 成功之后调用;之前调用会被 pending 并等待成功进房后调用。
|
|
1779
|
+
*
|
|
1780
|
+
* @param params.audioScene - 见 TRTCAudioSceneEx
|
|
1781
|
+
*/
|
|
1782
|
+
private _setAudioQualityEx;
|
|
1783
|
+
/**
|
|
1784
|
+
* AI 降噪状态机:基于当前 _currentAudioQuality + _lastAudioScene 决定开/关/切 mode。
|
|
1785
|
+
* 被 _setAudioQualityEx 和 startLocalAudio(主动模式)共用。
|
|
1786
|
+
*/
|
|
1787
|
+
private _applyAIDenoiserDecision;
|
|
1788
|
+
/**
|
|
1789
|
+
* 决策矩阵:
|
|
1790
|
+
* - audioScene === default -> 关闭
|
|
1791
|
+
* - audioQuality === TRTCAudioQualityMusic -> 关闭
|
|
1792
|
+
* - audioQuality === TRTCAudioQualitySpeech + audioScene 非 default -> 1 (远场)
|
|
1793
|
+
* - 其它(Default + 非 default scene) -> 0 (基础)
|
|
1794
|
+
*/
|
|
1795
|
+
private _resolveAIDenoiserMode;
|
|
1752
1796
|
private _handleBeautyStyleParam;
|
|
1753
1797
|
private _resetBeautyStyle;
|
|
1754
1798
|
/**
|
|
@@ -1999,4 +2043,4 @@ declare class TRTC_Cloud extends EventEmitter {
|
|
|
1999
2043
|
getAITranscriberManager(): AITranscriberManager;
|
|
2000
2044
|
}
|
|
2001
2045
|
|
|
2002
|
-
export { AITranscriberListener, AudioMuteType, IAITranscriberManager, ITRTCMediaMixingEvent, ITRTCMediaMixingManager, InteractionOption, Rect, TRTCAppScene, TRTCAudioQuality, TRTCBeautyStyle, TRTCCameraCaptureMode, TRTCCameraCaptureParams, TRTCDeviceInfo, TRTCDeviceState, TRTCDeviceType, TRTCImageBuffer, TRTCLocalStatistics, TRTCLogLevel, TRTCMediaMixingEncParam, TRTCMediaMixingErrorCode, TRTCMediaMixingEvent, TRTCMediaSource, TRTCMediaSourceType, TRTCMixInputType, TRTCMixUser, TRTCNetworkQosParam, TRTCParams, TRTCPublishCDNParam, TRTCQosControlMode, TRTCQuality, TRTCQualityInfo, TRTCRemoteStatistics, TRTCRenderParams, TRTCRoleType, TRTCScreenCaptureProperty, TRTCScreenCaptureSourceInfo, TRTCScreenCaptureSourceType, TRTCStatistics, TRTCTranscodingConfig, TRTCTranscodingConfigMode, TRTCVideoEncParam, TRTCVideoFillMode, TRTCVideoMirrorType, TRTCVideoQosPreference, TRTCVideoResolution, TRTCVideoResolutionMode, TRTCVideoRotation, TRTCVideoStreamType, TRTCVolumeInfo, TranscriberMessage, TranscriberParams, TRTC_Cloud as default };
|
|
2046
|
+
export { AITranscriberListener, AudioMuteType, IAITranscriberManager, ITRTCMediaMixingEvent, ITRTCMediaMixingManager, InteractionOption, Rect, TRTCAppScene, TRTCAudioQuality, TRTCAudioSceneEx, TRTCBeautyStyle, TRTCCameraCaptureMode, TRTCCameraCaptureParams, TRTCDeviceInfo, TRTCDeviceState, TRTCDeviceType, TRTCImageBuffer, TRTCLocalStatistics, TRTCLogLevel, TRTCMediaMixingEncParam, TRTCMediaMixingErrorCode, TRTCMediaMixingEvent, TRTCMediaSource, TRTCMediaSourceType, TRTCMixInputType, TRTCMixUser, TRTCNetworkQosParam, TRTCParams, TRTCPublishCDNParam, TRTCQosControlMode, TRTCQuality, TRTCQualityInfo, TRTCRemoteStatistics, TRTCRenderParams, TRTCRoleType, TRTCScreenCaptureProperty, TRTCScreenCaptureSourceInfo, TRTCScreenCaptureSourceType, TRTCStatistics, TRTCTranscodingConfig, TRTCTranscodingConfigMode, TRTCVideoEncParam, TRTCVideoFillMode, TRTCVideoMirrorType, TRTCVideoQosPreference, TRTCVideoResolution, TRTCVideoResolutionMode, TRTCVideoRotation, TRTCVideoStreamType, TRTCVolumeInfo, TranscriberMessage, TranscriberParams, TRTC_Cloud as default };
|