From f464005013b07e1b12e3055aea95ce67b4c74cc9 Mon Sep 17 00:00:00 2001 From: himeditator Date: Sun, 22 Jun 2025 02:51:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0gummy=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- src/main/utils/engine.ts | 2 +- src/renderer/src/stores/captionControl.ts | 9 +++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8e93ff9..7208d3f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ ### 基本使用 -目前仅提供 Windows 平台的可安装版本。如果使用默认的 Gummy 字幕引擎,需要获取阿里云百炼平台的 API KEY 并配置到环境变量中才能正常使用该模型相关教程:[获取API KEY](https://help.aliyun.com/zh/model-studio/get-api-key)、[将API Key配置到环境变量](https://help.aliyun.com/zh/model-studio/configure-api-key-through-environment-variables)。 +目前仅提供 Windows 平台的可安装版本。如果使用默认的 Gummy 字幕引擎,需要获取阿里云百炼平台的 API KEY 并配置到环境变量中才能正常使用该模型。相关教程:[获取API KEY](https://help.aliyun.com/zh/model-studio/get-api-key)、[将API Key配置到环境变量](https://help.aliyun.com/zh/model-studio/configure-api-key-through-environment-variables)。 对于开发者,可以自己创建新的字幕引擎。具体通信规范请参考源代码。 ## ✨ 特性 diff --git a/src/main/utils/engine.ts b/src/main/utils/engine.ts index 0b26779..e2fe350 100644 --- a/src/main/utils/engine.ts +++ b/src/main/utils/engine.ts @@ -10,7 +10,7 @@ export class CaptionEngine { process: any | undefined private getApp() { - if(controls.customized && controls.customizedCommand && controls.customizedApp){ + if(controls.customized && controls.customizedApp){ this.appPath = controls.customizedApp this.command = [ controls.customizedCommand ] } diff --git a/src/renderer/src/stores/captionControl.ts b/src/renderer/src/stores/captionControl.ts index 93cfb17..8d40bf9 100644 --- a/src/renderer/src/stores/captionControl.ts +++ b/src/renderer/src/stores/captionControl.ts @@ -10,9 +10,14 @@ export const useCaptionControlStore = defineStore('captionControl', () => { languages: [ { value: 'auto', label: '自动检测' }, { value: 'en', label: '英语' }, - { value: 'zh', label: '简体中文' }, + { value: 'zh', label: '中文' }, { value: 'ja', label: '日语' }, - { value: 'ko', label: '韩语' } + { value: 'ko', label: '韩语' }, + { value: 'de', label: '德语' }, + { value: 'fr', label: '法语' }, + { value: 'ru', label: '俄语' }, + { value: 'es', label: '西班牙语' }, + { value: 'it', label: '意大利语' }, ] }, ])