fmode-ng 0.0.85 → 0.0.86
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-input.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/comp-role-prompt/comp-role-prompt.component.mjs +1 -1
- package/esm2022/lib/aigc/service-fmai/service-imagine/imagine-func.mjs +1 -1
- package/esm2022/lib/aigc/service-fmai/service-imagine/imagine.service.mjs +1 -1
- package/esm2022/lib/aigc/voice/tts/fmode-tts-class.mjs +1 -1
- package/esm2022/lib/aigc/voice/tts/provider-doubao.mjs +1 -1
- package/esm2022/lib/core/agent/chat/fmode-chat.mjs +1 -1
- package/fesm2022/fmode-ng.mjs +1 -1
- package/fesm2022/fmode-ng.mjs.map +1 -1
- package/lib/aigc/service-fmai/service-imagine/imagine-func.d.ts +32 -0
- package/lib/aigc/service-fmai/service-imagine/imagine.service.d.ts +6 -1
- package/lib/aigc/voice/tts/fmode-tts-class.d.ts +3 -0
- package/lib/aigc/voice/tts/int-tts-provider.d.ts +2 -0
- package/lib/aigc/voice/tts/provider-doubao.d.ts +2 -0
- package/lib/core/agent/chat/fmode-chat.d.ts +4 -1
- package/lib/person/edit-upload/edit-upload.component.d.ts +1 -1
- package/package.json +11 -11
|
@@ -30,3 +30,35 @@ export interface DalleOptions {
|
|
|
30
30
|
* @param {string} options.style vivid | natural dall-e-3 only
|
|
31
31
|
*/
|
|
32
32
|
export declare function drawDalle(options: DalleOptions): Promise<Parse.Object<Parse.Attributes>>;
|
|
33
|
+
/**jimeng水印信息接口 */
|
|
34
|
+
export interface logo_info {
|
|
35
|
+
add_logo: boolean;
|
|
36
|
+
position: 0 | 1 | 2 | 3;
|
|
37
|
+
language: 0 | 1;
|
|
38
|
+
opacity: number;
|
|
39
|
+
logo_text_content: string;
|
|
40
|
+
}
|
|
41
|
+
export interface jimengImgOptions {
|
|
42
|
+
prompt: string;
|
|
43
|
+
width?: number;
|
|
44
|
+
height?: number;
|
|
45
|
+
use_pre_llm: boolean;
|
|
46
|
+
use_sr: boolean;
|
|
47
|
+
logo_info?: logo_info | null;
|
|
48
|
+
}
|
|
49
|
+
export interface jimengT_vOptions {
|
|
50
|
+
prompt: string;
|
|
51
|
+
aspect_ratio: '16:9' | '9:16' | '1:1' | '4:3' | '3:4' | '21:9';
|
|
52
|
+
}
|
|
53
|
+
export interface jimengI_vOptions {
|
|
54
|
+
prompt: string;
|
|
55
|
+
binary_data_base64?: Array<string>;
|
|
56
|
+
image_urls?: Array<string>;
|
|
57
|
+
aspect_ratio?: '16:9' | '9:16' | '1:1' | '4:3' | '3:4' | '21:9';
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* 即梦创建文生图
|
|
61
|
+
* @param params 图像参数
|
|
62
|
+
* @returns 返回ImagineWork作品任务Parse对象
|
|
63
|
+
*/
|
|
64
|
+
export declare function getJimengImg(params: jimengImgOptions): Promise<Parse.Object<Parse.Attributes>>;
|
|
@@ -2,7 +2,7 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { NovaCloudService } from '../../../nova-cloud/nova-cloud.service';
|
|
3
3
|
import Parse from "parse";
|
|
4
4
|
import { NovaUploadService } from '../../../storage/service-upload/nova-upload.service';
|
|
5
|
-
import { DalleOptions } from './imagine-func';
|
|
5
|
+
import { DalleOptions, jimengImgOptions } from './imagine-func';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export interface StableDiffusionOptions {
|
|
8
8
|
prompt: string;
|
|
@@ -112,6 +112,11 @@ export declare class ImagineService {
|
|
|
112
112
|
getMyWorkQuery(): Parse.Query<Parse.Object<Parse.Attributes>>;
|
|
113
113
|
getWorkQuery(): Parse.Query<Parse.Object<Parse.Attributes>>;
|
|
114
114
|
getimg(): Promise<string>;
|
|
115
|
+
/**
|
|
116
|
+
* 即梦图片生成函数
|
|
117
|
+
* @param options 图像参数
|
|
118
|
+
*/
|
|
119
|
+
getJimengImg(options: jimengImgOptions): Promise<void>;
|
|
115
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImagineService, never>;
|
|
116
121
|
static ɵprov: i0.ɵɵInjectableDeclaration<ImagineService>;
|
|
117
122
|
}
|
|
@@ -3,6 +3,7 @@ import { NovaUploadService } from "../../../storage/service-upload/nova-upload.s
|
|
|
3
3
|
import { AudioPlayer } from "../lib/audio/audio.player";
|
|
4
4
|
import { FmodeTTSEvent, FmodeTTSProvider } from "./int-tts-provider";
|
|
5
5
|
import { AudioStreamer } from "../lib/audio/audio.streamer";
|
|
6
|
+
import { FmodeChatVoiceConfig } from "../../../core/agent/chat/interface";
|
|
6
7
|
/**
|
|
7
8
|
* FmodeTTS
|
|
8
9
|
* 每个实例表示一次独立的语音合成服务
|
|
@@ -15,6 +16,7 @@ export declare class FmodeTTS {
|
|
|
15
16
|
isPlaying: boolean;
|
|
16
17
|
audioPlayer: AudioPlayer;
|
|
17
18
|
audioStream: AudioStreamer;
|
|
19
|
+
voiceConfig: FmodeChatVoiceConfig | undefined;
|
|
18
20
|
stop(): void;
|
|
19
21
|
config: any;
|
|
20
22
|
constructor(config: {
|
|
@@ -23,6 +25,7 @@ export declare class FmodeTTS {
|
|
|
23
25
|
subscriptionKey?: string;
|
|
24
26
|
token?: string;
|
|
25
27
|
provider?: FmodeTTSProvider;
|
|
28
|
+
voiceConfig?: FmodeChatVoiceConfig;
|
|
26
29
|
}, uploadServ?: NovaUploadService);
|
|
27
30
|
extractTextFromXML(inputString: string): string;
|
|
28
31
|
extractSSMLContent(inputString: string): string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FmodeChatVoiceConfig } from "../../../core/agent/chat/interface";
|
|
1
2
|
export interface FmodeTTSEvent {
|
|
2
3
|
onSpeakBefore?(): void;
|
|
3
4
|
onStreamStarted?(): void;
|
|
@@ -13,6 +14,7 @@ export interface FmodeTTSProvider {
|
|
|
13
14
|
* @param config 配置参数
|
|
14
15
|
*/
|
|
15
16
|
initialize(config: any): void;
|
|
17
|
+
voiceConfig?: FmodeChatVoiceConfig;
|
|
16
18
|
/**
|
|
17
19
|
* 合成语音
|
|
18
20
|
* @param textOrSSML 文本或SSML内容
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FmodeTTSProvider, FmodeTTSEvent } from "./int-tts-provider";
|
|
2
2
|
import { PCMStreamer } from "../lib/audio/streamer.pcm";
|
|
3
|
+
import { FmodeChatVoiceConfig } from "../../../core/agent/chat/interface";
|
|
3
4
|
/**
|
|
4
5
|
* ByteDance/Doubao TTS Provider Implementation (Optimized)
|
|
5
6
|
*/
|
|
@@ -8,6 +9,7 @@ export declare class FmodeTTSProviderDoubao implements FmodeTTSProvider {
|
|
|
8
9
|
private audioChunks;
|
|
9
10
|
private isSynthesizing;
|
|
10
11
|
private audioStream;
|
|
12
|
+
voiceConfig: FmodeChatVoiceConfig | undefined;
|
|
11
13
|
eventMap?: FmodeTTSEvent;
|
|
12
14
|
constructor();
|
|
13
15
|
config: any;
|
|
@@ -62,7 +62,7 @@ export declare class EditUploadComponent implements OnInit {
|
|
|
62
62
|
}[];
|
|
63
63
|
qiniuConf: any;
|
|
64
64
|
getUptoken(): Promise<any>;
|
|
65
|
-
checkFileType(url: string): "
|
|
65
|
+
checkFileType(url: string): "video" | "image" | "file";
|
|
66
66
|
upable(): boolean;
|
|
67
67
|
imgShowing: boolean;
|
|
68
68
|
fileUrl: string;
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fmode-ng",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.86",
|
|
4
4
|
"author": "未来全栈",
|
|
5
5
|
"license": "COPYRIGHT © 未来飞马 未来全栈 www.fmode.cn All RIGHTS RESERVED",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
8
|
-
"@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
9
|
-
"@angular/forms": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
10
|
-
"@angular/material": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
11
|
-
"@angular/animations": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
12
|
-
"ng-qrcode": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
13
|
-
"ng-zorro-antd": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
7
|
+
"@angular/common": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.1",
|
|
8
|
+
"@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.1",
|
|
9
|
+
"@angular/forms": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.1",
|
|
10
|
+
"@angular/material": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.1",
|
|
11
|
+
"@angular/animations": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.1",
|
|
12
|
+
"ng-qrcode": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.1",
|
|
13
|
+
"ng-zorro-antd": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.1",
|
|
14
14
|
"parse": "^5.0.0",
|
|
15
15
|
"@types/parse": "^3.0.9",
|
|
16
16
|
"@ionic/angular": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
17
|
-
"qiniu-js": "^3.0.0 || ^2.0.0",
|
|
17
|
+
"qiniu-js": "^3.0.0 || ^2.0.0 || ^4.0.0",
|
|
18
18
|
"recorder-core": "^1.2.23070100",
|
|
19
19
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
20
20
|
"mathjax-full": "3.2.2",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"esdk-obs-browserjs": "^3.23.5",
|
|
33
33
|
"plantuml-encoder": "^1.4.0",
|
|
34
34
|
"jquery": "^3.7.1",
|
|
35
|
-
"@awesome-cordova-plugins/diagnostic": "^5.0.0 || ^6.0.0",
|
|
35
|
+
"@awesome-cordova-plugins/diagnostic": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
36
36
|
"@babylonjs/core": "7.2.3",
|
|
37
37
|
"@babylonjs/loaders": "7.2.3",
|
|
38
38
|
"spark-md5": "^3.0.2",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@capacitor/clipboard": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
44
44
|
"@capacitor/filesystem": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
45
45
|
"@capacitor/camera": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
46
|
-
"@awesome-cordova-plugins/media-capture": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
46
|
+
"@awesome-cordova-plugins/media-capture": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
47
47
|
"@wecom/jssdk": "^2.2.4",
|
|
48
48
|
"quill": "^2.0.0",
|
|
49
49
|
"swiper": "^10.0.0 || ^11.0.0",
|