g-ai-robot3 0.1.52 → 0.1.54
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/dist/common/WsConnecter.d.ts +25 -0
- package/dist/common/swWsConnecter.d.ts +17 -0
- package/dist/components/digitalHuman.vue.d.ts +59 -0
- package/dist/components/suspensionMsgBubble.vue.d.ts +26 -0
- package/dist/g-ai-robot3.es.js +94032 -0
- package/dist/g-ai-robot3.umd.js +612 -0
- package/dist/hook/useOrderPlayAudio.d.ts +4 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.vue.d.ts +128 -0
- package/dist/type.d.ts +57 -0
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/log.data.d.ts +4 -0
- package/dist/utils/markdownRenderer.d.ts +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights
|
|
3
|
+
* Reserved. MIT License (https://opensource.org/licenses/MIT)
|
|
4
|
+
*/
|
|
5
|
+
type Mode = '2pass' | 'offline';
|
|
6
|
+
export default class WebSocketConnectMethod {
|
|
7
|
+
private speechSokt;
|
|
8
|
+
private msgHandle;
|
|
9
|
+
private stateHandle;
|
|
10
|
+
private url;
|
|
11
|
+
private mode;
|
|
12
|
+
constructor(config: {
|
|
13
|
+
msgHandle: (jsonMsg: any) => void;
|
|
14
|
+
stateHandle: (connState: (0 | 1 | 2)) => void;
|
|
15
|
+
url?: string;
|
|
16
|
+
});
|
|
17
|
+
wsStart(modeStr?: Mode): 0 | 1;
|
|
18
|
+
wsStop(): void;
|
|
19
|
+
wsSend(data: any): void;
|
|
20
|
+
onOpen(): void;
|
|
21
|
+
onClose(e: any): void;
|
|
22
|
+
onMessage(e: any): void;
|
|
23
|
+
onError(e: any): void;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default class WebSocketConnectMethod {
|
|
2
|
+
private speechSokt;
|
|
3
|
+
private url;
|
|
4
|
+
private desti_audio_name;
|
|
5
|
+
private speaker_data;
|
|
6
|
+
private onMessageCallback;
|
|
7
|
+
constructor(url?: string);
|
|
8
|
+
setOnMessageCallback(callback: (response: any) => void): void;
|
|
9
|
+
wsStart(): 0 | 1;
|
|
10
|
+
setData(desti_audio_name: string, speaker_data: string): void;
|
|
11
|
+
wsSendData(): void;
|
|
12
|
+
wsStop(): void;
|
|
13
|
+
private onOpen;
|
|
14
|
+
private onClose;
|
|
15
|
+
private onMessage;
|
|
16
|
+
private onError;
|
|
17
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*@description:video数字人
|
|
3
|
+
*@author:yuchen
|
|
4
|
+
*@createdTime:2025/3/7 11:07
|
|
5
|
+
*/
|
|
6
|
+
import { DigitalHumanProps } from "../type.ts";
|
|
7
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DigitalHumanProps>, {
|
|
8
|
+
videoStyle: () => {
|
|
9
|
+
width: string;
|
|
10
|
+
visibility: string;
|
|
11
|
+
};
|
|
12
|
+
offer: string;
|
|
13
|
+
human: string;
|
|
14
|
+
stop_audio: string;
|
|
15
|
+
humanaudio: string;
|
|
16
|
+
canvasWidth: number;
|
|
17
|
+
canvasHeight: number;
|
|
18
|
+
}>>, {
|
|
19
|
+
main: () => void;
|
|
20
|
+
humanaudio: (data: any) => void;
|
|
21
|
+
digitalHumanStop: () => void;
|
|
22
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DigitalHumanProps>, {
|
|
23
|
+
videoStyle: () => {
|
|
24
|
+
width: string;
|
|
25
|
+
visibility: string;
|
|
26
|
+
};
|
|
27
|
+
offer: string;
|
|
28
|
+
human: string;
|
|
29
|
+
stop_audio: string;
|
|
30
|
+
humanaudio: string;
|
|
31
|
+
canvasWidth: number;
|
|
32
|
+
canvasHeight: number;
|
|
33
|
+
}>>> & Readonly<{}>, {
|
|
34
|
+
videoStyle: import("vue").CSSProperties;
|
|
35
|
+
offer: string;
|
|
36
|
+
human: string;
|
|
37
|
+
humanaudio: string;
|
|
38
|
+
stop_audio: string;
|
|
39
|
+
canvasWidth: number;
|
|
40
|
+
canvasHeight: number;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
45
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
46
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
47
|
+
} : {
|
|
48
|
+
type: import('vue').PropType<T[K]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
type __VLS_WithDefaults<P, D> = {
|
|
53
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
54
|
+
default: D[K];
|
|
55
|
+
}> : P[K];
|
|
56
|
+
};
|
|
57
|
+
type __VLS_Prettify<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SuspensionMsgBubbleProps } from "../type.ts";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SuspensionMsgBubbleProps>, {
|
|
3
|
+
showMsgNumber: number;
|
|
4
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SuspensionMsgBubbleProps>, {
|
|
5
|
+
showMsgNumber: number;
|
|
6
|
+
}>>> & Readonly<{}>, {
|
|
7
|
+
showMsgNumber: number;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type __VLS_WithDefaults<P, D> = {
|
|
20
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
21
|
+
default: D[K];
|
|
22
|
+
}> : P[K];
|
|
23
|
+
};
|
|
24
|
+
type __VLS_Prettify<T> = {
|
|
25
|
+
[K in keyof T]: T[K];
|
|
26
|
+
} & {};
|