quickvo-sdk-js 1.5.7 → 1.5.9
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/dist/index.js +21058 -21204
- package/dist/index.umd.cjs +3 -3
- package/dist/protos/compiled.d.ts +149 -2
- package/dist/room/P2P.d.ts +4 -0
- package/dist/room/RoomBase.d.ts +6 -0
- package/dist/room/RoomCalls.d.ts +2 -2
- package/dist/types.d.ts +17 -0
- package/package.json +1 -1
|
@@ -960,6 +960,12 @@ export namespace com {
|
|
|
960
960
|
|
|
961
961
|
/** JoinReq token */
|
|
962
962
|
token?: (string|null);
|
|
963
|
+
|
|
964
|
+
/** JoinReq lang */
|
|
965
|
+
lang?: (com.quick.voice.proto.IAiLangSetting|null);
|
|
966
|
+
|
|
967
|
+
/** JoinReq stt */
|
|
968
|
+
stt?: (boolean|null);
|
|
963
969
|
}
|
|
964
970
|
|
|
965
971
|
/** Represents a JoinReq. */
|
|
@@ -983,9 +989,21 @@ export namespace com {
|
|
|
983
989
|
/** JoinReq token. */
|
|
984
990
|
public token?: (string|null);
|
|
985
991
|
|
|
992
|
+
/** JoinReq lang. */
|
|
993
|
+
public lang?: (com.quick.voice.proto.IAiLangSetting|null);
|
|
994
|
+
|
|
995
|
+
/** JoinReq stt. */
|
|
996
|
+
public stt?: (boolean|null);
|
|
997
|
+
|
|
986
998
|
/** JoinReq _token. */
|
|
987
999
|
public _token?: "token";
|
|
988
1000
|
|
|
1001
|
+
/** JoinReq _lang. */
|
|
1002
|
+
public _lang?: "lang";
|
|
1003
|
+
|
|
1004
|
+
/** JoinReq _stt. */
|
|
1005
|
+
public _stt?: "stt";
|
|
1006
|
+
|
|
989
1007
|
/**
|
|
990
1008
|
* Creates a new JoinReq instance using the specified properties.
|
|
991
1009
|
* @param [properties] Properties to set
|
|
@@ -5729,8 +5747,7 @@ export namespace com {
|
|
|
5729
5747
|
Failed = 1,
|
|
5730
5748
|
Ignore = 2,
|
|
5731
5749
|
Disconnected = 3,
|
|
5732
|
-
LowQuality = 4
|
|
5733
|
-
ReConnect = 5
|
|
5750
|
+
LowQuality = 4
|
|
5734
5751
|
}
|
|
5735
5752
|
|
|
5736
5753
|
/** Properties of a ReportP2PReq. */
|
|
@@ -5753,6 +5770,9 @@ export namespace com {
|
|
|
5753
5770
|
|
|
5754
5771
|
/** ReportP2PReq connectedTime */
|
|
5755
5772
|
connectedTime?: (string|null);
|
|
5773
|
+
|
|
5774
|
+
/** ReportP2PReq trackType */
|
|
5775
|
+
trackType?: (com.quick.voice.proto.TrackType|null);
|
|
5756
5776
|
}
|
|
5757
5777
|
|
|
5758
5778
|
/** Represents a ReportP2PReq. */
|
|
@@ -5782,12 +5802,18 @@ export namespace com {
|
|
|
5782
5802
|
/** ReportP2PReq connectedTime. */
|
|
5783
5803
|
public connectedTime?: (string|null);
|
|
5784
5804
|
|
|
5805
|
+
/** ReportP2PReq trackType. */
|
|
5806
|
+
public trackType?: (com.quick.voice.proto.TrackType|null);
|
|
5807
|
+
|
|
5785
5808
|
/** ReportP2PReq _reason. */
|
|
5786
5809
|
public _reason?: "reason";
|
|
5787
5810
|
|
|
5788
5811
|
/** ReportP2PReq _connectedTime. */
|
|
5789
5812
|
public _connectedTime?: "connectedTime";
|
|
5790
5813
|
|
|
5814
|
+
/** ReportP2PReq _trackType. */
|
|
5815
|
+
public _trackType?: "trackType";
|
|
5816
|
+
|
|
5791
5817
|
/**
|
|
5792
5818
|
* Creates a new ReportP2PReq instance using the specified properties.
|
|
5793
5819
|
* @param [properties] Properties to set
|
|
@@ -5886,6 +5912,9 @@ export namespace com {
|
|
|
5886
5912
|
|
|
5887
5913
|
/** ReportP2PConnectExReq reason */
|
|
5888
5914
|
reason?: (string|null);
|
|
5915
|
+
|
|
5916
|
+
/** ReportP2PConnectExReq trackType */
|
|
5917
|
+
trackType?: (com.quick.voice.proto.TrackType|null);
|
|
5889
5918
|
}
|
|
5890
5919
|
|
|
5891
5920
|
/** Represents a ReportP2PConnectExReq. */
|
|
@@ -5915,12 +5944,18 @@ export namespace com {
|
|
|
5915
5944
|
/** ReportP2PConnectExReq reason. */
|
|
5916
5945
|
public reason?: (string|null);
|
|
5917
5946
|
|
|
5947
|
+
/** ReportP2PConnectExReq trackType. */
|
|
5948
|
+
public trackType?: (com.quick.voice.proto.TrackType|null);
|
|
5949
|
+
|
|
5918
5950
|
/** ReportP2PConnectExReq _connectedTime. */
|
|
5919
5951
|
public _connectedTime?: "connectedTime";
|
|
5920
5952
|
|
|
5921
5953
|
/** ReportP2PConnectExReq _reason. */
|
|
5922
5954
|
public _reason?: "reason";
|
|
5923
5955
|
|
|
5956
|
+
/** ReportP2PConnectExReq _trackType. */
|
|
5957
|
+
public _trackType?: "trackType";
|
|
5958
|
+
|
|
5924
5959
|
/**
|
|
5925
5960
|
* Creates a new ReportP2PConnectExReq instance using the specified properties.
|
|
5926
5961
|
* @param [properties] Properties to set
|
|
@@ -6649,6 +6684,9 @@ export namespace com {
|
|
|
6649
6684
|
|
|
6650
6685
|
/** P2PDisconnectNotify remoteUserId */
|
|
6651
6686
|
remoteUserId?: (string|null);
|
|
6687
|
+
|
|
6688
|
+
/** P2PDisconnectNotify trackType */
|
|
6689
|
+
trackType?: (com.quick.voice.proto.TrackType|null);
|
|
6652
6690
|
}
|
|
6653
6691
|
|
|
6654
6692
|
/** Represents a P2PDisconnectNotify. */
|
|
@@ -6666,6 +6704,12 @@ export namespace com {
|
|
|
6666
6704
|
/** P2PDisconnectNotify remoteUserId. */
|
|
6667
6705
|
public remoteUserId: string;
|
|
6668
6706
|
|
|
6707
|
+
/** P2PDisconnectNotify trackType. */
|
|
6708
|
+
public trackType?: (com.quick.voice.proto.TrackType|null);
|
|
6709
|
+
|
|
6710
|
+
/** P2PDisconnectNotify _trackType. */
|
|
6711
|
+
public _trackType?: "trackType";
|
|
6712
|
+
|
|
6669
6713
|
/**
|
|
6670
6714
|
* Creates a new P2PDisconnectNotify instance using the specified properties.
|
|
6671
6715
|
* @param [properties] Properties to set
|
|
@@ -6859,6 +6903,109 @@ export namespace com {
|
|
|
6859
6903
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
6860
6904
|
}
|
|
6861
6905
|
|
|
6906
|
+
/** Properties of an AiLangSetting. */
|
|
6907
|
+
interface IAiLangSetting {
|
|
6908
|
+
|
|
6909
|
+
/** AiLangSetting input */
|
|
6910
|
+
input?: (string|null);
|
|
6911
|
+
|
|
6912
|
+
/** AiLangSetting output */
|
|
6913
|
+
output?: (string|null);
|
|
6914
|
+
}
|
|
6915
|
+
|
|
6916
|
+
/** Represents an AiLangSetting. */
|
|
6917
|
+
class AiLangSetting implements IAiLangSetting {
|
|
6918
|
+
|
|
6919
|
+
/**
|
|
6920
|
+
* Constructs a new AiLangSetting.
|
|
6921
|
+
* @param [properties] Properties to set
|
|
6922
|
+
*/
|
|
6923
|
+
constructor(properties?: com.quick.voice.proto.IAiLangSetting);
|
|
6924
|
+
|
|
6925
|
+
/** AiLangSetting input. */
|
|
6926
|
+
public input: string;
|
|
6927
|
+
|
|
6928
|
+
/** AiLangSetting output. */
|
|
6929
|
+
public output: string;
|
|
6930
|
+
|
|
6931
|
+
/**
|
|
6932
|
+
* Creates a new AiLangSetting instance using the specified properties.
|
|
6933
|
+
* @param [properties] Properties to set
|
|
6934
|
+
* @returns AiLangSetting instance
|
|
6935
|
+
*/
|
|
6936
|
+
public static create(properties?: com.quick.voice.proto.IAiLangSetting): com.quick.voice.proto.AiLangSetting;
|
|
6937
|
+
|
|
6938
|
+
/**
|
|
6939
|
+
* Encodes the specified AiLangSetting message. Does not implicitly {@link com.quick.voice.proto.AiLangSetting.verify|verify} messages.
|
|
6940
|
+
* @param message AiLangSetting message or plain object to encode
|
|
6941
|
+
* @param [writer] Writer to encode to
|
|
6942
|
+
* @returns Writer
|
|
6943
|
+
*/
|
|
6944
|
+
public static encode(message: com.quick.voice.proto.IAiLangSetting, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
6945
|
+
|
|
6946
|
+
/**
|
|
6947
|
+
* Encodes the specified AiLangSetting message, length delimited. Does not implicitly {@link com.quick.voice.proto.AiLangSetting.verify|verify} messages.
|
|
6948
|
+
* @param message AiLangSetting message or plain object to encode
|
|
6949
|
+
* @param [writer] Writer to encode to
|
|
6950
|
+
* @returns Writer
|
|
6951
|
+
*/
|
|
6952
|
+
public static encodeDelimited(message: com.quick.voice.proto.IAiLangSetting, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
6953
|
+
|
|
6954
|
+
/**
|
|
6955
|
+
* Decodes an AiLangSetting message from the specified reader or buffer.
|
|
6956
|
+
* @param reader Reader or buffer to decode from
|
|
6957
|
+
* @param [length] Message length if known beforehand
|
|
6958
|
+
* @returns AiLangSetting
|
|
6959
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6960
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6961
|
+
*/
|
|
6962
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.quick.voice.proto.AiLangSetting;
|
|
6963
|
+
|
|
6964
|
+
/**
|
|
6965
|
+
* Decodes an AiLangSetting message from the specified reader or buffer, length delimited.
|
|
6966
|
+
* @param reader Reader or buffer to decode from
|
|
6967
|
+
* @returns AiLangSetting
|
|
6968
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6969
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6970
|
+
*/
|
|
6971
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.quick.voice.proto.AiLangSetting;
|
|
6972
|
+
|
|
6973
|
+
/**
|
|
6974
|
+
* Verifies an AiLangSetting message.
|
|
6975
|
+
* @param message Plain object to verify
|
|
6976
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
6977
|
+
*/
|
|
6978
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
6979
|
+
|
|
6980
|
+
/**
|
|
6981
|
+
* Creates an AiLangSetting message from a plain object. Also converts values to their respective internal types.
|
|
6982
|
+
* @param object Plain object
|
|
6983
|
+
* @returns AiLangSetting
|
|
6984
|
+
*/
|
|
6985
|
+
public static fromObject(object: { [k: string]: any }): com.quick.voice.proto.AiLangSetting;
|
|
6986
|
+
|
|
6987
|
+
/**
|
|
6988
|
+
* Creates a plain object from an AiLangSetting message. Also converts values to other types if specified.
|
|
6989
|
+
* @param message AiLangSetting
|
|
6990
|
+
* @param [options] Conversion options
|
|
6991
|
+
* @returns Plain object
|
|
6992
|
+
*/
|
|
6993
|
+
public static toObject(message: com.quick.voice.proto.AiLangSetting, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
6994
|
+
|
|
6995
|
+
/**
|
|
6996
|
+
* Converts this AiLangSetting to JSON.
|
|
6997
|
+
* @returns JSON object
|
|
6998
|
+
*/
|
|
6999
|
+
public toJSON(): { [k: string]: any };
|
|
7000
|
+
|
|
7001
|
+
/**
|
|
7002
|
+
* Gets the default type url for AiLangSetting
|
|
7003
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7004
|
+
* @returns The default type url
|
|
7005
|
+
*/
|
|
7006
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7007
|
+
}
|
|
7008
|
+
|
|
6862
7009
|
/** RtcEvent enum. */
|
|
6863
7010
|
enum RtcEvent {
|
|
6864
7011
|
UpdateTrackActive = 0
|
package/dist/room/P2P.d.ts
CHANGED
package/dist/room/RoomBase.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export declare class RoomBase {
|
|
|
53
53
|
* reportLogs
|
|
54
54
|
*/
|
|
55
55
|
reportLogs: (_type: Report_Log_Type, describe?: string) => void;
|
|
56
|
+
stopPhoneyStreams: (mediaTypes?: K_mediaType[]) => void;
|
|
56
57
|
initPhoneyStreams: (audioContext: AudioContext, mediaTypes?: K_mediaType[]) => void;
|
|
57
58
|
getPhoneyStreams: (mediaType: K_mediaType) => MediaStream;
|
|
58
59
|
/**
|
|
@@ -72,6 +73,11 @@ export declare class RoomBase {
|
|
|
72
73
|
roomId: string;
|
|
73
74
|
userId: string;
|
|
74
75
|
callType: number;
|
|
76
|
+
stt?: boolean;
|
|
77
|
+
lang?: {
|
|
78
|
+
input?: string;
|
|
79
|
+
output?: string;
|
|
80
|
+
};
|
|
75
81
|
newPublishAutoSubscribe?: boolean;
|
|
76
82
|
timeout?: number;
|
|
77
83
|
earlyId?: string;
|
package/dist/room/RoomCalls.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export declare class RoomCalls extends RoomPeer {
|
|
|
67
67
|
/**
|
|
68
68
|
* 发布流
|
|
69
69
|
* @param mediaTypes MediaType[]
|
|
70
|
-
* @example quickvo.publish(['microphoneCamera_audio', 'microphoneCamera_video']
|
|
70
|
+
* @example quickvo.publish(['microphoneCamera_audio', 'microphoneCamera_video'])
|
|
71
71
|
* @returns Promise<boolean>
|
|
72
72
|
*/
|
|
73
73
|
publish: (mediaTypes: K_mediaType[]) => Promise<boolean>;
|
|
@@ -155,7 +155,7 @@ export declare class RoomCalls extends RoomPeer {
|
|
|
155
155
|
/**
|
|
156
156
|
* open
|
|
157
157
|
*/
|
|
158
|
-
open: (remoteUserId: string,
|
|
158
|
+
open: (remoteUserId: string, mediaType?: K_mediaType) => Promise<unknown>;
|
|
159
159
|
/**
|
|
160
160
|
* replaceSenderStreams
|
|
161
161
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -294,6 +294,23 @@ export interface RoomOptions {
|
|
|
294
294
|
* @enum 2 直播通话类型(间创建者默认拥有推拉流权限,其他加入者默认拥有订阅权限)
|
|
295
295
|
*/
|
|
296
296
|
callType: number;
|
|
297
|
+
/**
|
|
298
|
+
* 是否开启语音识别
|
|
299
|
+
*/
|
|
300
|
+
stt?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* 语音识别 语音设置
|
|
303
|
+
*/
|
|
304
|
+
lang?: {
|
|
305
|
+
/**
|
|
306
|
+
* 输入
|
|
307
|
+
*/
|
|
308
|
+
input?: string;
|
|
309
|
+
/**
|
|
310
|
+
* 输出
|
|
311
|
+
*/
|
|
312
|
+
output?: string;
|
|
313
|
+
};
|
|
297
314
|
/**
|
|
298
315
|
* 新流自动订阅 (默认为true 当房间存在大量用户流多需要分页订阅时则使用false)
|
|
299
316
|
* 用于控制当监听到新媒体轨道发布时 sdk内部是否自动发起订阅并输出最终媒体流
|