feat(video): remove video upload support and update related terminology
- Removed support for video file uploads across the application, including updates to the knowledge base and document processing services. - Updated internationalization files to reflect the removal of video-related terminology, changing labels and descriptions to focus solely on audio processing. - Adjusted file type handling to exclude video formats, ensuring users receive accurate feedback regarding supported file types. - Enhanced error handling to provide clear messages when users attempt to upload unsupported video files. This update streamlines the application by focusing on audio processing capabilities and improving user experience through clearer messaging.
This commit is contained in:
@@ -103,7 +103,7 @@ export default {
|
||||
noValidFilesSelected: 'All selected files are unsupported',
|
||||
hiddenFilesFiltered: 'Filtered {count} hidden files',
|
||||
imagesFilteredNoVLM: 'Filtered {count} image files (VLM not enabled)',
|
||||
videosFilteredNoVLM: 'Filtered {count} video files (VLM not enabled)',
|
||||
videosFilteredNoVLM: 'Skipped {count} video file(s) (video upload is not supported)',
|
||||
audiosFilteredNoASR: 'Filtered {count} audio files (ASR not enabled)',
|
||||
invalidFilesFiltered: 'Filtered {count} unsupported files',
|
||||
unsupportedFileType: 'Unsupported file type',
|
||||
@@ -113,7 +113,7 @@ export default {
|
||||
andMoreFiles: '...and {count} more files',
|
||||
duplicateFilesSkipped: '{count} duplicate files skipped',
|
||||
uploadFile: 'Upload File',
|
||||
uploadFileDesc: 'Supports PDF, Word, TXT, images, videos, audio, etc.',
|
||||
uploadFileDesc: 'Supports PDF, Word, TXT, images, audio, etc.',
|
||||
importURL: 'Import from URL',
|
||||
addDocument: 'Add Document',
|
||||
importURLDesc: 'Import via URL link',
|
||||
@@ -1516,7 +1516,7 @@ export default {
|
||||
faq: 'FAQ Settings',
|
||||
graph: 'Knowledge Graph',
|
||||
multimodal: 'Image Processing',
|
||||
asr: 'Audio & Video',
|
||||
asr: 'Audio',
|
||||
datasource: 'Data Sources',
|
||||
share: 'Sharing'
|
||||
},
|
||||
@@ -1724,13 +1724,13 @@ export default {
|
||||
description: 'Configure image content understanding for parsing and retrieving non-text content like images',
|
||||
},
|
||||
asr: {
|
||||
title: 'Audio & Video Speech Recognition',
|
||||
title: 'Audio Speech Recognition',
|
||||
description:
|
||||
'Configure ASR (speech-to-text). When enabled, you can upload audio files or videos; audio is transcribed directly, and video audio tracks are extracted and transcribed (e.g. mp3, wav, m4a, flac, ogg, mp4, mov, …).',
|
||||
label: 'Enable audio & video speech recognition',
|
||||
desc: 'When enabled, audio or video can be uploaded to the knowledge base; speech is transcribed to text for parsing and retrieval.',
|
||||
'Configure ASR (speech-to-text). When enabled, you can upload audio files and transcribe them to text (e.g. mp3, wav, m4a, flac, ogg). Video upload is not supported.',
|
||||
label: 'Enable audio speech recognition',
|
||||
desc: 'When enabled, audio can be uploaded to the knowledge base; speech is transcribed to text for parsing and retrieval.',
|
||||
modelLabel: 'ASR Model',
|
||||
modelDescription: 'Speech-to-text model for audio and video soundtracks (e.g. OpenAI Whisper)',
|
||||
modelDescription: 'Speech-to-text model for audio (e.g. OpenAI Whisper)',
|
||||
modelPlaceholder: 'Select an ASR model',
|
||||
},
|
||||
advanced: {
|
||||
@@ -1744,7 +1744,7 @@ export default {
|
||||
},
|
||||
multimodal: {
|
||||
label: 'Multimodal Feature',
|
||||
description: 'Enable understanding of multimodal content such as images and videos',
|
||||
description: 'Enable understanding of multimodal content such as images',
|
||||
vllmLabel: 'VLLM Vision Model',
|
||||
vllmDescription: 'Vision-language model required for multimodal understanding',
|
||||
vllmPlaceholder: 'Select a VLLM model (required)',
|
||||
@@ -3180,7 +3180,7 @@ export default {
|
||||
fileTypeText: 'Plain Text',
|
||||
fileTypeJson: 'JSON Files',
|
||||
fileTypeImage: 'Images',
|
||||
fileTypeAudiovisual: 'Audio & Video',
|
||||
fileTypeAudiovisual: 'Audio',
|
||||
engines: {
|
||||
builtin: {
|
||||
name: 'Built-in',
|
||||
|
||||
@@ -102,7 +102,7 @@ export default {
|
||||
noValidFilesSelected: "선택한 파일 모두 지원되지 않음",
|
||||
hiddenFilesFiltered: "{count}개 숨김 파일 필터링됨",
|
||||
imagesFilteredNoVLM: "{count}개 이미지 파일 필터링됨(VLM 미활성화)",
|
||||
videosFilteredNoVLM: "{count}개 동영상 파일 필터링됨(VLM 미활성화)",
|
||||
videosFilteredNoVLM: "{count}개의 동영상 파일을 건너됨 (동영상 업로드 미지원)",
|
||||
audiosFilteredNoASR: "{count}개 오디오 파일 필터링됨(ASR 미활성화)",
|
||||
invalidFilesFiltered: "{count}개 지원되지 않는 파일 필터링됨",
|
||||
unsupportedFileType: "지원되지 않는 파일 형식",
|
||||
@@ -112,7 +112,7 @@ export default {
|
||||
andMoreFiles: "...외 {count}개 파일",
|
||||
duplicateFilesSkipped: "{count}개 중복 파일 무시됨",
|
||||
uploadFile: "파일 업로드",
|
||||
uploadFileDesc: "PDF, Word, TXT, 이미지, 동영상, 오디오 등 지원",
|
||||
uploadFileDesc: "PDF, Word, TXT, 이미지, 오디오 등 지원",
|
||||
importURL: "웹페이지 가져오기",
|
||||
addDocument: "문서 추가",
|
||||
importURLDesc: "URL 링크로 가져오기",
|
||||
@@ -2037,7 +2037,7 @@ export default {
|
||||
faq: "FAQ 설정",
|
||||
graph: "지식 그래프",
|
||||
multimodal: "이미지 처리",
|
||||
asr: "오디오·영상",
|
||||
asr: "오디오",
|
||||
share: "공유관리",
|
||||
storage: "스토리지 엔진",
|
||||
datasource: "데이터 소스",
|
||||
@@ -2256,13 +2256,13 @@ export default {
|
||||
description: "이미지 콘텐츠 이해 기능을 설정하여 이미지 등 비텍스트 콘텐츠의 파싱 및 검색을 지원합니다",
|
||||
},
|
||||
asr: {
|
||||
title: "오디오·영상 음성 인식",
|
||||
title: "오디오 음성 인식",
|
||||
description:
|
||||
"ASR(음성-텍스트)을 설정합니다. 활성화 시 오디오 또는 영상을 업로드할 수 있으며, 오디오는 그대로 전사하고 영상은 음성 트랙을 추출해 텍스트로 전사합니다(mp3, wav, m4a, flac, ogg, mp4, mov 등).",
|
||||
label: "오디오·영상 음성 인식 사용",
|
||||
desc: "활성화하면 오디오 또는 영상을 지식베이스에 업로드할 수 있으며, 음성이 텍스트로 전사되어 파싱·검색에 사용됩니다",
|
||||
"ASR(음성-텍스트)을 설정합니다. 활성화 시 오디오 파일을 업로드해 텍스트로 전사할 수 있습니다(mp3, wav, m4a, flac, ogg 등). 동영상 업로드는 지원하지 않습니다.",
|
||||
label: "오디오 음성 인식 사용",
|
||||
desc: "활성화하면 오디오를 지식베이스에 업로드할 수 있으며, 음성이 텍스트로 전사되어 파싱·검색에 사용됩니다",
|
||||
modelLabel: "ASR 모델",
|
||||
modelDescription: "오디오·영상의 음성을 텍스트로 전사하는 모델 (예: OpenAI Whisper)",
|
||||
modelDescription: "오디오의 음성을 텍스트로 전사하는 모델 (예: OpenAI Whisper)",
|
||||
modelPlaceholder: "ASR 모델을 선택해주세요",
|
||||
},
|
||||
advanced: {
|
||||
@@ -2277,7 +2277,7 @@ export default {
|
||||
},
|
||||
multimodal: {
|
||||
label: "멀티모달 기능",
|
||||
description: "이미지, 비디오 등 멀티모달 콘텐츠 이해 기능 활성화",
|
||||
description: "이미지 등 멀티모달 콘텐츠 이해 기능 활성화",
|
||||
vllmLabel: "VLLM 비전 모델",
|
||||
vllmDescription: "멀티모달 이해를 위한 비전 언어 모델 (필수)",
|
||||
vllmPlaceholder: "VLLM 모델을 선택해주세요 (필수)",
|
||||
@@ -3235,7 +3235,7 @@ export default {
|
||||
fileTypeText: '일반 텍스트',
|
||||
fileTypeJson: 'JSON 파일',
|
||||
fileTypeImage: '이미지',
|
||||
fileTypeAudiovisual: '오디오·영상',
|
||||
fileTypeAudiovisual: '오디오',
|
||||
engines: {
|
||||
builtin: {
|
||||
name: '내장',
|
||||
|
||||
@@ -85,7 +85,7 @@ export default {
|
||||
noValidFilesSelected: 'Все выбранные файлы не поддерживаются',
|
||||
hiddenFilesFiltered: 'Отфильтровано {count} скрытых файлов',
|
||||
imagesFilteredNoVLM: 'Отфильтровано {count} изображений (VLM не включен)',
|
||||
videosFilteredNoVLM: 'Отфильтровано {count} видеофайлов (VLM не включен)',
|
||||
videosFilteredNoVLM: 'Пропущено {count} видеофайлов (загрузка видео не поддерживается)',
|
||||
audiosFilteredNoASR: 'Отфильтровано {count} аудиофайлов (ASR не включен)',
|
||||
invalidFilesFiltered: 'Отфильтровано {count} неподдерживаемых файлов',
|
||||
unsupportedFileType: 'Неподдерживаемый тип файла',
|
||||
@@ -95,7 +95,7 @@ export default {
|
||||
andMoreFiles: '...и ещё {count} файлов',
|
||||
duplicateFilesSkipped: 'Пропущено {count} повторяющихся файлов',
|
||||
uploadFile: 'Загрузить файл',
|
||||
uploadFileDesc: 'Поддерживает PDF, Word, TXT, изображения, видео, аудио и т.д.',
|
||||
uploadFileDesc: 'Поддерживает PDF, Word, TXT, изображения, аудио и т.д.',
|
||||
importURL: 'Импорт из URL',
|
||||
importURLDesc: 'Импорт по ссылке URL',
|
||||
importURLTitle: 'Импорт из URL',
|
||||
@@ -1717,7 +1717,7 @@ export default {
|
||||
faq: 'FAQ настройки',
|
||||
graph: 'Граф знаний',
|
||||
multimodal: 'Обработка изображений',
|
||||
asr: 'Аудио и видео',
|
||||
asr: 'Аудио',
|
||||
storage: 'Storage Engine',
|
||||
datasource: 'Источники данных',
|
||||
share: 'Sharing'
|
||||
@@ -1916,13 +1916,13 @@ export default {
|
||||
description: 'Настройте понимание изображений для парсинга и поиска нетекстового контента',
|
||||
},
|
||||
asr: {
|
||||
title: 'Распознавание речи для аудио и видео',
|
||||
title: 'Распознавание речи для аудио',
|
||||
description:
|
||||
'Настройте ASR (речь → текст). При включении можно загружать аудио или видео: аудио транскрибируется целиком, из видео извлекается дорожка и транскрибируется (mp3, wav, m4a, flac, ogg, mp4, mov и др.).',
|
||||
label: 'Включить распознавание для аудио и видео',
|
||||
desc: 'При включении в базу можно загружать аудио или видео; речь транскрибируется в текст для парсинга и поиска',
|
||||
'Настройте ASR (речь → текст). При включении можно загружать аудиофайлы и транскрибировать их в текст (mp3, wav, m4a, flac, ogg и др.). Загрузка видео не поддерживается.',
|
||||
label: 'Включить распознавание речи для аудио',
|
||||
desc: 'При включении в базу можно загружать аудио; речь транскрибируется в текст для парсинга и поиска',
|
||||
modelLabel: 'Модель ASR',
|
||||
modelDescription: 'Модель распознавания речи для транскрибации аудио и звуковых дорожек видео (например, OpenAI Whisper)',
|
||||
modelDescription: 'Модель распознавания речи для транскрибации аудио (например, OpenAI Whisper)',
|
||||
modelPlaceholder: 'Выберите модель ASR',
|
||||
},
|
||||
advanced: {
|
||||
@@ -1936,7 +1936,7 @@ export default {
|
||||
},
|
||||
multimodal: {
|
||||
label: 'Мультимодальная функция',
|
||||
description: 'Включите понимание мультимедийного контента, такого как изображения и видео',
|
||||
description: 'Включите понимание мультимедийного контента, такого как изображения',
|
||||
vllmLabel: 'VLLM модель для зрения',
|
||||
vllmDescription: 'Визуально-языковая модель, необходимая для мультимодального понимания',
|
||||
vllmPlaceholder: 'Выберите VLLM модель (обязательно)',
|
||||
@@ -2850,7 +2850,7 @@ export default {
|
||||
fileTypeText: 'Текстовые файлы',
|
||||
fileTypeJson: 'Файлы JSON',
|
||||
fileTypeImage: 'Изображения',
|
||||
fileTypeAudiovisual: 'Аудио и видео',
|
||||
fileTypeAudiovisual: 'Аудио',
|
||||
engines: {
|
||||
builtin: {
|
||||
name: 'Встроенный',
|
||||
|
||||
@@ -102,7 +102,7 @@ export default {
|
||||
noValidFilesSelected: "选中的文件均不支持",
|
||||
hiddenFilesFiltered: "已过滤 {count} 个隐藏文件",
|
||||
imagesFilteredNoVLM: "已过滤 {count} 个图片文件(未启用VLM)",
|
||||
videosFilteredNoVLM: "已过滤 {count} 个视频文件(未启用VLM)",
|
||||
videosFilteredNoVLM: "已跳过 {count} 个视频文件(暂不支持视频上传)",
|
||||
audiosFilteredNoASR: "已过滤 {count} 个音频文件(未启用ASR)",
|
||||
invalidFilesFiltered: "已过滤 {count} 个不支持的文件",
|
||||
unsupportedFileType: "不支持的文件格式",
|
||||
@@ -112,7 +112,7 @@ export default {
|
||||
andMoreFiles: "...及其他 {count} 个文件",
|
||||
duplicateFilesSkipped: "已忽略 {count} 个重复文件",
|
||||
uploadFile: "上传文件",
|
||||
uploadFileDesc: "支持 PDF、Word、TXT、图片、视频、音频等",
|
||||
uploadFileDesc: "支持 PDF、Word、TXT、图片、音频等",
|
||||
importURL: "导入网页",
|
||||
addDocument: "添加文档",
|
||||
importURLDesc: "通过URL链接导入",
|
||||
@@ -2023,7 +2023,7 @@ export default {
|
||||
faq: "FAQ 设置",
|
||||
graph: "知识图谱",
|
||||
multimodal: "图像处理",
|
||||
asr: "音视频",
|
||||
asr: "音频处理",
|
||||
datasource: "数据源",
|
||||
share: "共享管理",
|
||||
},
|
||||
@@ -2228,12 +2228,12 @@ export default {
|
||||
description: "配置图像内容理解能力,启用后支持图片等非文本内容的解析和检索",
|
||||
},
|
||||
asr: {
|
||||
title: "音视频语音识别",
|
||||
description: "配置语音识别(ASR),启用后支持上传音频及视频文件;音频将整段转写,视频将提取音轨并转写为文本(常见格式:mp3、wav、m4a、flac、ogg、mp4、mov 等)",
|
||||
label: "启用音视频语音识别",
|
||||
desc: "启用后可上传音频或视频到知识库,系统自动转写音轨/语音为文本并参与解析与检索",
|
||||
title: "音频语音识别",
|
||||
description: "配置语音识别(ASR),启用后可上传音频文件并整段转写为文本(常见格式:mp3、wav、m4a、flac、ogg 等)。暂不支持视频上传。",
|
||||
label: "启用音频语音识别",
|
||||
desc: "启用后可上传音频到知识库,系统自动将语音转写为文本并参与解析与检索",
|
||||
modelLabel: "ASR 模型",
|
||||
modelDescription: "用于音频与视频中语音转文本的识别模型(如 OpenAI Whisper)",
|
||||
modelDescription: "用于音频中语音转文本的识别模型(如 OpenAI Whisper)",
|
||||
modelPlaceholder: "请选择 ASR 模型",
|
||||
},
|
||||
advanced: {
|
||||
@@ -2247,7 +2247,7 @@ export default {
|
||||
},
|
||||
multimodal: {
|
||||
label: "多模态功能",
|
||||
description: "启用图片、视频等多模态内容的理解能力",
|
||||
description: "启用图片等多模态内容的理解能力",
|
||||
vllmLabel: "VLLM 视觉模型",
|
||||
vllmDescription: "用于多模态理解的视觉语言模型(必选)",
|
||||
vllmPlaceholder: "请选择 VLLM 模型(必选)",
|
||||
@@ -3177,7 +3177,7 @@ export default {
|
||||
fileTypeText: "纯文本",
|
||||
fileTypeJson: "JSON 文件",
|
||||
fileTypeImage: "图片",
|
||||
fileTypeAudiovisual: "音视频",
|
||||
fileTypeAudiovisual: "音频",
|
||||
engines: {
|
||||
builtin: {
|
||||
name: "内置",
|
||||
|
||||
@@ -40,7 +40,7 @@ export function formatStringDate(date: any) {
|
||||
year + "-" + month + "-" + day + " " + hour + ":" + minute + ":" + second
|
||||
);
|
||||
}
|
||||
const DEFAULT_VALID_TYPES = new Set(["pdf", "txt", "md", "docx", "doc", "pptx", "ppt", "jpg", "jpeg", "png", "csv", "xlsx", "xls", "mp4", "mov", "avi", "mkv", "webm", "wmv", "flv", "mp3", "wav", "m4a", "flac", "ogg"]);
|
||||
const DEFAULT_VALID_TYPES = new Set(["pdf", "txt", "md", "docx", "doc", "pptx", "ppt", "jpg", "jpeg", "png", "csv", "xlsx", "xls", "mp3", "wav", "m4a", "flac", "ogg"]);
|
||||
|
||||
/**
|
||||
* Returns true when the file should be **rejected**.
|
||||
|
||||
@@ -211,13 +211,6 @@ const fileTypeOptions = computed(() => [
|
||||
{ content: 'MD', value: 'md' },
|
||||
{ content: 'URL', value: 'url' },
|
||||
{ content: t('knowledgeBase.typeManual'), value: 'manual' },
|
||||
{ content: 'MP4', value: 'mp4' },
|
||||
{ content: 'MOV', value: 'mov' },
|
||||
{ content: 'AVI', value: 'avi' },
|
||||
{ content: 'MKV', value: 'mkv' },
|
||||
{ content: 'WEBM', value: 'webm' },
|
||||
{ content: 'WMV', value: 'wmv' },
|
||||
{ content: 'FLV', value: 'flv' },
|
||||
{ content: 'MP3', value: 'mp3' },
|
||||
{ content: 'WAV', value: 'wav' },
|
||||
{ content: 'M4A', value: 'm4a' },
|
||||
@@ -1046,15 +1039,16 @@ const handleDocumentUpload = async (event: Event) => {
|
||||
const videoTypes = ['mp4', 'mov', 'avi', 'mkv', 'webm', 'wmv', 'flv'];
|
||||
const audioTypes = ['mp3', 'wav', 'm4a', 'flac', 'ogg'];
|
||||
|
||||
if (videoTypes.includes(fileExt)) {
|
||||
videoFilteredCount++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!vlmEnabled) {
|
||||
if (imageTypes.includes(fileExt)) {
|
||||
imageFilteredCount++;
|
||||
continue;
|
||||
}
|
||||
if (videoTypes.includes(fileExt)) {
|
||||
videoFilteredCount++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (!asrEnabled && audioTypes.includes(fileExt)) {
|
||||
@@ -1191,18 +1185,19 @@ const handleFolderUpload = async (event: Event) => {
|
||||
const imageTypes = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp'];
|
||||
const videoTypes = ['mp4', 'mov', 'avi', 'mkv', 'webm', 'wmv', 'flv'];
|
||||
const audioTypes = ['mp3', 'wav', 'm4a', 'flac', 'ogg'];
|
||||
|
||||
|
||||
if (videoTypes.includes(fileExt)) {
|
||||
videoFilteredCount++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!vlmEnabled) {
|
||||
if (imageTypes.includes(fileExt)) {
|
||||
imageFilteredCount++;
|
||||
continue;
|
||||
}
|
||||
if (videoTypes.includes(fileExt)) {
|
||||
videoFilteredCount++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!asrEnabled && audioTypes.includes(fileExt)) {
|
||||
audioFilteredCount++;
|
||||
continue;
|
||||
@@ -1600,7 +1595,7 @@ async function createNewSession(value: string): Promise<void> {
|
||||
ref="uploadInputRef"
|
||||
type="file"
|
||||
class="document-upload-input"
|
||||
:accept="acceptFileTypes || '.pdf,.docx,.doc,.txt,.md,.json,.jpg,.jpeg,.png,.csv,.xlsx,.xls,.pptx,.ppt,.mp3,.wav,.m4a,.flac,.ogg,.mp4,.mov,.avi,.mkv,.webm,.wmv,.flv'"
|
||||
:accept="acceptFileTypes || '.pdf,.docx,.doc,.txt,.md,.json,.jpg,.jpeg,.png,.csv,.xlsx,.xls,.pptx,.ppt,.mp3,.wav,.m4a,.flac,.ogg'"
|
||||
multiple
|
||||
@change="handleDocumentUpload"
|
||||
/>
|
||||
|
||||
@@ -160,9 +160,7 @@ const fileTypeGroups = computed(() => {
|
||||
const jsonExts = ['json'].filter(e => ft.has(e))
|
||||
const imageExts = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'webp'].filter(e => ft.has(e))
|
||||
const audioExts = ['mp3', 'wav', 'm4a', 'flac', 'ogg'].filter(e => ft.has(e))
|
||||
const videoExts = ['mp4', 'mov', 'avi', 'mkv', 'webm', 'wmv', 'flv'].filter(e => ft.has(e))
|
||||
const mediaExtSet = new Set<string>([...audioExts, ...videoExts])
|
||||
const audiovisualExts = [...mediaExtSet]
|
||||
const audiovisualExts = [...audioExts]
|
||||
|
||||
if (pdfExts.length) groups.push({ key: 'pdf', label: t('kbSettings.parser.fileTypePdf'), icon: 'file-pdf', extensions: pdfExts })
|
||||
if (officeExts.length) groups.push({ key: 'office', label: t('kbSettings.parser.fileTypeWord'), icon: 'file-word', extensions: officeExts })
|
||||
|
||||
Reference in New Issue
Block a user