From c846df0325e82075b2d01a4e352f01a691077ad9 Mon Sep 17 00:00:00 2001 From: Typed SIGTERM Date: Thu, 6 Nov 2025 17:53:27 +0800 Subject: [PATCH] fix(stage-ui): correct default base url for index-tts fix #728 --- packages/stage-ui/src/stores/providers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/stage-ui/src/stores/providers.ts b/packages/stage-ui/src/stores/providers.ts index 5e3452d34..b10d618dd 100644 --- a/packages/stage-ui/src/stores/providers.ts +++ b/packages/stage-ui/src/stores/providers.ts @@ -1152,7 +1152,7 @@ export const useProvidersStore = defineStore('providers', () => { description: 'index-tts.github.io', iconColor: 'i-lobe-icons:bilibiliindex', defaultOptions: () => ({ - baseUrl: 'http://localhost:11996/tts', + baseUrl: 'http://localhost:11996/tts/', }), createProvider: async (config) => { const provider: SpeechProvider = { @@ -1169,7 +1169,7 @@ export const useProvidersStore = defineStore('providers', () => { capabilities: { listVoices: async (config) => { const voicesUrl = config.baseUrl as string - const response = await fetch(`${voicesUrl}/audio/voices`) + const response = await fetch(`${voicesUrl}audio/voices`) if (!response.ok) { throw new Error(`Failed to fetch voices: ${response.statusText}`) } @@ -1188,7 +1188,7 @@ export const useProvidersStore = defineStore('providers', () => { validators: { validateProviderConfig: (config) => { const errors = [ - !config.baseUrl && new Error('Base URL is required. Default to http://localhost:11996/tts for Index-TTS.'), + !config.baseUrl && new Error('Base URL is required. Default to http://localhost:11996/tts/ for Index-TTS.'), ].filter(Boolean) const res = baseUrlValidator.value(config.baseUrl)