feat: expand local speech models
This commit is contained in:
@@ -12,6 +12,9 @@ const downloadableEntry = {
|
||||
languages: ['中文'],
|
||||
family: 'whisper' as const,
|
||||
quantization: 'int8' as const,
|
||||
quality: 'balanced' as const,
|
||||
speed: 'balanced' as const,
|
||||
recommended: false,
|
||||
repositoryUrl: 'https://huggingface.co/example/test-speech-model',
|
||||
license: {
|
||||
name: 'MIT License',
|
||||
|
||||
@@ -59,8 +59,11 @@ export const speechModelCatalogEntrySchema = z
|
||||
displayName: z.string().trim().min(1).max(120),
|
||||
description: z.string().trim().min(1).max(500),
|
||||
languages: z.array(z.string().trim().min(1).max(32)).min(1).max(32),
|
||||
family: z.enum(['sensevoice', 'whisper']),
|
||||
family: z.enum(['sensevoice', 'whisper', 'paraformer']),
|
||||
quantization: z.enum(['int8', 'fp16', 'fp32']),
|
||||
quality: z.enum(['basic', 'balanced', 'high']),
|
||||
speed: z.enum(['fast', 'balanced', 'slow']),
|
||||
recommended: z.boolean(),
|
||||
repositoryUrl: z.url().max(2_048),
|
||||
license: speechModelLicenseSchema,
|
||||
manualOnly: z.boolean(),
|
||||
|
||||
Reference in New Issue
Block a user