feat(audio): add audio file preview support and enhance UI components
- Integrated audio file preview functionality in document content and preview components. - Updated localization files to include audio-related messages. - Enhanced the UI to display an audio player for supported audio formats. - Implemented audio loading state and error handling for unsupported audio playback.
This commit is contained in:
@@ -237,6 +237,7 @@
|
||||
:selected-model-id="formData.asrConfig.modelId"
|
||||
:all-models="allModels"
|
||||
@update:selected-model-id="(val: string) => { if (formData) formData.asrConfig.modelId = val }"
|
||||
@add-model="handleAddASRModel"
|
||||
:placeholder="$t('knowledgeEditor.asr.modelPlaceholder')"
|
||||
/>
|
||||
</div>
|
||||
@@ -557,6 +558,10 @@ const handleAddVLLMModel = () => {
|
||||
uiStore.openSettings('models', 'vllm')
|
||||
}
|
||||
|
||||
const handleAddASRModel = () => {
|
||||
uiStore.openSettings('models', 'asr')
|
||||
}
|
||||
|
||||
const handleStorageProviderUpdate = (value: string) => {
|
||||
if (formData.value) {
|
||||
formData.value.storageProvider = value || 'local'
|
||||
|
||||
Reference in New Issue
Block a user