diff --git a/packages/services/voice-agent/src/agent.py b/packages/services/voice-agent/src/agent.py index e2e9351..71e3757 100644 --- a/packages/services/voice-agent/src/agent.py +++ b/packages/services/voice-agent/src/agent.py @@ -168,6 +168,7 @@ async def entrypoint(ctx: JobContext) -> None: tts = openai_plugin.TTS( model=settings.openai_tts_model, voice=settings.openai_tts_voice, + instructions="用自然、友好的中文语气说话,语速适中,像真人助手一样。", client=_oai_client_tts, ) else: diff --git a/packages/services/voice-agent/src/config.py b/packages/services/voice-agent/src/config.py index b5600a2..1fffbfe 100644 --- a/packages/services/voice-agent/src/config.py +++ b/packages/services/voice-agent/src/config.py @@ -27,8 +27,8 @@ class Settings(BaseSettings): openai_api_key: str = "" openai_base_url: str = "" openai_stt_model: str = "gpt-4o-transcribe" - openai_tts_model: str = "tts-1" - openai_tts_voice: str = "alloy" + openai_tts_model: str = "gpt-4o-mini-tts" + openai_tts_voice: str = "coral" # Device device: str = "cpu" # "cpu" or "cuda"