feat: expand local speech models

This commit is contained in:
lofyer
2026-08-11 01:34:28 +08:00
parent f16ef993bc
commit c8050f4a9a
10 changed files with 855 additions and 117 deletions
@@ -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',
+4 -1
View File
@@ -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(),