chore: speech to text

This commit is contained in:
jialin
2024-11-22 10:00:34 +08:00
parent f24aef300b
commit c3473673da
47 changed files with 3364 additions and 904 deletions
File diff suppressed because it is too large Load Diff
@@ -66,6 +66,31 @@ export const TTSParamsConfig: ParamsSchema[] = [
}
];
export const RealtimeParamsConfig: ParamsSchema[] = [
{
type: 'Select',
name: 'language',
options: [
{ label: 'Auto', value: 'auto' },
{ label: 'English', value: 'en' },
{ label: '中文', value: 'zh' },
{ label: '日本語', value: 'ja' },
{ label: 'Français', value: 'fr' },
{ label: 'Deutsch', value: 'de' }
],
label: {
text: 'Language',
isLocalized: false
},
rules: [
{
required: true,
message: 'Language is required'
}
]
}
];
export const ImageParamsConfig: ParamsSchema[] = [
{
type: 'InputNumber',
+3 -1
View File
@@ -3,12 +3,14 @@ export interface ModelSelectionItem extends Global.BaseOption<string> {
instanceId: symbol;
type?: string;
}
export type MessageItemAction = 'upload' | 'delete' | 'copy';
export interface MessageItem {
content: string;
imgs?: { uid: string | number; dataUrl: string }[];
role: string;
title?: string;
title?: React.ReactNode;
uid: number;
}