fmode-ng 0.0.30 → 0.0.32
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/avatar/modal-chat-voice-input/modal-chat-voice-input.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-modal-input/modal-input.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-panel/chat-panel.component.mjs +1 -1
- package/esm2022/lib/aigc/service-fmai/service-chat/chat-class.mjs +1 -1
- package/esm2022/lib/aigc/service-fmai/service-chat/chat.service.mjs +1 -1
- package/fesm2022/fmode-ng.mjs +1 -1
- package/fesm2022/fmode-ng.mjs.map +1 -1
- package/lib/aigc/avatar/modal-chat-voice-input/modal-chat-voice-input.component.d.ts +0 -9
- package/lib/aigc/chat/chat-modal-input/modal-input.component.d.ts +3 -2
- package/lib/aigc/chat/chat-panel/chat-panel.component.d.ts +3 -1
- package/lib/aigc/service-fmai/service-chat/chat-class.d.ts +18 -2
- package/package.json +1 -1
|
@@ -4,7 +4,6 @@ import { Router } from '@angular/router';
|
|
|
4
4
|
import { Platform } from "@ionic/angular";
|
|
5
5
|
import { FmodeVoiceService } from '../../voice';
|
|
6
6
|
import { FmodeChat, ChatService } from '../../service-fmai/service-chat';
|
|
7
|
-
import { FmodeTTS } from '../../voice/tts';
|
|
8
7
|
import { NovaCloudService } from '../../../nova-cloud/nova-cloud.service';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class ModalChatVoiceInputComponent implements OnInit {
|
|
@@ -48,14 +47,6 @@ export declare class ModalChatVoiceInputComponent implements OnInit {
|
|
|
48
47
|
*
|
|
49
48
|
*/
|
|
50
49
|
sendMessage(): Promise<void>;
|
|
51
|
-
/**
|
|
52
|
-
* TTS - 语音合成
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
tts: FmodeTTS;
|
|
56
|
-
initTTS(): Promise<void>;
|
|
57
|
-
playTTS(textOrSSML: string): Promise<void>;
|
|
58
|
-
playTTSTeting(): void;
|
|
59
50
|
testTTS(sentence?: any): void;
|
|
60
51
|
testXunfeiTTS(): void;
|
|
61
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalChatVoiceInputComponent, never>;
|
|
@@ -6,6 +6,7 @@ import { ChatService } from '../../service-fmai/service-chat';
|
|
|
6
6
|
import Parse from "parse";
|
|
7
7
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
8
8
|
import { ImagineService } from '../../service-fmai/service-imagine/imagine.service';
|
|
9
|
+
import { ModalAudioMessageComponent } from "./modal-audio-message/modal-audio-message.component";
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class FmChatModalInput implements OnInit {
|
|
11
12
|
private toastCtrl;
|
|
@@ -16,20 +17,20 @@ export declare class FmChatModalInput implements OnInit {
|
|
|
16
17
|
chatServ: ChatService;
|
|
17
18
|
private route;
|
|
18
19
|
private messages;
|
|
20
|
+
audioComp: ModalAudioMessageComponent;
|
|
19
21
|
chat: FmodeChat;
|
|
20
22
|
message: FmodeChatMessage;
|
|
21
23
|
role: Parse.Object;
|
|
22
24
|
user: Parse.User;
|
|
23
25
|
errorText: string;
|
|
24
|
-
leftButtons: Array<any>;
|
|
25
26
|
isAudioModal: boolean;
|
|
27
|
+
closeAudio(): void;
|
|
26
28
|
account: any;
|
|
27
29
|
authServ: any;
|
|
28
30
|
constructor(toastCtrl: ToastController, alertCtrl: AlertController, navCtrl: NavController, router: Router, imagineServ: ImagineService, chatServ: ChatService, route: ActivatedRoute, messages: NzMessageService);
|
|
29
31
|
ngOnInit(): void;
|
|
30
32
|
loadModel(): Promise<void>;
|
|
31
33
|
setMessageImage(): Promise<void>;
|
|
32
|
-
callRole(role: any): Promise<void>;
|
|
33
34
|
onKeyDown(event: KeyboardEvent): void;
|
|
34
35
|
sendMessage(): Promise<void>;
|
|
35
36
|
checkBalance(): Promise<boolean>;
|
|
@@ -11,6 +11,8 @@ export declare class ChatPanelComponent implements OnInit, AfterViewInit {
|
|
|
11
11
|
maskId: any;
|
|
12
12
|
roleId: string;
|
|
13
13
|
fmodeChat: FmodeChat;
|
|
14
|
+
leftButtons: any[] | undefined;
|
|
15
|
+
modelList: any[] | undefined;
|
|
14
16
|
constructor(route: ActivatedRoute, router: Router, chatServ: ChatService);
|
|
15
17
|
contentComp: ElementRef;
|
|
16
18
|
listenDivChange(): void;
|
|
@@ -19,5 +21,5 @@ export declare class ChatPanelComponent implements OnInit, AfterViewInit {
|
|
|
19
21
|
ngOnInit(): void;
|
|
20
22
|
loadMask(): void;
|
|
21
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatPanelComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatPanelComponent, "app-chat-panel", never, { "chatId": { "alias": "chatId"; "required": false; }; "maskId": { "alias": "maskId"; "required": false; }; "roleId": { "alias": "roleId"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatPanelComponent, "app-chat-panel", never, { "chatId": { "alias": "chatId"; "required": false; }; "maskId": { "alias": "maskId"; "required": false; }; "roleId": { "alias": "roleId"; "required": false; }; "leftButtons": { "alias": "leftButtons"; "required": false; }; "modelList": { "alias": "modelList"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
25
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import Parse from "parse";
|
|
3
|
+
import { NavController } from "@ionic/angular";
|
|
4
|
+
import { FmodeTTS } from "../../voice/tts";
|
|
5
|
+
import { NovaCloudService } from "../../../nova-cloud";
|
|
3
6
|
export interface FmodeChatMessageVoice {
|
|
4
7
|
id: string;
|
|
5
8
|
ssml?: string;
|
|
@@ -56,6 +59,11 @@ export declare class FmodeChat {
|
|
|
56
59
|
*/
|
|
57
60
|
isPromptModalOpen: boolean;
|
|
58
61
|
promptList: any;
|
|
62
|
+
/**
|
|
63
|
+
* 输入按钮区域
|
|
64
|
+
*/
|
|
65
|
+
navCtrl: NavController;
|
|
66
|
+
leftButtons: Array<any>;
|
|
59
67
|
/**
|
|
60
68
|
* 是否开启语音消息模式(单次)
|
|
61
69
|
*/
|
|
@@ -69,7 +77,8 @@ export declare class FmodeChat {
|
|
|
69
77
|
*/
|
|
70
78
|
isTalkMode: boolean;
|
|
71
79
|
SSMLRoleVoice: string;
|
|
72
|
-
|
|
80
|
+
ncloud: NovaCloudService;
|
|
81
|
+
constructor(sessionId: string, role?: Parse.Object, chatSession?: Parse.Object, chatServ?: any, navCtrl?: NavController, ncloud?: NovaCloudService);
|
|
73
82
|
/**
|
|
74
83
|
* 会话Avatar控制
|
|
75
84
|
*/
|
|
@@ -89,8 +98,15 @@ export declare class FmodeChat {
|
|
|
89
98
|
* @param imageUrl
|
|
90
99
|
*/
|
|
91
100
|
sendMessage(message?: string, imageUrl?: string, onComplete?: Function, eventMap?: FmodeChatEventMap): Promise<void>;
|
|
92
|
-
getVoiceByContentText(content: string | ChatImageContentItem[], eventMap?: FmodeChatEventMap): Promise<FmodeChatMessageVoice>;
|
|
101
|
+
getVoiceByContentText(content: string | ChatImageContentItem[], eventMap?: FmodeChatEventMap, promptEnabled?: boolean): Promise<FmodeChatMessageVoice>;
|
|
93
102
|
getContentText(content: string | ChatImageContentItem[]): string;
|
|
103
|
+
/**
|
|
104
|
+
* TTS - 语音合成
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
tts: FmodeTTS;
|
|
108
|
+
initTTS(): Promise<void>;
|
|
109
|
+
playTTS(voice: FmodeChatMessageVoice): Promise<void>;
|
|
94
110
|
/**
|
|
95
111
|
* 保存单次会话
|
|
96
112
|
*/
|