Merge pull request #3255 from LauraGPT/funasr-language-option

fix: allow configuring FunASR recognition language
This commit is contained in:
CGD
2026-06-30 14:57:31 +08:00
committed by GitHub
5 changed files with 108 additions and 1 deletions
@@ -0,0 +1,9 @@
-- Add language configuration for local FunASR ASR.
UPDATE `ai_model_provider`
SET `fields` = '[{"key":"model_dir","label":"模型目录","type":"string"},{"key":"output_dir","label":"输出目录","type":"string"},{"key":"language","label":"识别语言","type":"string","default":"auto"}]'
WHERE `id` = 'SYSTEM_ASR_FunASR';
UPDATE `ai_model_config`
SET `config_json` = JSON_SET(`config_json`, '$.language', 'auto')
WHERE `id` = 'ASR_FunASR'
AND JSON_EXTRACT(`config_json`, '$.language') IS NULL;
+7
View File
@@ -690,3 +690,10 @@ databaseChangeLog:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202606261131.sql
- changeSet:
id: 202606301405
author: LauraGPT
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202606301405.sql