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
@@ -29,6 +29,9 @@ type SherpaRecognizerConfig = {
language: string
useInverseTextNormalization: number
}
paraformer?: {
model: string
}
whisper?: {
encoder: string
decoder: string
@@ -124,6 +127,17 @@ export function createSherpaRecognizerConfig(
}
}
}
if (model.family === 'paraformer') {
return {
...base,
modelConfig: {
...base.modelConfig,
paraformer: {
model: requiredFile(model, 'model')
}
}
}
}
return {
...base,
modelConfig: {