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

Function _provider_env

opentalking/providers/tts/factory.py:40–42  ·  view source on GitHub ↗
(provider: str, field: str)

Source from the content-addressed store, hash-verified

38
39
40def _provider_env(provider: str, field: str) -> str:
41 key_provider = provider.upper().replace("-", "_")
42 return os.environ.get(f"OPENTALKING_TTS_{key_provider}_{field}", "").strip()
43
44
45def _configured_tts_provider_values() -> tuple[str, ...]:

Callers 15

_dashscope_modelFunction · 0.70
_dashscope_service_urlFunction · 0.70
_local_cosyvoice_modelFunction · 0.70
_local_cosyvoice_deviceFunction · 0.70
_local_indextts_modelFunction · 0.70
_local_indextts_cfg_pathFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected