diff --git a/enjoy/src/i18n/en.json b/enjoy/src/i18n/en.json index 93240809d..a7851e2bc 100644 --- a/enjoy/src/i18n/en.json +++ b/enjoy/src/i18n/en.json @@ -15,6 +15,7 @@ "size": "size", "source": "source", "createdAt": "created at", + "updatedAt": "updated at", "recordingsCount": "recordings count", "recordingsDuration": "recordings duration", "isTranscribed": "transcribed", @@ -40,6 +41,7 @@ "size": "size", "source": "source", "createdAt": "created at", + "updatedAt": "updated at", "recordingsCount": "recordings count", "recordingsDuration": "recordings duration", "isTranscribed": "transcribed", @@ -923,5 +925,7 @@ "whisperCppEngineDescription": "C++ port of the Whisper architecture.", "ttsService": "Text to Speech Service", "openaiTtsServiceDescription": "Use OpenAI TTS service from your own key.", - "enjoyTtsServiceDescription": "Use TTS service provided by Enjoy. OpenAI or Azure is supported." + "enjoyTtsServiceDescription": "Use TTS service provided by Enjoy. OpenAI or Azure is supported.", + "compressMediaBeforeAdding": "Compress media before adding", + "keepOriginalMedia": "Keep original media" } diff --git a/enjoy/src/i18n/zh-CN.json b/enjoy/src/i18n/zh-CN.json index 9df78359f..d83ef469d 100644 --- a/enjoy/src/i18n/zh-CN.json +++ b/enjoy/src/i18n/zh-CN.json @@ -15,6 +15,7 @@ "size": "大小", "source": "来源", "createdAt": "创建时间", + "updatedAt": "更新时间", "recordingsCount": "练习次数", "recordingsDuration": "练习时长", "isTranscribed": "语音文本", @@ -40,6 +41,7 @@ "size": "大小", "source": "来源", "createdAt": "创建时间", + "updatedAt": "更新时间", "recordingsCount": "练习次数", "recordingsDuration": "练习时长", "isTranscribed": "语音文本", @@ -923,5 +925,7 @@ "whisperCppEngineDescription": "Whisper 的 C++ 实现。", "ttsService": "文字转语音服务", "openaiTtsServiceDescription": "使用您自己的 API key 来使用 OpenAI TTS 服务。", - "enjoyTtsServiceDescription": "使用 Enjoy 提供的 TTS 服务,支持 OpenAI 或 Azure。" + "enjoyTtsServiceDescription": "使用 Enjoy 提供的 TTS 服务,支持 OpenAI 或 Azure。", + "compressMediaBeforeAdding": "添加前压缩媒体", + "keepOriginalMedia": "保存原始媒体" } diff --git a/enjoy/src/main/db/handlers/audios-handler.ts b/enjoy/src/main/db/handlers/audios-handler.ts index 4ab7020c6..761cc301b 100644 --- a/enjoy/src/main/db/handlers/audios-handler.ts +++ b/enjoy/src/main/db/handlers/audios-handler.ts @@ -69,6 +69,7 @@ class AudiosHandler { name?: string; coverUrl?: string; originalText?: string; + compressing?: boolean; } = {} ) { let file = uri; @@ -90,6 +91,7 @@ class AudiosHandler { source, name: params.name, coverUrl: params.coverUrl, + compressing: params.compressing, }); // create transcription if originalText is provided diff --git a/enjoy/src/main/db/handlers/videos-handler.ts b/enjoy/src/main/db/handlers/videos-handler.ts index e0e528739..ac5d91abd 100644 --- a/enjoy/src/main/db/handlers/videos-handler.ts +++ b/enjoy/src/main/db/handlers/videos-handler.ts @@ -68,6 +68,7 @@ class VideosHandler { name?: string; coverUrl?: string; md5?: string; + compressing?: boolean; } = {} ) { let file = uri; diff --git a/enjoy/src/main/db/models/audio.ts b/enjoy/src/main/db/models/audio.ts index bcf778333..af4bdb03c 100644 --- a/enjoy/src/main/db/models/audio.ts +++ b/enjoy/src/main/db/models/audio.ts @@ -161,8 +161,9 @@ export class Audio extends Model