@vunk/plus 1.7.3 → 1.7.5
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/broadcasting-markdown/index.mjs +101 -238
- 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 +7 -11412
- package/components/metahuman-broadcasting/index.mjs +8 -5
- package/components/metahuman-broadcasting/src/index.vue.d.ts +62 -114
- 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/typing-markdown/index.mjs +4 -7
- package/components/vditor/src/ctx.d.ts +1 -1
- package/components/vditor/src/index.vue.d.ts +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
|
@@ -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
|
/**
|