feat(asr): integrate Automatic Speech Recognition (ASR) support
- Added ASR configuration options to the knowledge base and model settings. - Implemented ASR model selection and transcription capabilities in the knowledge processing pipeline. - Enhanced file upload support to include audio formats for ASR processing. - Updated localization files to include ASR-related labels and descriptions. - Refactored model handling to accommodate ASR as a new model type.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
-- Migration: 000025_add_asr_config (rollback)
|
||||
-- Description: Remove asr_config column from knowledge_bases.
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000025] Removing asr_config column from knowledge_bases'; END $$;
|
||||
|
||||
ALTER TABLE knowledge_bases DROP COLUMN IF EXISTS asr_config;
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000025] asr_config column removed successfully'; END $$;
|
||||
@@ -0,0 +1,10 @@
|
||||
-- Migration: 000025_add_asr_config
|
||||
-- Description: Add asr_config column to knowledge_bases for ASR (Automatic Speech Recognition) configuration.
|
||||
-- ASR config stores the model ID and language settings for audio transcription.
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000025] Adding asr_config column to knowledge_bases'; END $$;
|
||||
|
||||
ALTER TABLE knowledge_bases ADD COLUMN IF NOT EXISTS asr_config JSONB;
|
||||
|
||||
COMMENT ON COLUMN knowledge_bases.asr_config IS 'ASR (Automatic Speech Recognition) configuration: {"enabled": bool, "model_id": string, "language": string}';
|
||||
|
||||
DO $$ BEGIN RAISE NOTICE '[Migration 000025] asr_config column added successfully'; END $$;
|
||||
Reference in New Issue
Block a user