diff --git a/agents/ten_packages/extension/openai_v2v_python/extension.py b/agents/ten_packages/extension/openai_v2v_python/extension.py index 3ae55d71..5c39968e 100644 --- a/agents/ten_packages/extension/openai_v2v_python/extension.py +++ b/agents/ten_packages/extension/openai_v2v_python/extension.py @@ -484,14 +484,14 @@ def _fetch_properties(self, ten_env: TenEnv): try: voice = ten_env.get_property_string(PROPERTY_VOICE) if voice: - v = DEFAULT_VOICE - if voice == "alloy": - v = Voices.Alloy - elif voice == "echo": - v = Voices.Echo - elif voice == "shimmer": - v = Voices.Shimmer - self.config.voice = v + # v = DEFAULT_VOICE + # if voice == "alloy": + # v = Voices.Alloy + # elif voice == "echo": + # v = Voices.Echo + # elif voice == "shimmer": + # v = Voices.Shimmer + self.config.voice = voice except Exception as err: logger.info(f"GetProperty optional {PROPERTY_VOICE} error: {err}") diff --git a/demo/src/app/api/agents/start/graph.tsx b/demo/src/app/api/agents/start/graph.tsx index e1c68163..a2f55dc2 100644 --- a/demo/src/app/api/agents/start/graph.tsx +++ b/demo/src/app/api/agents/start/graph.tsx @@ -15,7 +15,7 @@ export const voiceNameMap: LanguageMap = { female: "Zhiyu", }, openai: { - male: "alloy", + male: "ash", female: "shimmer" } }, @@ -33,7 +33,7 @@ export const voiceNameMap: LanguageMap = { female: "Ruth", }, openai: { - male: "alloy", + male: "ash", female: "shimmer" } }, @@ -43,7 +43,7 @@ export const voiceNameMap: LanguageMap = { female: "ja-JP-NanamiNeural", }, openai: { - male: "alloy", + male: "ash", female: "shimmer" } }, @@ -53,7 +53,7 @@ export const voiceNameMap: LanguageMap = { female: "ko-KR-JiMinNeural", }, openai: { - male: "alloy", + male: "ash", female: "shimmer" } },