@vunk/plus 1.7.2 → 1.7.4
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/components/agent-chat-provider/index.mjs +1 -1
- package/components/avatar/index.mjs +1 -1
- package/components/broadcasting-markdown/index.mjs +103 -240
- package/components/broadcasting-markdown/src/ctx.d.ts +1 -4
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +49 -88
- package/components/broadcasting-markdown/src/index.vue.d.ts +44 -103
- package/components/broadcasting-markdown/src/types.d.ts +1 -1
- package/components/broadcasting-markdown/src/use.d.ts +6 -8
- package/components/bubble-templates/index.css +4 -0
- package/components/bubble-templates/index.mjs +2 -2
- package/components/chat-independent/index.mjs +1 -1
- package/components/index2.mjs +7 -7
- package/components/index3.mjs +1 -1
- package/components/lottie-animation/index.mjs +1 -1
- package/components/metahuman-broadcasting/index.mjs +9 -6
- package/components/metahuman-broadcasting/src/index.vue.d.ts +62 -114
- package/components/monaco-editor/index.mjs +1 -1
- package/components/monaco-environment/index.mjs +1 -1
- package/components/pixi-frame/src/apng.vue.d.ts +3 -3
- package/components/pixi-frame/src/bitmap.vue.d.ts +5 -5
- package/components/pixi-frame/src/core.vue.d.ts +5 -5
- package/components/pixi-frame/src/index.vue.d.ts +12 -12
- package/components/pixi-frame/src/video.vue.d.ts +3 -3
- package/components/recorder-button/index.mjs +1 -1
- package/components/routes-menu-content/index.mjs +3 -3
- package/components/sender/index.mjs +2 -2
- package/components/speech-button/index.mjs +3 -3
- package/components/table-columns/index.mjs +1 -1
- package/components/tables-v1/index.mjs +7 -6
- package/components/tables-v1/src/index.vue.d.ts +129 -0
- package/components/tables-v1-checkbox/index.mjs +1 -1
- package/components/tables-v1-checkbox/src/index.vue.d.ts +129 -0
- package/components/text/index.mjs +1 -1
- package/components/typing-markdown/index.mjs +5 -8
- package/components/vditor/index.mjs +3 -3
- package/components/vditor/src/ctx.d.ts +1 -1
- package/components/vditor/src/index.vue.d.ts +1 -1
- package/icons/end/index.mjs +1 -1
- package/icons/keyboard/index.mjs +1 -1
- package/icons/start/index.mjs +1 -1
- package/icons/voice/index.mjs +1 -1
- package/index.css +5 -0
- package/package.json +4 -1
- package/shared/StreamingInferenceService.mjs +4 -1
- package/shared/audioToFrames/index.mjs +2 -5
- package/shared/audioToFrames/src/audio/StreamingFeatureExtractorService.d.ts +20 -4
- package/shared/audioToFrames/src/audio/index.d.ts +0 -2
- package/shared/audioToFrames/src/audio/index.mjs +84 -157
- package/shared/audioToFrames/src/core/constants.d.ts +0 -22
- package/shared/audioToFrames/src/core/index.mjs +16 -2643
- package/shared/audioToFrames/src/core/utils.d.ts +1 -68
- package/shared/audioToFrames/src/inference/StreamingInferenceService.d.ts +43 -0
- package/shared/audioToFrames/src/media/index.d.ts +0 -5
- package/shared/audioToFrames/src/media/index.mjs +180 -610
- package/shared/constants.mjs +1 -12
- package/shared/PredictiveFrameLoader.mjs +0 -367
- package/shared/audioToFrames/src/audio/AudioProcessor.d.ts +0 -25
- package/shared/audioToFrames/src/audio/FeatureExtractorService.d.ts +0 -31
- package/shared/audioToFrames/src/inference/types.d.ts +0 -102
- package/shared/audioToFrames/src/media/ImageBitmapPool.d.ts +0 -63
- package/shared/audioToFrames/src/media/ImageProcessor.d.ts +0 -47
- package/shared/audioToFrames/src/media/PlaybackService.d.ts +0 -56
- package/shared/audioToFrames/src/media/WebGLPlaybackService.d.ts +0 -74
- package/shared/audioToFrames/src/media/WebGLRenderer.d.ts +0 -66
- package/shared/utils.mjs +0 -123
|
@@ -1,97 +1,58 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
1
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 语音资源
|
|
6
|
+
*/
|
|
7
|
+
source: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
5
10
|
};
|
|
6
|
-
|
|
7
|
-
type:
|
|
8
|
-
|
|
11
|
+
status: {
|
|
12
|
+
type: PropType<TickerStatus>;
|
|
13
|
+
default: TickerStatus;
|
|
9
14
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
}>, {
|
|
16
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
/**
|
|
18
|
+
* 语音资源
|
|
19
|
+
*/
|
|
20
|
+
source: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
status: {
|
|
25
|
+
type: PropType<TickerStatus>;
|
|
26
|
+
default: TickerStatus;
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{
|
|
29
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
}> & {}>;
|
|
33
|
+
emit: ((event: "update:status", ...args: any[]) => void) & ((event: "error", ...args: any[]) => void) & ((event: "load", ...args: any[]) => void);
|
|
34
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
+
'update:status': null;
|
|
36
|
+
load: null;
|
|
37
|
+
error: null;
|
|
17
38
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
required: true;
|
|
39
|
+
/**
|
|
40
|
+
* 语音资源
|
|
41
|
+
*/
|
|
42
|
+
source: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
25
45
|
};
|
|
26
|
-
|
|
27
|
-
type:
|
|
28
|
-
default:
|
|
46
|
+
status: {
|
|
47
|
+
type: PropType<TickerStatus>;
|
|
48
|
+
default: TickerStatus;
|
|
29
49
|
};
|
|
30
50
|
}>> & Readonly<{
|
|
31
|
-
|
|
32
|
-
|
|
51
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
33
54
|
}>, {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, {}, {
|
|
37
|
-
SpeechError: import("vue").DefineComponent<{}, {
|
|
38
|
-
readonly CloseBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
39
|
-
readonly ElIcon: {
|
|
40
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
-
readonly size: {
|
|
42
|
-
readonly type: import("vue").PropType<string | number>;
|
|
43
|
-
readonly required: false;
|
|
44
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
45
|
-
__epPropKey: true;
|
|
46
|
-
};
|
|
47
|
-
readonly color: {
|
|
48
|
-
readonly type: import("vue").PropType<string>;
|
|
49
|
-
readonly required: false;
|
|
50
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
51
|
-
__epPropKey: true;
|
|
52
|
-
};
|
|
53
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
54
|
-
P: {};
|
|
55
|
-
B: {};
|
|
56
|
-
D: {};
|
|
57
|
-
C: {};
|
|
58
|
-
M: {};
|
|
59
|
-
Defaults: {};
|
|
60
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
61
|
-
readonly size: {
|
|
62
|
-
readonly type: import("vue").PropType<string | number>;
|
|
63
|
-
readonly required: false;
|
|
64
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
65
|
-
__epPropKey: true;
|
|
66
|
-
};
|
|
67
|
-
readonly color: {
|
|
68
|
-
readonly type: import("vue").PropType<string>;
|
|
69
|
-
readonly required: false;
|
|
70
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
71
|
-
__epPropKey: true;
|
|
72
|
-
};
|
|
73
|
-
}>>, {}, {}, {}, {}, {}>;
|
|
74
|
-
__isFragment?: never;
|
|
75
|
-
__isTeleport?: never;
|
|
76
|
-
__isSuspense?: never;
|
|
77
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
78
|
-
readonly size: {
|
|
79
|
-
readonly type: import("vue").PropType<string | number>;
|
|
80
|
-
readonly required: false;
|
|
81
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
82
|
-
__epPropKey: true;
|
|
83
|
-
};
|
|
84
|
-
readonly color: {
|
|
85
|
-
readonly type: import("vue").PropType<string>;
|
|
86
|
-
readonly required: false;
|
|
87
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
|
-
__epPropKey: true;
|
|
89
|
-
};
|
|
90
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
91
|
-
$slots: {
|
|
92
|
-
default?(_: {}): any;
|
|
93
|
-
};
|
|
94
|
-
}) & import("vue").Plugin;
|
|
95
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
96
|
-
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
55
|
+
source: string;
|
|
56
|
+
status: TickerStatus;
|
|
57
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
97
58
|
export default _default;
|
|
@@ -76,23 +76,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
76
76
|
theData: import("vue").ComputedRef<Paragraph[]>;
|
|
77
77
|
ParagraphStatus: typeof ParagraphStatus;
|
|
78
78
|
fulfilledTextValue: import("vue").ComputedRef<string>;
|
|
79
|
-
isPrevParagraphFulfilled: (currentIndex: number) => boolean;
|
|
80
|
-
isParagraphEnabled: (currentIndex: number) => boolean;
|
|
81
79
|
processingParagraph: (paragraph: Paragraph) => Promise<void> | undefined;
|
|
82
|
-
isInterrupted: import("vue").Ref<boolean, boolean>;
|
|
83
80
|
setData: (obj: any, e: import("@vunk/core").SetDataEvent) => void;
|
|
84
81
|
Broadcast: typeof TickerStatus;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
isParagraphEnabled: (currentIndex: number) => boolean;
|
|
83
|
+
TickerStatus: typeof TickerStatus;
|
|
84
|
+
handleParagraphStatus: (para: Paragraph, v: TickerStatus) => void;
|
|
88
85
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
89
86
|
setData: (e: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
|
|
90
|
-
interrupt: null;
|
|
91
|
-
'update:broadcasting': (_: boolean) => boolean;
|
|
92
|
-
'update:completed': (_: boolean) => boolean;
|
|
93
|
-
'update:error': (_: boolean) => boolean;
|
|
94
87
|
'update:status': (_: TickerStatus) => boolean;
|
|
95
88
|
paragraphLoad: (_: import("./types").ParagraphLoadEvent) => boolean;
|
|
89
|
+
complete: () => boolean;
|
|
96
90
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
97
91
|
render: {
|
|
98
92
|
type: import("vue").PropType<(text: string) => string>;
|
|
@@ -165,13 +159,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
165
159
|
default: number;
|
|
166
160
|
};
|
|
167
161
|
}>> & Readonly<{
|
|
168
|
-
onSetData?: ((e: import("@vunk/core").SetDataEvent) => any) | undefined;
|
|
169
162
|
"onUpdate:status"?: ((_: TickerStatus) => any) | undefined;
|
|
170
|
-
|
|
171
|
-
"onUpdate:broadcasting"?: ((_: boolean) => any) | undefined;
|
|
172
|
-
"onUpdate:completed"?: ((_: boolean) => any) | undefined;
|
|
173
|
-
"onUpdate:error"?: ((_: boolean) => any) | undefined;
|
|
163
|
+
onSetData?: ((e: import("@vunk/core").SetDataEvent) => any) | undefined;
|
|
174
164
|
onParagraphLoad?: ((_: import("./types").ParagraphLoadEvent) => any) | undefined;
|
|
165
|
+
onComplete?: (() => any) | undefined;
|
|
175
166
|
}>, {
|
|
176
167
|
data: Paragraph[];
|
|
177
168
|
source: string;
|
|
@@ -333,100 +324,50 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
333
324
|
loading: boolean;
|
|
334
325
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
335
326
|
HowlerSpeechView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
336
|
-
|
|
337
|
-
type:
|
|
338
|
-
default:
|
|
339
|
-
};
|
|
340
|
-
deferred: {
|
|
341
|
-
type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
|
|
342
|
-
required: true;
|
|
327
|
+
source: {
|
|
328
|
+
type: StringConstructor;
|
|
329
|
+
default: string;
|
|
343
330
|
};
|
|
344
|
-
|
|
345
|
-
type: import("vue").PropType<
|
|
346
|
-
default:
|
|
331
|
+
status: {
|
|
332
|
+
type: import("vue").PropType<TickerStatus>;
|
|
333
|
+
default: TickerStatus;
|
|
347
334
|
};
|
|
348
|
-
}>,
|
|
349
|
-
|
|
350
|
-
|
|
335
|
+
}>, {
|
|
336
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
337
|
+
source: {
|
|
338
|
+
type: StringConstructor;
|
|
339
|
+
default: string;
|
|
340
|
+
};
|
|
341
|
+
status: {
|
|
342
|
+
type: import("vue").PropType<TickerStatus>;
|
|
343
|
+
default: TickerStatus;
|
|
344
|
+
};
|
|
345
|
+
}>> & Readonly<{
|
|
346
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
347
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
348
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
349
|
+
}> & {}>;
|
|
350
|
+
emit: ((event: "update:status", ...args: any[]) => void) & ((event: "error", ...args: any[]) => void) & ((event: "load", ...args: any[]) => void);
|
|
351
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
352
|
+
'update:status': null;
|
|
353
|
+
load: null;
|
|
354
|
+
error: null;
|
|
351
355
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
352
|
-
|
|
353
|
-
type:
|
|
354
|
-
default:
|
|
355
|
-
};
|
|
356
|
-
deferred: {
|
|
357
|
-
type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
|
|
358
|
-
required: true;
|
|
356
|
+
source: {
|
|
357
|
+
type: StringConstructor;
|
|
358
|
+
default: string;
|
|
359
359
|
};
|
|
360
|
-
|
|
361
|
-
type: import("vue").PropType<
|
|
362
|
-
default:
|
|
360
|
+
status: {
|
|
361
|
+
type: import("vue").PropType<TickerStatus>;
|
|
362
|
+
default: TickerStatus;
|
|
363
363
|
};
|
|
364
364
|
}>> & Readonly<{
|
|
365
|
-
|
|
366
|
-
|
|
365
|
+
"onUpdate:status"?: ((...args: any[]) => any) | undefined;
|
|
366
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
367
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
367
368
|
}>, {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}, {}, {
|
|
371
|
-
SpeechError: import("vue").DefineComponent<{}, {
|
|
372
|
-
readonly CloseBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
373
|
-
readonly ElIcon: {
|
|
374
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
375
|
-
readonly size: {
|
|
376
|
-
readonly type: import("vue").PropType<string | number>;
|
|
377
|
-
readonly required: false;
|
|
378
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
379
|
-
__epPropKey: true;
|
|
380
|
-
};
|
|
381
|
-
readonly color: {
|
|
382
|
-
readonly type: import("vue").PropType<string>;
|
|
383
|
-
readonly required: false;
|
|
384
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
385
|
-
__epPropKey: true;
|
|
386
|
-
};
|
|
387
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
388
|
-
P: {};
|
|
389
|
-
B: {};
|
|
390
|
-
D: {};
|
|
391
|
-
C: {};
|
|
392
|
-
M: {};
|
|
393
|
-
Defaults: {};
|
|
394
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
395
|
-
readonly size: {
|
|
396
|
-
readonly type: import("vue").PropType<string | number>;
|
|
397
|
-
readonly required: false;
|
|
398
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
399
|
-
__epPropKey: true;
|
|
400
|
-
};
|
|
401
|
-
readonly color: {
|
|
402
|
-
readonly type: import("vue").PropType<string>;
|
|
403
|
-
readonly required: false;
|
|
404
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
405
|
-
__epPropKey: true;
|
|
406
|
-
};
|
|
407
|
-
}>>, {}, {}, {}, {}, {}>;
|
|
408
|
-
__isFragment?: never;
|
|
409
|
-
__isTeleport?: never;
|
|
410
|
-
__isSuspense?: never;
|
|
411
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
412
|
-
readonly size: {
|
|
413
|
-
readonly type: import("vue").PropType<string | number>;
|
|
414
|
-
readonly required: false;
|
|
415
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
416
|
-
__epPropKey: true;
|
|
417
|
-
};
|
|
418
|
-
readonly color: {
|
|
419
|
-
readonly type: import("vue").PropType<string>;
|
|
420
|
-
readonly required: false;
|
|
421
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
422
|
-
__epPropKey: true;
|
|
423
|
-
};
|
|
424
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
425
|
-
$slots: {
|
|
426
|
-
default?(_: {}): any;
|
|
427
|
-
};
|
|
428
|
-
}) & import("vue").Plugin;
|
|
429
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
430
|
-
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
369
|
+
source: string;
|
|
370
|
+
status: TickerStatus;
|
|
371
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
431
372
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
432
373
|
export default _default;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Deferred } from '@vunk/shared/promise';
|
|
3
|
-
import type { Paragraph } from './types';
|
|
1
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
4
2
|
import { Howl } from 'howler';
|
|
5
3
|
/**
|
|
6
4
|
* @description 使用 Howler.js 播放段落
|
|
7
5
|
*/
|
|
8
6
|
export declare function useHowlerParagraph(props: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, emit: (e: '
|
|
12
|
-
url: import("vue").ComputedRef<string
|
|
13
|
-
broadcast: import("vue").
|
|
7
|
+
source: string;
|
|
8
|
+
status: TickerStatus;
|
|
9
|
+
}, emit: ((e: 'update:status', status: TickerStatus) => void) & ((e: 'error', ev: any) => void)): {
|
|
10
|
+
url: import("vue").ComputedRef<string>;
|
|
11
|
+
broadcast: import("vue").WritableComputedRef<TickerStatus, TickerStatus>;
|
|
14
12
|
sound: import("vue").ShallowRef<Howl | null, Howl | null>;
|
|
15
13
|
};
|
|
16
14
|
/**
|
|
@@ -11426,7 +11426,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11426
11426
|
markdownProps: {
|
|
11427
11427
|
type: Object,
|
|
11428
11428
|
default: () => ({
|
|
11429
|
-
containers: ["thinking"]
|
|
11429
|
+
containers: ["thinking", "echarts"]
|
|
11430
11430
|
})
|
|
11431
11431
|
}
|
|
11432
11432
|
},
|
|
@@ -11453,7 +11453,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11453
11453
|
/* STABLE */
|
|
11454
11454
|
});
|
|
11455
11455
|
}
|
|
11456
|
-
var VkBubbleTemplates = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
11456
|
+
var VkBubbleTemplates = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/bubble-templates/src/index.vue"]]);
|
|
11457
11457
|
|
|
11458
11458
|
var types = /*#__PURE__*/Object.freeze({
|
|
11459
11459
|
__proto__: null
|
|
@@ -238,7 +238,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
238
238
|
])
|
|
239
239
|
]);
|
|
240
240
|
}
|
|
241
|
-
var VkChatIndependent = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
241
|
+
var VkChatIndependent = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/chat-independent/src/index.vue"]]);
|
|
242
242
|
|
|
243
243
|
var types = /*#__PURE__*/Object.freeze({
|
|
244
244
|
__proto__: null
|
package/components/index2.mjs
CHANGED
|
@@ -25760,7 +25760,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25760
25760
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25761
25761
|
return renderSlot(_ctx.$slots, "default");
|
|
25762
25762
|
}
|
|
25763
|
-
var ApngComp = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__file", "
|
|
25763
|
+
var ApngComp = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/pixi-frame/src/apng.vue"]]);
|
|
25764
25764
|
|
|
25765
25765
|
var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
25766
25766
|
__name: "bitmap",
|
|
@@ -25907,7 +25907,7 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
25907
25907
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25908
25908
|
return renderSlot(_ctx.$slots, "default");
|
|
25909
25909
|
}
|
|
25910
|
-
var Bitmap = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__file", "
|
|
25910
|
+
var Bitmap = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/pixi-frame/src/bitmap.vue"]]);
|
|
25911
25911
|
|
|
25912
25912
|
var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
25913
25913
|
__name: "core",
|
|
@@ -26085,7 +26085,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26085
26085
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26086
26086
|
return renderSlot(_ctx.$slots, "default");
|
|
26087
26087
|
}
|
|
26088
|
-
var core = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__file", "
|
|
26088
|
+
var core = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/pixi-frame/src/core.vue"]]);
|
|
26089
26089
|
|
|
26090
26090
|
var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
26091
26091
|
__name: "provider",
|
|
@@ -26101,7 +26101,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
26101
26101
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26102
26102
|
return renderSlot(_ctx.$slots, "default");
|
|
26103
26103
|
}
|
|
26104
|
-
var ProviderComp = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__file", "
|
|
26104
|
+
var ProviderComp = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/pixi-frame/src/provider.vue"]]);
|
|
26105
26105
|
|
|
26106
26106
|
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
26107
26107
|
__name: "video",
|
|
@@ -26256,7 +26256,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
26256
26256
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26257
26257
|
return renderSlot(_ctx.$slots, "default");
|
|
26258
26258
|
}
|
|
26259
|
-
var VideoComp = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "
|
|
26259
|
+
var VideoComp = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/pixi-frame/src/video.vue"]]);
|
|
26260
26260
|
|
|
26261
26261
|
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
26262
26262
|
__name: "view",
|
|
@@ -26298,7 +26298,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26298
26298
|
/* NEED_PATCH */
|
|
26299
26299
|
);
|
|
26300
26300
|
}
|
|
26301
|
-
var ViewComp = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "
|
|
26301
|
+
var ViewComp = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/pixi-frame/src/view.vue"]]);
|
|
26302
26302
|
|
|
26303
26303
|
var _sfc_main = defineComponent({
|
|
26304
26304
|
name: "VkPixiFrame",
|
|
@@ -26366,7 +26366,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26366
26366
|
/* STABLE */
|
|
26367
26367
|
});
|
|
26368
26368
|
}
|
|
26369
|
-
var VkPixiFrame = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
26369
|
+
var VkPixiFrame = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/pixi-frame/src/index.vue"]]);
|
|
26370
26370
|
|
|
26371
26371
|
var types = /*#__PURE__*/Object.freeze({
|
|
26372
26372
|
__proto__: null
|
package/components/index3.mjs
CHANGED
|
@@ -79515,7 +79515,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
79515
79515
|
/* FORWARDED */
|
|
79516
79516
|
});
|
|
79517
79517
|
}
|
|
79518
|
-
var VkBubbleList = /* @__PURE__ */ _export_sfc$2(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
79518
|
+
var VkBubbleList = /* @__PURE__ */ _export_sfc$2(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/bubble-list/src/index.vue"]]);
|
|
79519
79519
|
|
|
79520
79520
|
var types = /*#__PURE__*/Object.freeze({
|
|
79521
79521
|
__proto__: null
|
|
@@ -58,7 +58,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58
58
|
/* STABLE_FRAGMENT */
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
var VkLottieAnimation = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
61
|
+
var VkLottieAnimation = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/lottie-animation/src/index.vue"]]);
|
|
62
62
|
|
|
63
63
|
var types = /*#__PURE__*/Object.freeze({
|
|
64
64
|
__proto__: null
|
|
@@ -3,7 +3,7 @@ import { VkBroadcastingMarkdown } from '@vunk/plus/components/broadcasting-markd
|
|
|
3
3
|
import { VkPixiFrameBitmap, VkPixiFrameCore } from '@vunk/plus/components/pixi-frame';
|
|
4
4
|
import { StreamingInferenceService, getStremingStartData, processStreaming, blobToAudioBuffer } from '@vunk/plus/shared/audioToFrames';
|
|
5
5
|
export { workerConfig } from '@vunk/plus/shared/audioToFrames';
|
|
6
|
-
import { useModelComputed } from '@vunk/core/composables';
|
|
6
|
+
import { useDeferred, useModelComputed } from '@vunk/core/composables';
|
|
7
7
|
import { setData } from '@vunk/core/shared';
|
|
8
8
|
import { TickerStatus } from '@vunk/shared/enum';
|
|
9
9
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
@@ -80,6 +80,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
const streamingInferenceService = new StreamingInferenceService(props.modelUrl);
|
|
81
81
|
const frameUrls = ref([]);
|
|
82
82
|
const silentFrameUrls = shallowReactive([]);
|
|
83
|
+
const startedDef = useDeferred();
|
|
83
84
|
const frameStatus = useModelComputed({
|
|
84
85
|
default: TickerStatus.pending,
|
|
85
86
|
key: "status"
|
|
@@ -106,9 +107,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
});
|
|
110
|
+
startedDef.resolve();
|
|
109
111
|
});
|
|
110
112
|
async function requestProcessStreaming(buffer) {
|
|
111
113
|
await streamingInferenceService.when();
|
|
114
|
+
await startedDef.promise;
|
|
112
115
|
try {
|
|
113
116
|
await processStreaming(buffer, {
|
|
114
117
|
onChunkComplete(result) {
|
|
@@ -130,8 +133,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
133
|
console.error("Error processing paragraph:", error);
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
|
-
function allParagraphCompleted(
|
|
134
|
-
if (
|
|
136
|
+
function allParagraphCompleted() {
|
|
137
|
+
if (paragraphData.value.length) {
|
|
135
138
|
frameStatus.value = TickerStatus.stop;
|
|
136
139
|
frameUrls.value.length = 0;
|
|
137
140
|
}
|
|
@@ -151,7 +154,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
154
|
}
|
|
152
155
|
ready.value = true;
|
|
153
156
|
}
|
|
154
|
-
const __returned__ = { props, emit, paragraphData, streamingInferenceService, frameUrls, silentFrameUrls, frameStatus, slientFrameStatus, requestProcessStreaming, processingParagraph, allParagraphCompleted, ready, loadAllSilentFrames, get VkBroadcastingMarkdown() {
|
|
157
|
+
const __returned__ = { props, emit, paragraphData, streamingInferenceService, frameUrls, silentFrameUrls, startedDef, frameStatus, slientFrameStatus, requestProcessStreaming, processingParagraph, allParagraphCompleted, ready, loadAllSilentFrames, get VkBroadcastingMarkdown() {
|
|
155
158
|
return VkBroadcastingMarkdown;
|
|
156
159
|
}, get VkPixiFrameBitmap() {
|
|
157
160
|
return VkPixiFrameBitmap;
|
|
@@ -179,7 +182,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
179
182
|
source: _ctx.source,
|
|
180
183
|
processing: $setup.processingParagraph,
|
|
181
184
|
onSetData: _cache[0] || (_cache[0] = ($event) => $setup.setData($setup.paragraphData, $event)),
|
|
182
|
-
|
|
185
|
+
onComplete: $setup.allParagraphCompleted
|
|
183
186
|
}), null, 16, ["status", "data", "text-to-speech", "source"]),
|
|
184
187
|
createVNode($setup["VkPixiFrameBitmap"], {
|
|
185
188
|
status: $setup.frameStatus,
|
|
@@ -201,7 +204,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
201
204
|
/* STABLE_FRAGMENT */
|
|
202
205
|
);
|
|
203
206
|
}
|
|
204
|
-
var VkMetahumanBroadcasting = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "
|
|
207
|
+
var VkMetahumanBroadcasting = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/metahuman-broadcasting/src/index.vue"]]);
|
|
205
208
|
|
|
206
209
|
var types = /*#__PURE__*/Object.freeze({
|
|
207
210
|
__proto__: null
|