From d95dc5e0233e3f0fe3bb7e45d6db48d464eb415d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?MisakaKumomi=20=E5=BE=A1=E5=9D=82=E4=BA=91=E8=A7=81?= <447f@misaka.org> Date: Tue, 3 Feb 2026 05:26:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(stage-pages):=20Add=20warning=20for=20unav?= =?UTF-8?q?ailable=20indextts2=20support=20in=20I=E2=80=A6=20(#1018)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/i18n/src/locales/en/settings.yaml | 2 ++ packages/i18n/src/locales/zh-Hans/settings.yaml | 2 ++ .../settings/providers/speech/index-tts-vllm.vue | 12 ++++++++++-- pnpm-lock.yaml | 6 +++--- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/packages/i18n/src/locales/en/settings.yaml b/packages/i18n/src/locales/en/settings.yaml index 16f9f2013..8152cb425 100644 --- a/packages/i18n/src/locales/en/settings.yaml +++ b/packages/i18n/src/locales/en/settings.yaml @@ -671,6 +671,8 @@ pages: index-tts-vllm: description: https://index-tts.github.io/ title: Bilibili / IndexTTS + callout_indextts2_unavailable_title: Limited Support + callout_indextts2_unavailable: Support for IndexTTS2 is currently unavailable. Please use IndexTTS. azure-ai-foundry: description: Azure AI Foundry title: Azure AI Foundry diff --git a/packages/i18n/src/locales/zh-Hans/settings.yaml b/packages/i18n/src/locales/zh-Hans/settings.yaml index a9e152795..6d1e686e4 100644 --- a/packages/i18n/src/locales/zh-Hans/settings.yaml +++ b/packages/i18n/src/locales/zh-Hans/settings.yaml @@ -615,6 +615,8 @@ pages: index-tts-vllm: description: https://index-tts.github.io/ title: Bilibili / IndexTTS + callout_indextts2_unavailable_title: 支持受限 + callout_indextts2_unavailable: IndexTTS2 的支持目前不可用。请使用 IndexTTS。 azure-ai-foundry: description: Azure AI Foundry title: Azure AI Foundry diff --git a/packages/stage-pages/src/pages/settings/providers/speech/index-tts-vllm.vue b/packages/stage-pages/src/pages/settings/providers/speech/index-tts-vllm.vue index 73f02bdb8..aa663e0ac 100644 --- a/packages/stage-pages/src/pages/settings/providers/speech/index-tts-vllm.vue +++ b/packages/stage-pages/src/pages/settings/providers/speech/index-tts-vllm.vue @@ -7,10 +7,11 @@ import { } from '@proj-airi/stage-ui/components' import { useSpeechStore } from '@proj-airi/stage-ui/stores/modules/speech' import { useProvidersStore } from '@proj-airi/stage-ui/stores/providers' +import { Callout } from '@proj-airi/ui' import { computed, onMounted, watch } from 'vue' -// import { useI18n } from 'vue-i18n' +import { useI18n } from 'vue-i18n' -// const { t } = useI18n() +const { t } = useI18n() const providerId = 'index-tts-vllm' const defaultModel = 'IndexTTS-1.5' @@ -63,6 +64,13 @@ async function handleGenerateSpeech(input: string, voiceId: string) {