chore: speech to text
This commit is contained in:
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,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user