Fix Silero TTS module auto substitution of Extras API URL

This commit is contained in:
Cohee
2023-06-07 14:38:51 +03:00
parent e8ef60ff47
commit e585288cca

View File

@ -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();