mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix Silero TTS module auto substitution of Extras API URL
This commit is contained in:
@ -50,7 +50,7 @@ class SileroTtsProvider {
|
|||||||
|
|
||||||
const apiCheckInterval = setInterval(() => {
|
const apiCheckInterval = setInterval(() => {
|
||||||
// Use Extras API if TTS support is enabled
|
// Use Extras API if TTS support is enabled
|
||||||
if (modules.includes('tts')) {
|
if (modules.includes('tts') || modules.includes('silero-tts')) {
|
||||||
const baseUrl = new URL(getApiUrl());
|
const baseUrl = new URL(getApiUrl());
|
||||||
baseUrl.pathname = '/api/tts';
|
baseUrl.pathname = '/api/tts';
|
||||||
this.settings.provider_endpoint = baseUrl.toString();
|
this.settings.provider_endpoint = baseUrl.toString();
|
||||||
|
Reference in New Issue
Block a user