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

Function _edge_default_voice

opentalking/providers/tts/factory.py:70–75  ·  view source on GitHub ↗

Edge TTS 音色:Settings.tts_voice / OPENTALKING_TTS_VOICE。

()

Source from the content-addressed store, hash-verified

68
69
70def _edge_default_voice() -> str:
71 """Edge TTS 音色:Settings.tts_voice / OPENTALKING_TTS_VOICE。"""
72 v = os.environ.get("OPENTALKING_TTS_EDGE_VOICE", "").strip() or _settings_value("tts_edge_voice", "")
73 if not v:
74 v = _settings_value("tts_voice", "") or os.environ.get("OPENTALKING_TTS_VOICE", "").strip()
75 return v or "zh-CN-XiaoxiaoNeural"
76
77
78def _tts_voice_for_log_dashscope() -> str:

Callers 4

tts_provider_configFunction · 0.85
tts_log_profileFunction · 0.85
create_tts_adapterFunction · 0.85
build_tts_adapterFunction · 0.85

Calls 2

getMethod · 0.80
_settings_valueFunction · 0.70

Tested by

no test coverage detected