trtc-electron-sdk 11.4.503-beta.5 → 11.4.503
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/liteav/trtc.d.ts +13 -1
- package/liteav/trtc.js +14 -0
- package/liteav/trtc_define.d.ts +14 -0
- package/liteav/trtc_define.js +50 -2
- package/package.json +1 -1
package/liteav/trtc.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import { VodPlayer } from './vod_player';
|
|
4
|
-
import { AudioMusicParam, Rect, TRTCAppScene, TRTCAudioEffectParam, TRTCAudioQuality, TRTCBeautyStyle, TRTCDeviceState, TRTCDeviceType, TRTCLogLevel, TRTCRenderParams, TRTCRoleType, TRTCSwitchRoomParam, TRTCVideoBufferType, TRTCVideoFillMode, TRTCAudioFrame, TRTCVideoPixelFormat, TRTCVideoRotation, TRTCVideoStreamType, TRTCWaterMarkSrcType, PluginInfo, TRTCAudioRecordingParams, TRTCScreenCaptureSourceInfo, TRTCScreenCaptureProperty, TRTCSpeedTestParams, TRTCRecordType, TRTCDeviceInfo, TRTCCameraCaptureParams, TRTCImageBuffer, TRTCInitConfig, TRTCAudioParallelParams } from './trtc_define';
|
|
4
|
+
import { AudioMusicParam, Rect, TRTCAppScene, TRTCAudioEffectParam, TRTCAudioQuality, TRTCBeautyStyle, TRTCDeviceState, TRTCDeviceType, TRTCLogLevel, TRTCRenderParams, TRTCRoleType, TRTCSwitchRoomParam, TRTCVideoBufferType, TRTCVideoFillMode, TRTCAudioFrame, TRTCVideoPixelFormat, TRTCVideoRotation, TRTCVideoStreamType, TRTCWaterMarkSrcType, PluginInfo, TRTCAudioRecordingParams, TRTCScreenCaptureSourceInfo, TRTCScreenCaptureProperty, TRTCSpeedTestParams, TRTCRecordType, TRTCDeviceInfo, TRTCCameraCaptureParams, TRTCImageBuffer, TRTCInitConfig, TRTCAudioParallelParams, TRTCVoiceReverbType } from './trtc_define';
|
|
5
5
|
export * from './trtc_define';
|
|
6
6
|
export * from './trtc_code';
|
|
7
7
|
export * from './vod_player';
|
|
@@ -1498,6 +1498,8 @@ declare class TRTCCloud extends EventEmitter {
|
|
|
1498
1498
|
* SDK 内部集成了两套风格不同的磨皮算法,一套我们取名叫“光滑”,适用于美女秀场,效果比较明显。
|
|
1499
1499
|
* 另一套我们取名“自然”,磨皮算法更多地保留了面部细节,主观感受上会更加自然。
|
|
1500
1500
|
*
|
|
1501
|
+
* 注意:计算机必须配备显卡,否则该接口功能不生效。
|
|
1502
|
+
*
|
|
1501
1503
|
* @param {TRTCBeautyStyle} style - 美颜风格,光滑或者自然,光滑风格磨皮更加明显,适合娱乐场景。
|
|
1502
1504
|
* - TRTCBeautyStyleSmooth: 光滑,适用于美女秀场,效果比较明显。
|
|
1503
1505
|
* - TRTCBeautyStyleNature: 自然,磨皮算法更多地保留了面部细节,主观感受上会更加自然。
|
|
@@ -2156,6 +2158,16 @@ declare class TRTCCloud extends EventEmitter {
|
|
|
2156
2158
|
* @param {Number} volume - 音量大小,100为正常音量,取值范围为0 - 100;默认值:100
|
|
2157
2159
|
*/
|
|
2158
2160
|
setMusicPublishVolume(id: number, volume: number): void;
|
|
2161
|
+
/**
|
|
2162
|
+
* 设置人声的混响效果
|
|
2163
|
+
*
|
|
2164
|
+
* 通过该接口您可以设置人声的混响效果,具体特效请参见枚举定义
|
|
2165
|
+
*
|
|
2166
|
+
* 注意:设置的效果在退出房间后会自动失效,如果下次进房还需要对应特效,需要调用此接口再次进行设置。
|
|
2167
|
+
*
|
|
2168
|
+
* @param {TRTCVoiceReverbType} type - 人声的混响效果类型
|
|
2169
|
+
*/
|
|
2170
|
+
setVoiceReverbType(type: TRTCVoiceReverbType): void;
|
|
2159
2171
|
/**
|
|
2160
2172
|
* 废弃接口: 播放音效
|
|
2161
2173
|
*
|
package/liteav/trtc.js
CHANGED
|
@@ -2808,6 +2808,8 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
2808
2808
|
* SDK 内部集成了两套风格不同的磨皮算法,一套我们取名叫“光滑”,适用于美女秀场,效果比较明显。
|
|
2809
2809
|
* 另一套我们取名“自然”,磨皮算法更多地保留了面部细节,主观感受上会更加自然。
|
|
2810
2810
|
*
|
|
2811
|
+
* 注意:计算机必须配备显卡,否则该接口功能不生效。
|
|
2812
|
+
*
|
|
2811
2813
|
* @param {TRTCBeautyStyle} style - 美颜风格,光滑或者自然,光滑风格磨皮更加明显,适合娱乐场景。
|
|
2812
2814
|
* - TRTCBeautyStyleSmooth: 光滑,适用于美女秀场,效果比较明显。
|
|
2813
2815
|
* - TRTCBeautyStyleNature: 自然,磨皮算法更多地保留了面部细节,主观感受上会更加自然。
|
|
@@ -3726,6 +3728,18 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
3726
3728
|
setMusicPublishVolume(id, volume) {
|
|
3727
3729
|
this.rtcCloud.setMusicPublishVolume(id, volume);
|
|
3728
3730
|
}
|
|
3731
|
+
/**
|
|
3732
|
+
* 设置人声的混响效果
|
|
3733
|
+
*
|
|
3734
|
+
* 通过该接口您可以设置人声的混响效果,具体特效请参见枚举定义
|
|
3735
|
+
*
|
|
3736
|
+
* 注意:设置的效果在退出房间后会自动失效,如果下次进房还需要对应特效,需要调用此接口再次进行设置。
|
|
3737
|
+
*
|
|
3738
|
+
* @param {TRTCVoiceReverbType} type - 人声的混响效果类型
|
|
3739
|
+
*/
|
|
3740
|
+
setVoiceReverbType(type) {
|
|
3741
|
+
this.rtcCloud.setVoiceReverbType(type);
|
|
3742
|
+
}
|
|
3729
3743
|
/////////////////////////////////////////////////////////////////////////////////
|
|
3730
3744
|
//
|
|
3731
3745
|
// (十二)音效相关接口函数
|
package/liteav/trtc_define.d.ts
CHANGED
|
@@ -569,6 +569,20 @@ export declare enum TRTCAudioRecordingContent {
|
|
|
569
569
|
TRTCAudioRecordingContentLocal = 1,
|
|
570
570
|
TRTCAudioRecordingContentRemote = 2
|
|
571
571
|
}
|
|
572
|
+
export declare enum TRTCVoiceReverbType {
|
|
573
|
+
TRTCLiveVoiceReverbType_0 = 0,
|
|
574
|
+
TRTCLiveVoiceReverbType_1 = 1,
|
|
575
|
+
TRTCLiveVoiceReverbType_2 = 2,
|
|
576
|
+
TRTCLiveVoiceReverbType_3 = 3,
|
|
577
|
+
TRTCLiveVoiceReverbType_4 = 4,
|
|
578
|
+
TRTCLiveVoiceReverbType_5 = 5,
|
|
579
|
+
TRTCLiveVoiceReverbType_6 = 6,
|
|
580
|
+
TRTCLiveVoiceReverbType_7 = 7,
|
|
581
|
+
TRTCLiveVoiceReverbType_8 = 8,
|
|
582
|
+
TRTCLiveVoiceReverbType_9 = 9,
|
|
583
|
+
TRTCLiveVoiceReverbType_10 = 10,
|
|
584
|
+
TRTCLiveVoiceReverbType_11 = 11
|
|
585
|
+
}
|
|
572
586
|
/**
|
|
573
587
|
* 云端混流(转码)配置
|
|
574
588
|
*
|
package/liteav/trtc_define.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
10
|
-
exports.VideoBufferInfo = exports.TRTCSwitchRoomParam = void 0;
|
|
9
|
+
exports.TRTCStatistics = exports.TRTCRemoteStatistics = exports.TRTCLocalStatistics = exports.TRTCAudioEffectParam = exports.TRTCAudioRecordingParams = exports.TRTCPublishCDNParam = exports.TRTCTranscodingConfig = exports.TRTCVoiceReverbType = exports.TRTCAudioRecordingContent = exports.TRTCMixInputType = exports.TRTCTranscodingConfigMode = exports.TRTCMixUser = exports.Rect = exports.TRTCSpeedTestResult = exports.TRTCSpeedTestParams = exports.TRTCVolumeInfo = exports.TRTCQualityInfo = exports.TRTCNetworkQosParam = exports.TRTCRenderParams = exports.TRTCVideoEncParam = exports.TRTCParams = exports.TRTCWaterMarkSrcType = exports.TRTCCameraCaptureMode = exports.TRTCDeviceType = exports.TRTCDeviceState = exports.TRTCLogLevel = exports.TRTCAudioFrame = exports.TRTCVideoFrame = exports.TRTCDeviceInfo = exports.TRTCScreenCaptureProperty = exports.TRTCScreenCaptureSourceInfo = exports.TRTCImageBuffer = exports.TRTCAudioQuality = exports.TRTCScreenCaptureSourceType = exports.TRTCAudioFrameFormat = exports.TRTCVideoQosPreference = exports.TRTCQosControlMode = exports.TRTCRoleType = exports.TRTCAppScene = exports.TRTCRecordType = exports.TRTCVideoMirrorType = exports.TRTCVideoBufferType = exports.TRTCVideoPixelFormat = exports.TRTCBeautyStyle = exports.TRTCVideoRotation = exports.TRTCVideoFillMode = exports.TRTCQuality = exports.TRTCVideoStreamType = exports.TRTCVideoResolutionMode = exports.TRTCVideoResolution = void 0;
|
|
10
|
+
exports.VideoBufferInfo = exports.TRTCSwitchRoomParam = exports.AudioMusicParam = void 0;
|
|
11
11
|
const util_1 = require("./Renderer/util");
|
|
12
12
|
/////////////////////////////////////////////////////////////////////////////////
|
|
13
13
|
//
|
|
@@ -1221,6 +1221,54 @@ var TRTCAudioRecordingContent;
|
|
|
1221
1221
|
TRTCAudioRecordingContent[TRTCAudioRecordingContent["TRTCAudioRecordingContentLocal"] = 1] = "TRTCAudioRecordingContentLocal";
|
|
1222
1222
|
TRTCAudioRecordingContent[TRTCAudioRecordingContent["TRTCAudioRecordingContentRemote"] = 2] = "TRTCAudioRecordingContentRemote";
|
|
1223
1223
|
})(TRTCAudioRecordingContent = exports.TRTCAudioRecordingContent || (exports.TRTCAudioRecordingContent = {}));
|
|
1224
|
+
/**
|
|
1225
|
+
* 混响特效
|
|
1226
|
+
*
|
|
1227
|
+
* 混响特效可以作用于人声之上,通过声学算法对声音进行叠加处理,模拟出各种不同环境下的临场感受,目前支持如下几种混响效果。
|
|
1228
|
+
*
|
|
1229
|
+
* @enum {Number}
|
|
1230
|
+
*/
|
|
1231
|
+
const TRTCVoiceReverbType_HACK_JSDOC = {
|
|
1232
|
+
/** 关闭特效 */
|
|
1233
|
+
TRTCLiveVoiceReverbType_0: 0,
|
|
1234
|
+
/** KTV */
|
|
1235
|
+
TRTCLiveVoiceReverbType_1: 1,
|
|
1236
|
+
/** 小房间 */
|
|
1237
|
+
TRTCLiveVoiceReverbType_2: 2,
|
|
1238
|
+
/** 大会堂 */
|
|
1239
|
+
TRTCLiveVoiceReverbType_3: 3,
|
|
1240
|
+
/** 低沉 */
|
|
1241
|
+
TRTCLiveVoiceReverbType_4: 4,
|
|
1242
|
+
/** 洪亮 */
|
|
1243
|
+
TRTCLiveVoiceReverbType_5: 5,
|
|
1244
|
+
/** 金属声 */
|
|
1245
|
+
TRTCLiveVoiceReverbType_6: 6,
|
|
1246
|
+
/** 磁性 */
|
|
1247
|
+
TRTCLiveVoiceReverbType_7: 7,
|
|
1248
|
+
/** 空灵 */
|
|
1249
|
+
TRTCLiveVoiceReverbType_8: 8,
|
|
1250
|
+
/** 录音棚 */
|
|
1251
|
+
TRTCLiveVoiceReverbType_9: 9,
|
|
1252
|
+
/** 悠扬 */
|
|
1253
|
+
TRTCLiveVoiceReverbType_10: 10,
|
|
1254
|
+
/** 录音棚2 */
|
|
1255
|
+
TRTCLiveVoiceReverbType_11: 11,
|
|
1256
|
+
};
|
|
1257
|
+
var TRTCVoiceReverbType;
|
|
1258
|
+
(function (TRTCVoiceReverbType) {
|
|
1259
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_0"] = 0] = "TRTCLiveVoiceReverbType_0";
|
|
1260
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_1"] = 1] = "TRTCLiveVoiceReverbType_1";
|
|
1261
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_2"] = 2] = "TRTCLiveVoiceReverbType_2";
|
|
1262
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_3"] = 3] = "TRTCLiveVoiceReverbType_3";
|
|
1263
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_4"] = 4] = "TRTCLiveVoiceReverbType_4";
|
|
1264
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_5"] = 5] = "TRTCLiveVoiceReverbType_5";
|
|
1265
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_6"] = 6] = "TRTCLiveVoiceReverbType_6";
|
|
1266
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_7"] = 7] = "TRTCLiveVoiceReverbType_7";
|
|
1267
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_8"] = 8] = "TRTCLiveVoiceReverbType_8";
|
|
1268
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_9"] = 9] = "TRTCLiveVoiceReverbType_9";
|
|
1269
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_10"] = 10] = "TRTCLiveVoiceReverbType_10";
|
|
1270
|
+
TRTCVoiceReverbType[TRTCVoiceReverbType["TRTCLiveVoiceReverbType_11"] = 11] = "TRTCLiveVoiceReverbType_11";
|
|
1271
|
+
})(TRTCVoiceReverbType = exports.TRTCVoiceReverbType || (exports.TRTCVoiceReverbType = {}));
|
|
1224
1272
|
/**
|
|
1225
1273
|
* 云端混流(转码)配置
|
|
1226
1274
|
*
|