larksr_websdk 3.2.35 → 3.2.36

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.
@@ -173,7 +173,11 @@ declare enum LarkSRClientEvent {
173
173
  /**
174
174
  * 对话返回的结果
175
175
  */
176
- AI_VOICE_DM_RESULT = "aivoicedmresult"
176
+ AI_VOICE_DM_RESULT = "aivoicedmresult",
177
+ /**
178
+ * 对话出错详细信息
179
+ */
180
+ AI_VOICE_ERROR = "aivoiceerror"
177
181
  }
178
182
  /**
179
183
  * LarkSR 发出的事件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "larksr_websdk",
3
- "version": "3.2.35",
3
+ "version": "3.2.36",
4
4
  "description": "Larksr websdk. Easy to build a cloud render client for larksr system or ue4 pixelstreaming.docs: https://pingxingyun.github.io/webclient_sdk/",
5
5
  "keywords": [
6
6
  "pingxingyun",
@@ -41,7 +41,8 @@ export declare enum APP_EVENT_TYPE {
41
41
  LK_DATA_CHANNEL_RENDERSERVER_CLOSE = 17,
42
42
  AI_VOICE_STATUS = 18,
43
43
  AI_VOICE_ASR_RESULT = 19,
44
- AI_VOICE_DM_RESULT = 20
44
+ AI_VOICE_DM_RESULT = 20,
45
+ AI_VOICE_ERROR = 21
45
46
  }
46
47
  export interface AppEvent extends LocalEvent<APP_EVENT_TYPE> {
47
48
  data?: any;
@@ -127,6 +128,7 @@ export default class Application extends EventBase<APP_EVENT_TYPE, AppEvent> {
127
128
  private onAiVoiceStatus;
128
129
  private onAiVoiceAsrResult;
129
130
  private onAiVoiceDMResult;
131
+ private onAiVoiceError;
130
132
  appStateChange(state: APP_STATE): void;
131
133
  private infoMsg;
132
134
  private errorMsg;
@@ -28,7 +28,8 @@ export declare enum WEBRTC_EVENT_TYPE {
28
28
  RTC_ICECANDIDATE = 17,
29
29
  AI_VOICE_STATUS = 18,
30
30
  AI_VOICE_ASR_RESULT = 19,
31
- AI_VOICE_DM_RESULT = 20
31
+ AI_VOICE_DM_RESULT = 20,
32
+ AI_VOICE_ERROR = 21
32
33
  }
33
34
  export interface GoogleBitRate {
34
35
  start: number;
package/types/larksr.d.ts CHANGED
@@ -173,7 +173,11 @@ declare enum LarkSRClientEvent {
173
173
  /**
174
174
  * 对话返回的结果
175
175
  */
176
- AI_VOICE_DM_RESULT = "aivoicedmresult"
176
+ AI_VOICE_DM_RESULT = "aivoicedmresult",
177
+ /**
178
+ * 对话出错详细信息
179
+ */
180
+ AI_VOICE_ERROR = "aivoiceerror"
177
181
  }
178
182
  /**
179
183
  * LarkSR 发出的事件
@@ -6884,6 +6884,102 @@ export namespace CloudLark {
6884
6884
  public toJSON(): { [k: string]: any };
6885
6885
  }
6886
6886
 
6887
+ /** Properties of an AivoiceError. */
6888
+ interface IAivoiceError {
6889
+
6890
+ /** AivoiceError voiceId */
6891
+ voiceId?: (number|null);
6892
+
6893
+ /** AivoiceError text */
6894
+ text?: (string|null);
6895
+ }
6896
+
6897
+ /** Represents an AivoiceError. */
6898
+ class AivoiceError implements IAivoiceError {
6899
+
6900
+ /**
6901
+ * Constructs a new AivoiceError.
6902
+ * @param [properties] Properties to set
6903
+ */
6904
+ constructor(properties?: CloudLark.IAivoiceError);
6905
+
6906
+ /** AivoiceError voiceId. */
6907
+ public voiceId: number;
6908
+
6909
+ /** AivoiceError text. */
6910
+ public text: string;
6911
+
6912
+ /**
6913
+ * Creates a new AivoiceError instance using the specified properties.
6914
+ * @param [properties] Properties to set
6915
+ * @returns AivoiceError instance
6916
+ */
6917
+ public static create(properties?: CloudLark.IAivoiceError): CloudLark.AivoiceError;
6918
+
6919
+ /**
6920
+ * Encodes the specified AivoiceError message. Does not implicitly {@link CloudLark.AivoiceError.verify|verify} messages.
6921
+ * @param message AivoiceError message or plain object to encode
6922
+ * @param [writer] Writer to encode to
6923
+ * @returns Writer
6924
+ */
6925
+ public static encode(message: CloudLark.IAivoiceError, writer?: $protobuf.Writer): $protobuf.Writer;
6926
+
6927
+ /**
6928
+ * Encodes the specified AivoiceError message, length delimited. Does not implicitly {@link CloudLark.AivoiceError.verify|verify} messages.
6929
+ * @param message AivoiceError message or plain object to encode
6930
+ * @param [writer] Writer to encode to
6931
+ * @returns Writer
6932
+ */
6933
+ public static encodeDelimited(message: CloudLark.IAivoiceError, writer?: $protobuf.Writer): $protobuf.Writer;
6934
+
6935
+ /**
6936
+ * Decodes an AivoiceError message from the specified reader or buffer.
6937
+ * @param reader Reader or buffer to decode from
6938
+ * @param [length] Message length if known beforehand
6939
+ * @returns AivoiceError
6940
+ * @throws {Error} If the payload is not a reader or valid buffer
6941
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6942
+ */
6943
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CloudLark.AivoiceError;
6944
+
6945
+ /**
6946
+ * Decodes an AivoiceError message from the specified reader or buffer, length delimited.
6947
+ * @param reader Reader or buffer to decode from
6948
+ * @returns AivoiceError
6949
+ * @throws {Error} If the payload is not a reader or valid buffer
6950
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6951
+ */
6952
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CloudLark.AivoiceError;
6953
+
6954
+ /**
6955
+ * Verifies an AivoiceError message.
6956
+ * @param message Plain object to verify
6957
+ * @returns `null` if valid, otherwise the reason why it is not
6958
+ */
6959
+ public static verify(message: { [k: string]: any }): (string|null);
6960
+
6961
+ /**
6962
+ * Creates an AivoiceError message from a plain object. Also converts values to their respective internal types.
6963
+ * @param object Plain object
6964
+ * @returns AivoiceError
6965
+ */
6966
+ public static fromObject(object: { [k: string]: any }): CloudLark.AivoiceError;
6967
+
6968
+ /**
6969
+ * Creates a plain object from an AivoiceError message. Also converts values to other types if specified.
6970
+ * @param message AivoiceError
6971
+ * @param [options] Conversion options
6972
+ * @returns Plain object
6973
+ */
6974
+ public static toObject(message: CloudLark.AivoiceError, options?: $protobuf.IConversionOptions): { [k: string]: any };
6975
+
6976
+ /**
6977
+ * Converts this AivoiceError to JSON.
6978
+ * @returns JSON object
6979
+ */
6980
+ public toJSON(): { [k: string]: any };
6981
+ }
6982
+
6887
6983
  /** Properties of a ClientInput. */
6888
6984
  interface IClientInput {
6889
6985
 
@@ -7150,6 +7246,9 @@ export namespace CloudLark {
7150
7246
 
7151
7247
  /** AppNotification aiVoiceServiceStatus */
7152
7248
  aiVoiceServiceStatus?: (CloudLark.IAiVoiceServiceStatus|null);
7249
+
7250
+ /** AppNotification aiVoiceErr */
7251
+ aiVoiceErr?: (CloudLark.IAivoiceError|null);
7153
7252
  }
7154
7253
 
7155
7254
  /** Represents an AppNotification. */
@@ -7194,8 +7293,11 @@ export namespace CloudLark {
7194
7293
  /** AppNotification aiVoiceServiceStatus. */
7195
7294
  public aiVoiceServiceStatus?: (CloudLark.IAiVoiceServiceStatus|null);
7196
7295
 
7296
+ /** AppNotification aiVoiceErr. */
7297
+ public aiVoiceErr?: (CloudLark.IAivoiceError|null);
7298
+
7197
7299
  /** AppNotification notify. */
7198
- public notify?: ("resize"|"mousemode"|"updatePlayers"|"requestInput"|"gamepadOutput"|"datachannelState"|"appDcMsg"|"cursorStyle"|"aiVoiceRealtimeParseresult"|"aiVoiceResult"|"aiVoiceServiceStatus");
7300
+ public notify?: ("resize"|"mousemode"|"updatePlayers"|"requestInput"|"gamepadOutput"|"datachannelState"|"appDcMsg"|"cursorStyle"|"aiVoiceRealtimeParseresult"|"aiVoiceResult"|"aiVoiceServiceStatus"|"aiVoiceErr");
7199
7301
 
7200
7302
  /**
7201
7303
  * Creates a new AppNotification instance using the specified properties.