@xylink/xy-rtc-sdk 4.0.4 → 4.0.5
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/action/ability.d.ts +0 -1
- package/action/api.d.ts +15 -1
- package/action/auth.d.ts +3 -4
- package/action/base.d.ts +2 -3
- package/action/config.d.ts +2 -3
- package/action/control.d.ts +3 -4
- package/action/enterprise.d.ts +4 -5
- package/action/http.d.ts +2 -3
- package/action/index.d.ts +9 -10
- package/action/index.type.d.ts +0 -1
- package/action/log.d.ts +1 -2
- package/action/meeting.d.ts +17 -4
- package/enum/client.d.ts +0 -1
- package/enum/constraints.d.ts +0 -1
- package/enum/errorCode/server.d.ts +0 -1
- package/enum/errorCode/signal.d.ts +0 -1
- package/enum/index.d.ts +0 -1
- package/enum/meeting.d.ts +0 -1
- package/enum/polling.d.ts +0 -1
- package/export/tools.d.ts +0 -1
- package/feature/artboard/index.d.ts +3 -4
- package/feature/audioPCM/index.d.ts +2 -3
- package/feature/contentPreserver/index.d.ts +1 -2
- package/feature/customMessage/index.d.ts +1 -2
- package/feature/edu/index.d.ts +1 -2
- package/feature/edu/index.type.d.ts +0 -1
- package/feature/im/index.d.ts +2 -3
- package/feature/query/index.d.ts +2 -3
- package/feature/speaker/index.d.ts +2 -3
- package/feature/speaker/index.type.d.ts +0 -1
- package/feature/translation/index.d.ts +34 -0
- package/feature/vep/index.d.ts +56 -0
- package/feature/vep/index.type.d.ts +139 -0
- package/index.d.ts +8 -9
- package/interface/clientInterface.type.d.ts +6 -7
- package/interface/contentTrackInterface.type.d.ts +0 -1
- package/interface/extension.type.d.ts +0 -1
- package/interface/processor.type.d.ts +0 -1
- package/interface/videoAudioTrackInterface.type.d.ts +1 -2
- package/main/ability/const.d.ts +0 -1
- package/main/ability/index.d.ts +1 -2
- package/main/auth/index.d.ts +2 -3
- package/main/auth/index.type.d.ts +0 -1
- package/main/auth/rule.d.ts +0 -1
- package/main/client/clientBase.d.ts +2 -3
- package/main/client/clientState.d.ts +1 -2
- package/main/client/index.d.ts +54 -30
- package/main/client/rule.d.ts +0 -1
- package/main/device/index.d.ts +2 -3
- package/main/helper/i18n.d.ts +0 -1
- package/main/helper/index.d.ts +1 -2
- package/main/layout/index.d.ts +4 -5
- package/main/layout/index.type.d.ts +2 -3
- package/main/layout/polling.d.ts +2 -3
- package/main/layout/state.d.ts +3 -4
- package/main/layout/template/index.d.ts +0 -1
- package/main/layout/template/manager.d.ts +0 -1
- package/main/layout/template/mobile.d.ts +0 -1
- package/main/layout/template/polling.d.ts +0 -1
- package/main/media/index.d.ts +4 -5
- package/main/media/index.type.d.ts +0 -1
- package/main/meeting/control.d.ts +1 -2
- package/main/meeting/control.type.d.ts +0 -1
- package/main/meeting/index.d.ts +8 -3
- package/main/meeting/rule.d.ts +0 -1
- package/main/meeting/verify.d.ts +1 -2
- package/main/peer/index.d.ts +5 -6
- package/main/peer/index.type.d.ts +0 -1
- package/main/peer/state.d.ts +0 -1
- package/main/plugin/audioPCM/index.d.ts +3 -4
- package/main/plugin/audioPCM/processor.d.ts +3 -4
- package/main/plugin/contentPreserver/index.d.ts +2 -3
- package/main/plugin/contentPreserver/processor.d.ts +2 -3
- package/main/plugin/index.d.ts +1 -2
- package/main/quality/index.d.ts +0 -1
- package/main/quality/report.d.ts +1 -2
- package/main/render/audioManager.d.ts +2 -3
- package/main/render/index.d.ts +2 -3
- package/main/render/index.type.d.ts +1 -2
- package/main/render/videoManager.d.ts +1 -2
- package/main/roster/index.d.ts +41 -2
- package/main/server/index.d.ts +3 -4
- package/main/signal/index.d.ts +1 -2
- package/main/socket/index.d.ts +2 -3
- package/main/stream/index.d.ts +7 -8
- package/main/track/baseTrack.d.ts +4 -5
- package/main/track/contentTrack.d.ts +4 -5
- package/main/track/customContentTrack.d.ts +2 -3
- package/main/track/customVideoAudioTrack.d.ts +2 -3
- package/main/track/videoAudioCapture.d.ts +1 -2
- package/main/track/videoAudioTrack.d.ts +5 -6
- package/main/vom/config.d.ts +0 -1
- package/main/vom/index.d.ts +1 -2
- package/package.json +4 -4
- package/tools/analyser/index.d.ts +0 -1
- package/tools/analyser/manager.d.ts +1 -2
- package/tools/config.d.ts +0 -1
- package/tools/log/db.d.ts +0 -1
- package/tools/log/logger.d.ts +0 -1
- package/tools/log/loggerManager.d.ts +1 -2
- package/tools/socket/socket.d.ts +2 -3
- package/tools/socket/socketManager.d.ts +2 -3
- package/tools/utils.d.ts +0 -1
- package/type/ability.d.ts +3 -1
- package/type/analyser.d.ts +0 -1
- package/type/capture.d.ts +0 -1
- package/type/client.d.ts +6 -47
- package/type/index.d.ts +1 -0
- package/type/layout.d.ts +1 -2
- package/type/meeting.d.ts +4 -5
- package/type/quality.d.ts +1 -2
- package/type/stream.d.ts +3 -4
- package/type/subtitle.d.ts +86 -0
- package/type/track.d.ts +0 -1
- package/xyrtc.js +3549 -4468
package/action/ability.d.ts
CHANGED
package/action/api.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { APIUrlInfo } from './index.type';
|
|
2
|
-
|
|
3
2
|
declare class XYApi {
|
|
4
3
|
/**
|
|
5
4
|
* 不加密登录
|
|
@@ -248,5 +247,20 @@ declare class XYApi {
|
|
|
248
247
|
* 获取企业信息,包含企业信息配置title/icon、企业名称
|
|
249
248
|
*/
|
|
250
249
|
static enterpriseInfo: APIUrlInfo;
|
|
250
|
+
/**
|
|
251
|
+
* 创建虚拟数字人设备
|
|
252
|
+
* 添加时间:2024/12/20
|
|
253
|
+
*/
|
|
254
|
+
static createVep: APIUrlInfo;
|
|
255
|
+
/**
|
|
256
|
+
* 开启字幕
|
|
257
|
+
* https://yapi.xylink.com/project/1843/interface/api/214819
|
|
258
|
+
*/
|
|
259
|
+
static startSubtitles: APIUrlInfo;
|
|
260
|
+
/**
|
|
261
|
+
* 停止字幕
|
|
262
|
+
* https://yapi.xylink.com/project/1843/interface/api/214828
|
|
263
|
+
*/
|
|
264
|
+
static stopSubtitles: APIUrlInfo;
|
|
251
265
|
}
|
|
252
266
|
export default XYApi;
|
package/action/auth.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { CheckCaptchaImageParams, LoginOtherParams } from '../main/auth/index.type';
|
|
2
|
-
import { default as BaseAction } from './base';
|
|
3
|
-
import { default as Action } from '.';
|
|
4
1
|
import { ILoginExtAccount, ILoginWidthAuthCode, ISdkUserInfo, LoginParams, LoginThirdAuthTokenParams, LoginType, LoginVerifyCodeParams, RegisterAndLoginParams } from '../type/auth';
|
|
5
|
-
|
|
2
|
+
import { default as Action } from '.';
|
|
3
|
+
import { default as BaseAction } from './base';
|
|
4
|
+
import { CheckCaptchaImageParams, LoginOtherParams } from '../main/auth/index.type';
|
|
6
5
|
declare class AuthAction extends BaseAction {
|
|
7
6
|
constructor(action: Action);
|
|
8
7
|
/**
|
package/action/base.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { default as Logger } from '../tools/log/logger';
|
|
2
|
-
import { default as Action, ICommonParams } from '.';
|
|
3
1
|
import { default as HttpClient } from './http';
|
|
4
|
-
|
|
2
|
+
import { default as Action, ICommonParams } from '.';
|
|
3
|
+
import { default as Logger } from '../tools/log/logger';
|
|
5
4
|
declare class BaseAction {
|
|
6
5
|
action: Action;
|
|
7
6
|
http: HttpClient;
|
package/action/config.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { IStateParams } from '../type/client';
|
|
2
|
-
import { default as BaseAction } from './base';
|
|
3
1
|
import { default as Action } from '.';
|
|
4
|
-
|
|
2
|
+
import { default as BaseAction } from './base';
|
|
3
|
+
import { IStateParams } from '../type/client';
|
|
5
4
|
declare class ConfigAction extends BaseAction {
|
|
6
5
|
private seqId;
|
|
7
6
|
private statesTime;
|
package/action/control.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { FocusViewAction } from '../type/client';
|
|
2
|
-
import { default as BaseAction } from './base';
|
|
3
|
-
import { default as Action } from '.';
|
|
4
1
|
import { SignInTextParams } from '../type/meeting';
|
|
5
|
-
|
|
2
|
+
import { default as Action } from '.';
|
|
3
|
+
import { default as BaseAction } from './base';
|
|
4
|
+
import { FocusViewAction } from '../type/client';
|
|
6
5
|
declare class MeetingControlAction extends BaseAction {
|
|
7
6
|
constructor(action: Action);
|
|
8
7
|
/**
|
package/action/enterprise.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { XYSensitiveWords } from '../main/meeting/index.type';
|
|
2
|
-
import { XYDepAndTitleParams } from '../type/index';
|
|
3
|
-
import { default as BaseAction } from './base';
|
|
4
|
-
import { default as Action } from '.';
|
|
5
1
|
import { IMediaConfigParam } from '../type/meeting';
|
|
6
|
-
|
|
2
|
+
import { default as Action } from '.';
|
|
3
|
+
import { default as BaseAction } from './base';
|
|
4
|
+
import { XYDepAndTitleParams } from '../type/index';
|
|
5
|
+
import { XYSensitiveWords } from '../main/meeting/index.type';
|
|
7
6
|
declare class EnterpriseAction extends BaseAction {
|
|
8
7
|
constructor(action: Action);
|
|
9
8
|
/**
|
package/action/http.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { IToken } from '../type/index';
|
|
2
|
-
import { default as Logger } from '../tools/log/logger';
|
|
3
1
|
import { AxiosRequestConfig, AxiosInstance, AxiosError } from 'axios';
|
|
4
|
-
|
|
2
|
+
import { default as Logger } from '../tools/log/logger';
|
|
3
|
+
import { IToken } from '../type/index';
|
|
5
4
|
export interface IResponseSuccess {
|
|
6
5
|
code: number;
|
|
7
6
|
data: any;
|
package/action/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { XYEmitter } from '@xylink/xy-toolkit';
|
|
2
|
-
import { default as LogAction } from './log';
|
|
3
|
-
import { default as MeetingControlAction } from './control';
|
|
4
|
-
import { default as EnterpriseAction } from './enterprise';
|
|
5
|
-
import { default as MeetingAction } from './meeting';
|
|
6
|
-
import { default as ConfigAction } from './config';
|
|
7
|
-
import { default as AuthAction } from './auth';
|
|
8
|
-
import { default as Logger } from '../tools/log/logger';
|
|
9
|
-
import { IMeetingInfo, IToken, XYActionKey } from '../type/index';
|
|
10
1
|
import { default as HttpClient } from './http';
|
|
11
|
-
|
|
2
|
+
import { IMeetingInfo, IToken, XYActionKey } from '../type/index';
|
|
3
|
+
import { default as Logger } from '../tools/log/logger';
|
|
4
|
+
import { default as AuthAction } from './auth';
|
|
5
|
+
import { default as ConfigAction } from './config';
|
|
6
|
+
import { default as MeetingAction } from './meeting';
|
|
7
|
+
import { default as EnterpriseAction } from './enterprise';
|
|
8
|
+
import { default as MeetingControlAction } from './control';
|
|
9
|
+
import { default as LogAction } from './log';
|
|
10
|
+
import { XYEmitter } from '@xylink/xy-toolkit';
|
|
12
11
|
export interface ICommonParams {
|
|
13
12
|
securityKey: string;
|
|
14
13
|
callUri?: string;
|
package/action/index.type.d.ts
CHANGED
package/action/log.d.ts
CHANGED
package/action/meeting.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { AutoMute } from '../type/index';
|
|
2
|
-
import { IMeetingInviteParams } from '../type/action';
|
|
3
|
-
import { default as BaseAction } from './base';
|
|
4
1
|
import { default as Action } from '.';
|
|
5
|
-
|
|
2
|
+
import { default as BaseAction } from './base';
|
|
3
|
+
import { IMeetingInviteParams } from '../type/action';
|
|
4
|
+
import { AutoMute } from '../type/index';
|
|
6
5
|
/**
|
|
7
6
|
* 会议室管理模块
|
|
8
7
|
*/
|
|
@@ -103,5 +102,19 @@ declare class MeetingAction extends BaseAction {
|
|
|
103
102
|
* @returns
|
|
104
103
|
*/
|
|
105
104
|
checkStorageSpaceWithRecordingUrl(recordingUrl: string): Promise<any>;
|
|
105
|
+
/**
|
|
106
|
+
* 创建虚拟数字人设备
|
|
107
|
+
*/
|
|
108
|
+
createVirtualPeople(): Promise<any>;
|
|
109
|
+
/**
|
|
110
|
+
* 开启字幕
|
|
111
|
+
* @returns
|
|
112
|
+
*/
|
|
113
|
+
startSubtitles(): Promise<any>;
|
|
114
|
+
/**
|
|
115
|
+
* 停止字幕
|
|
116
|
+
* @returns
|
|
117
|
+
*/
|
|
118
|
+
stopSubtitles(): Promise<any>;
|
|
106
119
|
}
|
|
107
120
|
export default MeetingAction;
|
package/enum/client.d.ts
CHANGED
package/enum/constraints.d.ts
CHANGED
package/enum/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IDefault, IOPERATE_MAP, IRoster, IFeatureConfig, StreamStatus, StreamType, ILoggerConfig, FacingMode, StreamResolution, TemplateMode, ContentTemplateMode, LayoutConfig, IMediaConfig, IMakeCall, ContentTrackConfig, PeopleTrackConfig, SwitchDeviceConfig, DEVICE_KIND } from '../type/index';
|
|
2
|
-
|
|
3
2
|
export * from './constraints';
|
|
4
3
|
export * from './analyser';
|
|
5
4
|
export declare const LOG_CACHE_COUNT = 10;
|
package/enum/meeting.d.ts
CHANGED
package/enum/polling.d.ts
CHANGED
package/export/tools.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { XY_WHITEBOARD_DATA, XYAnnotationState } from './index.type';
|
|
2
|
-
import { XYBaseModule } from '../../type/index';
|
|
3
|
-
import { default as Logger } from '../../tools/log/logger';
|
|
4
1
|
import { default as XYRTCClient } from '../../main/client';
|
|
5
|
-
|
|
2
|
+
import { default as Logger } from '../../tools/log/logger';
|
|
3
|
+
import { XYBaseModule } from '../../type/index';
|
|
4
|
+
import { XY_WHITEBOARD_DATA, XYAnnotationState } from './index.type';
|
|
6
5
|
/**
|
|
7
6
|
* 白板消息模块
|
|
8
7
|
* 职责:
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { XYAudioPCMProcessor } from '../../main/plugin/audioPCM/processor';
|
|
2
|
-
import { XYAudioPCMOptions } from '../../main/plugin/audioPCM/index.type';
|
|
3
1
|
import { XYAudioPCMExtension } from '../../main/plugin/audioPCM';
|
|
4
|
-
|
|
2
|
+
import { XYAudioPCMOptions } from '../../main/plugin/audioPCM/index.type';
|
|
3
|
+
import { XYAudioPCMProcessor } from '../../main/plugin/audioPCM/processor';
|
|
5
4
|
/**
|
|
6
5
|
* AudioPCMManager类管理AudioPCMProcessor实例,用于处理音频流
|
|
7
6
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { XYContentPreserverProcessor } from '../../main/plugin/contentPreserver/processor';
|
|
2
1
|
import { XYContentPreserverExtension } from '../../main/plugin/contentPreserver/index';
|
|
3
|
-
|
|
2
|
+
import { XYContentPreserverProcessor } from '../../main/plugin/contentPreserver/processor';
|
|
4
3
|
declare class XYContentPreserverTool {
|
|
5
4
|
private plugin;
|
|
6
5
|
private contentProcessor;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ICustomMessageConfig, XYBaseModule } from '../../type/index';
|
|
2
1
|
import { default as XYRTCClient } from '../../main/client';
|
|
3
|
-
|
|
2
|
+
import { ICustomMessageConfig, XYBaseModule } from '../../type/index';
|
|
4
3
|
export declare class XYCustomMessage implements XYBaseModule {
|
|
5
4
|
private client;
|
|
6
5
|
private logger;
|
package/feature/edu/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IConference, IGetConferenceParams, IReqInfo, TCommand, XYBaseModule } from '../../type/index';
|
|
2
1
|
import { default as XYRTCClient } from '../../main/client';
|
|
3
|
-
|
|
2
|
+
import { IConference, IGetConferenceParams, IReqInfo, TCommand, XYBaseModule } from '../../type/index';
|
|
4
3
|
export declare class XYEDU implements XYBaseModule {
|
|
5
4
|
private client;
|
|
6
5
|
private logger;
|
package/feature/im/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { XYEmitter } from '@xylink/xy-toolkit';
|
|
2
|
-
import { IReturnResult, XYBaseModule, XYIMEventKey } from '../../type/index';
|
|
3
1
|
import { default as XYRTCClient } from '../../main/client';
|
|
4
|
-
|
|
2
|
+
import { IReturnResult, XYBaseModule, XYIMEventKey } from '../../type/index';
|
|
3
|
+
import { XYEmitter } from '@xylink/xy-toolkit';
|
|
5
4
|
export declare class XYIMClient extends XYEmitter<XYIMEventKey> implements XYBaseModule {
|
|
6
5
|
private client;
|
|
7
6
|
private logger;
|
package/feature/query/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { default as XYRTCClient } from '../../main/client';
|
|
2
|
-
import { XYMemberDepartment } from './index.type';
|
|
3
1
|
import { default as Logger } from '../../tools/log/logger';
|
|
4
|
-
|
|
2
|
+
import { XYMemberDepartment } from './index.type';
|
|
3
|
+
import { default as XYRTCClient } from '../../main/client';
|
|
5
4
|
export declare class XYQueryService {
|
|
6
5
|
private client;
|
|
7
6
|
logger: Logger;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { default as Logger } from '../../tools/log/logger';
|
|
2
|
-
import { default as XYRTCClient } from '../../main/client';
|
|
3
1
|
import { SpeakersInfoItem, XYBaseModule } from '../../type/index';
|
|
4
|
-
|
|
2
|
+
import { default as XYRTCClient } from '../../main/client';
|
|
3
|
+
import { default as Logger } from '../../tools/log/logger';
|
|
5
4
|
export declare class XYSpeaker implements XYBaseModule {
|
|
6
5
|
logger: Logger;
|
|
7
6
|
private client;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { default as Client } from '../../main/client';
|
|
2
|
+
import { TLocalLanguage } from '../../type/client';
|
|
3
|
+
declare class XYTranslationManager {
|
|
4
|
+
private client;
|
|
5
|
+
private logger;
|
|
6
|
+
private isSubscribeTranslation;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
/**
|
|
9
|
+
* 开启通话字幕
|
|
10
|
+
*/
|
|
11
|
+
startTranslation(): Promise<import('../..').IReturnResult>;
|
|
12
|
+
/**
|
|
13
|
+
* 停止通话字幕
|
|
14
|
+
*/
|
|
15
|
+
stopTranslation(): Promise<import('../..').IReturnResult>;
|
|
16
|
+
/**
|
|
17
|
+
* 通话字幕,设置本地说话的语言
|
|
18
|
+
* 调用时机:startTranslation开启字幕功能后调用
|
|
19
|
+
* 相关内容:通话字幕
|
|
20
|
+
*
|
|
21
|
+
* @param { TLocalLanguage } language - 设置的语言
|
|
22
|
+
* @returns { Promise<IReturnResult> } - 返回结果
|
|
23
|
+
*/
|
|
24
|
+
setTranslationLanguage(language: TLocalLanguage): Promise<import('../..').IReturnResult>;
|
|
25
|
+
/**
|
|
26
|
+
* 重新开启通话字幕
|
|
27
|
+
* 调用时机:startTranslation开启字幕功能后调用,媒体网关断开重连后调用
|
|
28
|
+
* 相关内容:通话字幕
|
|
29
|
+
*
|
|
30
|
+
* @returns { Promise<IReturnResult> } - 返回结果
|
|
31
|
+
*/
|
|
32
|
+
reStartTranslation(): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
export default XYTranslationManager;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { default as Client } from '../../main/client';
|
|
2
|
+
import { default as Logger } from '../../tools/log/logger';
|
|
3
|
+
declare class XYVepManager {
|
|
4
|
+
client: Client;
|
|
5
|
+
logger: Logger;
|
|
6
|
+
private vepRoster;
|
|
7
|
+
private retryCount;
|
|
8
|
+
private seq;
|
|
9
|
+
private taskQueue;
|
|
10
|
+
constructor(client: Client);
|
|
11
|
+
/**
|
|
12
|
+
* 播放vep数字人设备
|
|
13
|
+
*
|
|
14
|
+
* @param { string } sessionID - 数字人ID
|
|
15
|
+
* @param { string } displayName - 数字人名称
|
|
16
|
+
*/
|
|
17
|
+
playDigitalHuman(sessionID: string, displayName: string): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* 播放合成语音
|
|
20
|
+
*
|
|
21
|
+
* @param { string } txt - 需要合成语音的文本内容
|
|
22
|
+
*/
|
|
23
|
+
playVirtualTTS(txt: string): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* 发送播放数字人消息
|
|
26
|
+
*
|
|
27
|
+
* @param { string } sessionId - 数字人ID
|
|
28
|
+
* @param { string } displayName - 数字人名称
|
|
29
|
+
*/
|
|
30
|
+
playDigitalHumanMsg(sessionId: string, displayName: string): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 停止vep数字人设备
|
|
33
|
+
*
|
|
34
|
+
* @param { string } sessionID - 数字人ID
|
|
35
|
+
*/
|
|
36
|
+
stopDigitalHuman(sessionId: string): Promise<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* 发送播放合成语音消息
|
|
39
|
+
*
|
|
40
|
+
* @param { string } txt - 文本
|
|
41
|
+
*/
|
|
42
|
+
playVirtualTTSMsg(txt: string): Promise<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* 检测或创建虚拟终端
|
|
45
|
+
*/
|
|
46
|
+
detectVirtualPeople(): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* 创建虚拟终端设备
|
|
49
|
+
*/
|
|
50
|
+
private inviteVirtualPeople;
|
|
51
|
+
/**
|
|
52
|
+
* 销毁VEP虚拟终端设备
|
|
53
|
+
*/
|
|
54
|
+
destroy(): void;
|
|
55
|
+
}
|
|
56
|
+
export { XYVepManager };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI能力枚举
|
|
3
|
+
*/
|
|
4
|
+
export declare enum EAIAbilityType {
|
|
5
|
+
/** 无能力 */
|
|
6
|
+
kAbilityTypeNone = 0,
|
|
7
|
+
/** 小鱼通用AI能力(保留) */
|
|
8
|
+
kAbilityTypeXylinkAI = 1,
|
|
9
|
+
/** 小鱼人脸识别 */
|
|
10
|
+
kAbilityTypeMatrix = 2,
|
|
11
|
+
/** 小鱼同传 */
|
|
12
|
+
kAbilityTypeSimulInterpr = 3,
|
|
13
|
+
/** 小鱼翻译 */
|
|
14
|
+
kAbilityTypeLangTrans = 4,
|
|
15
|
+
/** 小鱼语音合成 */
|
|
16
|
+
kAbilityTypeTTS = 5,
|
|
17
|
+
/** 第三方AI能力 */
|
|
18
|
+
kAbilityTypeThirdAI = 30
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 业务消息MessageType枚举
|
|
22
|
+
*/
|
|
23
|
+
export declare enum EBusinessMsgType {
|
|
24
|
+
/** 初始化消息,无需关注 */
|
|
25
|
+
kAIMsgTypeNone = 0,
|
|
26
|
+
/** 初始化消息,无需关注 */
|
|
27
|
+
kAIMsgServerID = 1,
|
|
28
|
+
/** 第三方业务消息枚举起始值 */
|
|
29
|
+
kThirdAIMsgType = 3000,
|
|
30
|
+
/** 开始人脸识别 */
|
|
31
|
+
kThirdAIStartFace = 3001,
|
|
32
|
+
/** 人脸识别结果 */
|
|
33
|
+
kThirdAIFaceRecogResult = 3002,
|
|
34
|
+
/** 人脸检测结果 */
|
|
35
|
+
kThirdAIFaceDetectResult = 3003,
|
|
36
|
+
/** 人脸检测与识别结果 */
|
|
37
|
+
/** 建⾏AI⼈脸检测与识别是两个不同的接⼝,分别返回,因此这个类型暂时⽤不上 */
|
|
38
|
+
kThirdAIFaceDetectAndRecogResult = 3004,
|
|
39
|
+
/** 停止人脸识别 */
|
|
40
|
+
kThirdAIStopFace = 3005,
|
|
41
|
+
/** 请求TTS合成实时播放 */
|
|
42
|
+
kThirdAIPlayTTS = 3006,
|
|
43
|
+
/** 3007:TTS播放状态 */
|
|
44
|
+
kThirdAITTSStatus = 3007,
|
|
45
|
+
/** 短语音识别请求 */
|
|
46
|
+
kThirdAIShortAudioRecog = 3008,
|
|
47
|
+
/** 短语音识别结果 */
|
|
48
|
+
kThirdAIShortAudioRecogResult = 3009,
|
|
49
|
+
/** -------------分界线,从本版本开始,每个新的业务,定义⼀个新的枚举起始值----------- */
|
|
50
|
+
/** 3010:播放数字人 */
|
|
51
|
+
kThirdAIDigitalHumanPlay = 3010,
|
|
52
|
+
/** 3011:停止数字人 */
|
|
53
|
+
kThirdAIDigitalHumanStop = 3011,
|
|
54
|
+
/** 3012:数字人状态通知 */
|
|
55
|
+
kThirdAIDigitalHumanStatus = 3012
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* 数字人状态码枚举
|
|
59
|
+
* AI通道自定义消息,statusCode状态码枚举
|
|
60
|
+
*/
|
|
61
|
+
export declare enum XYDigitalHumanStatusCode {
|
|
62
|
+
/** 初始状态 */
|
|
63
|
+
kDHStatusNone = 0,
|
|
64
|
+
/** 分配rtmp推流url */
|
|
65
|
+
kDHStatusAssignUrl = 1,
|
|
66
|
+
/** 开始播放 */
|
|
67
|
+
kDHStatusOnPlay = 2,
|
|
68
|
+
/** 播放中,正常收发流时周期发送 */
|
|
69
|
+
kDHStatusPlaying = 3,
|
|
70
|
+
/** 远端取消发布,播放结束 */
|
|
71
|
+
kDHStatusOnStop = 4,
|
|
72
|
+
/** 等待远端发布流超时 */
|
|
73
|
+
kDHStatusWaitOnPublishTimeout = 5,
|
|
74
|
+
/** 远端有发布,但是没收到媒体流 */
|
|
75
|
+
kDHStatusWaitForwardStreamTimeout = 6,
|
|
76
|
+
/** 播放中断,被新的数字⼈替代(数字⼈sID变更) */
|
|
77
|
+
kDHStatusPlayInterrupt = 7,
|
|
78
|
+
/** AIGateway节点迁移,更新推流url */
|
|
79
|
+
kDHStatusUpdateUrl = 8
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* TTS状态码枚举
|
|
83
|
+
*/
|
|
84
|
+
export declare enum XYTTSStatusCode {
|
|
85
|
+
/** 初始状态 */
|
|
86
|
+
kTTSStatusNone = 0,
|
|
87
|
+
/** 正在播放 */
|
|
88
|
+
kTTSStatusPlaying = 1,
|
|
89
|
+
/** 正常播放完毕 */
|
|
90
|
+
kTTSStatusPlayEnd = 2,
|
|
91
|
+
/** 连接AI服务超时 */
|
|
92
|
+
kTTSStatusTimeout = 3,
|
|
93
|
+
/** 连接AI服务异常断开 */
|
|
94
|
+
kTTSStatusDisconnect = 4,
|
|
95
|
+
/** 播放中断,被新的提示语替代 */
|
|
96
|
+
kTTSStatusPlayInterrupt = 5
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* 虚拟数字人状态事件
|
|
100
|
+
*
|
|
101
|
+
* @since 3.9.11
|
|
102
|
+
* @param { string } sID - 数字⼈SessionId
|
|
103
|
+
* @param { XYDigitalHumanStatusCode } statusCode - 状态码
|
|
104
|
+
* @param { string } statusMsg - 状态描述,其中更新url状态时为新的url地址
|
|
105
|
+
* @param { string } url - 可选参数,当状态码为 kDHStatusAssignUrl 和 kDHStatusUpdateUrl 才有该字段
|
|
106
|
+
* 注意事项:URL字段是进行AES256加密+Base64编码处理后的字符串,业务上使用时需要首先进行Encode Base64字符串,然后再进行AES256解密才可以获取到真实的URL信息
|
|
107
|
+
*/
|
|
108
|
+
export interface XYDigitalHumanStatus {
|
|
109
|
+
sID: string;
|
|
110
|
+
statusCode: XYDigitalHumanStatusCode;
|
|
111
|
+
statusMsg: string;
|
|
112
|
+
url?: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* 合成语音状态事件
|
|
116
|
+
*
|
|
117
|
+
* @since 3.9.11
|
|
118
|
+
* @param { number } id - 消息ID
|
|
119
|
+
* @param { XYTTSStatusCode } statusCode - 合成语音状态码
|
|
120
|
+
* @param { string } aiResult - AI业务返回的消息数据
|
|
121
|
+
*/
|
|
122
|
+
export interface XYTTSStatus {
|
|
123
|
+
id: number;
|
|
124
|
+
statusCode: XYTTSStatusCode;
|
|
125
|
+
aiResult: string;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* 小鱼AI服务消息结构
|
|
129
|
+
*
|
|
130
|
+
* @param { EBusinessMsgType } msgType - 消息类型,区分数字人和TTS消息
|
|
131
|
+
* @param { string } fromCallUri - 消息来源终端的callUri
|
|
132
|
+
* @param { XYDigitalHumanData | XYTTSData } detail - 消息详情,根据msgType区分数字人或TTS数据
|
|
133
|
+
*
|
|
134
|
+
*/
|
|
135
|
+
export interface XYAIServiceMessage {
|
|
136
|
+
msgType: EBusinessMsgType;
|
|
137
|
+
fromCallUri: string;
|
|
138
|
+
detail: XYDigitalHumanStatus | XYTTSStatus;
|
|
139
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { XYAudioPCMProcessor } from './main/plugin/audioPCM/processor';
|
|
2
|
-
import { XYAudioPCMExtension } from './main/plugin/audioPCM/index';
|
|
3
|
-
import { XYIMClient } from './feature/im';
|
|
4
|
-
import { IClientConfig, TLocale, XYVersion } from './type/index';
|
|
5
|
-
import { ICheckSystemRequirements } from '@xylink/xy-toolkit';
|
|
6
|
-
import { Logger } from './export/tools';
|
|
7
|
-
import { default as VideoAudioTrack } from './main/track/videoAudioTrack';
|
|
8
|
-
import { default as ContentTrack } from './main/track/contentTrack';
|
|
9
1
|
import { default as XYRTCClient } from './main/client';
|
|
10
|
-
|
|
2
|
+
import { default as ContentTrack } from './main/track/contentTrack';
|
|
3
|
+
import { default as VideoAudioTrack } from './main/track/videoAudioTrack';
|
|
4
|
+
import { Logger } from './export/tools';
|
|
5
|
+
import { ICheckSystemRequirements } from '@xylink/xy-toolkit';
|
|
6
|
+
import { IClientConfig, TLocale, XYVersion } from './type/index';
|
|
7
|
+
import { XYIMClient } from './feature/im';
|
|
8
|
+
import { XYAudioPCMExtension } from './main/plugin/audioPCM/index';
|
|
9
|
+
import { XYAudioPCMProcessor } from './main/plugin/audioPCM/processor';
|
|
11
10
|
export * from './main/helper/index';
|
|
12
11
|
export * from './export/tools';
|
|
13
12
|
/**
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { SnapshotParams, SnapshotResult } from '@xylink/xy-toolkit';
|
|
2
|
-
import { CheckCaptchaImageParams, LoginOtherParams } from '../main/auth/index.type';
|
|
3
|
-
import { XYEnterpriseInfo, XYSensitiveWords, XYUicustomization } from '../main/meeting/index.type';
|
|
4
|
-
import { AudioAnalyser } from '../tools/analyser';
|
|
5
|
-
import { AnalyserConfig, ClientInfoConfig, IConference, IConfMgmtUrl, ICustomMessageConfig, IFeatureConfig, IFeatureConfigKey, IFeatureConfigValue, IGetConferenceParams, ILoginExtAccount, ILoginWidthAuthCode, IMakeCall, IMode, InviteInfo, IReqInfo, IReturnResult, IRoster, IVideoAudioType, IVideoControlResult, IVideoProfile, Key, LayoutConfig, LayoutMode, LayoutOrientationType, LocalViewParams, LoginExtTokenParams, LoginTokenInfo, LoginVerifyCodeParams, LoginXYAccountParams, MEETING_DIRECTION, TCommand, TLocalLanguage, XYCheckNumberParams, XYClientEventKey, XYServerInfo, XYWebRxAudioStatus } from '../type/index';
|
|
6
|
-
import { default as ContentTrack } from '../main/track/contentTrack';
|
|
7
1
|
import { default as VideoAudioTrack } from '../main/track/videoAudioTrack';
|
|
8
|
-
|
|
2
|
+
import { default as ContentTrack } from '../main/track/contentTrack';
|
|
3
|
+
import { AnalyserConfig, ClientInfoConfig, IConference, IConfMgmtUrl, ICustomMessageConfig, IFeatureConfig, IFeatureConfigKey, IFeatureConfigValue, IGetConferenceParams, ILoginExtAccount, ILoginWidthAuthCode, IMakeCall, IMode, InviteInfo, IReqInfo, IReturnResult, IRoster, IVideoAudioType, IVideoControlResult, IVideoProfile, Key, LayoutConfig, LayoutMode, LayoutOrientationType, LocalViewParams, LoginExtTokenParams, LoginTokenInfo, LoginVerifyCodeParams, LoginXYAccountParams, MEETING_DIRECTION, TCommand, TLocalLanguage, XYCheckNumberParams, XYClientEventKey, XYServerInfo, XYWebRxAudioStatus } from '../type/index';
|
|
4
|
+
import { AudioAnalyser } from '../tools/analyser';
|
|
5
|
+
import { XYEnterpriseInfo, XYSensitiveWords, XYUicustomization } from '../main/meeting/index.type';
|
|
6
|
+
import { CheckCaptchaImageParams, LoginOtherParams } from '../main/auth/index.type';
|
|
7
|
+
import { SnapshotParams, SnapshotResult } from '@xylink/xy-toolkit';
|
|
9
8
|
export interface XYClientIF {
|
|
10
9
|
/**
|
|
11
10
|
* 初始化
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DEVICE_KIND, IFacingMode, IReturnResult, PeopleTrackConfig, SwitchDeviceConfig } from '../type/index';
|
|
2
1
|
import { default as VideoAudioTrack } from '../main/track/videoAudioTrack';
|
|
3
|
-
|
|
2
|
+
import { DEVICE_KIND, IFacingMode, IReturnResult, PeopleTrackConfig, SwitchDeviceConfig } from '../type/index';
|
|
4
3
|
export interface XYVideoAudioTrackIF {
|
|
5
4
|
capture(config?: PeopleTrackConfig): Promise<any>;
|
|
6
5
|
close(): void;
|