MCPcopy
hub / github.com/datascale-ai/opentalking / _settings_value

Function _settings_value

opentalking/providers/tts/factory.py:28–37  ·  view source on GitHub ↗
(name: str, default: str = "")

Source from the content-addressed store, hash-verified

26
27
28def _settings_value(name: str, default: str = "") -> str:
29 try:
30 from opentalking.core.config import get_settings
31
32 value = getattr(get_settings(), name, default)
33 if value is not None and str(value).strip():
34 return str(value).strip()
35 except Exception:
36 pass
37 return default
38
39
40def _provider_env(provider: str, field: str) -> str:

Callers 15

_edge_default_voiceFunction · 0.70
_dashscope_modelFunction · 0.70
_dashscope_service_urlFunction · 0.70
_local_cosyvoice_modelFunction · 0.70
_local_audio_model_rootFunction · 0.70
_local_cosyvoice_deviceFunction · 0.70
_local_indextts_modelFunction · 0.70

Calls 1

get_settingsFunction · 0.90

Tested by

no test coverage detected