Enhance TTS functionality and security settings
- Integrated Google TTS languages from a separate module for better maintainability. - Updated local device voice fetching to support both macOS and Windows, improving cross-platform compatibility. - Enhanced dashboard route protection by adding dynamic settings for login requirements and tunnel access. - Introduced UI elements for managing security settings related to API key requirements and dashboard access via tunnel. - Added default TTS response example in the media provider page for better user guidance. - Updated constants to reflect changes in TTS provider configurations. This commit improves the overall user experience and security of the TTS features.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { PROVIDERS } from "./providers.js";
|
||||
import { GOOGLE_TTS_LANGUAGES } from "./googleTtsLanguages.js";
|
||||
|
||||
// Provider models - Single source of truth
|
||||
// Key = alias (cc, cx, gc, qw, if, ag, gh for OAuth; id for API Key)
|
||||
@@ -371,15 +372,7 @@ export const PROVIDER_MODELS = {
|
||||
"local-device": [
|
||||
{ id: "default", name: "System Default Voice", type: "tts" },
|
||||
],
|
||||
"google-tts": [
|
||||
{ id: "en", name: "English", type: "tts" },
|
||||
{ id: "vi", name: "Vietnamese", type: "tts" },
|
||||
{ id: "zh-CN", name: "Chinese (Simplified)", type: "tts" },
|
||||
{ id: "fr", name: "French", type: "tts" },
|
||||
{ id: "de", name: "German", type: "tts" },
|
||||
{ id: "ja", name: "Japanese", type: "tts" },
|
||||
{ id: "ko", name: "Korean", type: "tts" },
|
||||
],
|
||||
"google-tts": GOOGLE_TTS_LANGUAGES,
|
||||
// OpenAI TTS voices (hardcoded — no public API to list them)
|
||||
// Used by ttsCore.js when provider = openai
|
||||
"openai-tts-voices": [
|
||||
|
||||
Reference in New Issue
Block a user