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.
- package/esm2022/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.mjs +1 -1
- package/esm2022/lib/aigc/voice/fmode-voice.service.mjs +1 -1
- package/esm2022/lib/aigc/voice/stream.player.mjs +1 -1
- package/fesm2022/fmode-ng.mjs +1 -1
- package/fesm2022/fmode-ng.mjs.map +1 -1
- package/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.d.ts +1 -3
- package/lib/aigc/voice/fmode-voice.service.d.ts +18 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
*/
|