fmode-ng 0.0.42 → 0.0.44

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.
@@ -37,9 +37,7 @@ export declare class ModalAudioMessageComponent {
37
37
  /**
38
38
  * 计时器
39
39
  */
40
- clockStr: string;
41
- timerInt: any;
42
- countTimer(): void;
40
+ durationStr: string;
43
41
  /**
44
42
  * 操作区
45
43
  */
@@ -32,6 +32,7 @@ export declare class FmodeVoiceService {
32
32
  finishTalk(): void;
33
33
  onBeforeFinishTalk: Function;
34
34
  onAfterFinishTalk: Function;
35
+ onInputChange: Function;
35
36
  /**
36
37
  * 用户操作:开始讲话,实时转录语言
37
38
  */
@@ -88,10 +89,26 @@ export declare class FmodeVoiceService {
88
89
  /**
89
90
  * 倒计时:最长支持60秒实时语音转录,如果持续7-10秒无声音,服务端将自动CLOSE链接
90
91
  */
91
- countdown(): void;
92
+ /**
93
+ * 计时器
94
+ */
95
+ onDurationStrChange: Function;
96
+ durationStr: string;
97
+ duration: number;
98
+ now: Date;
99
+ countTimer(): void;
100
+ startCountdown(): void;
92
101
  changeBtnStatus(status: any): void;
93
102
  renderResult(resultData: any): void;
103
+ getUserInput(): string;
94
104
  connectWebSocket(): void;
105
+ /**
106
+ * 断开自动重连
107
+ * @desc
108
+ * 停留5秒自动断开重连
109
+ * 60秒断开后重连
110
+ */
111
+ reconnectWebsocket(): Promise<void>;
95
112
  /**
96
113
  * 移动端兼容方法
97
114
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmode-ng",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "author": "未来全栈",
5
5
  "license": "COPYRIGHT © 未来飞马 未来全栈 www.fmode.cn All RIGHTS RESERVED",
6
6
  "peerDependencies": {