Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Male voices and accents in OpenAI V2V #393

Merged
merged 2 commits into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions agents/ten_packages/extension/openai_v2v_python/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,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}")

Expand Down
8 changes: 4 additions & 4 deletions demo/src/app/api/agents/start/graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const voiceNameMap: LanguageMap = {
female: "Zhiyu",
},
openai: {
male: "alloy",
male: "ash",
female: "shimmer"
}
},
Expand All @@ -33,7 +33,7 @@ export const voiceNameMap: LanguageMap = {
female: "Ruth",
},
openai: {
male: "alloy",
male: "ash",
female: "shimmer"
}
},
Expand All @@ -43,7 +43,7 @@ export const voiceNameMap: LanguageMap = {
female: "ja-JP-NanamiNeural",
},
openai: {
male: "alloy",
male: "ash",
female: "shimmer"
}
},
Expand All @@ -53,7 +53,7 @@ export const voiceNameMap: LanguageMap = {
female: "ko-KR-JiMinNeural",
},
openai: {
male: "alloy",
male: "ash",
female: "shimmer"
}
},
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
- AGENT_SERVER_URL=http://ten_agent_dev:8080
- TEN_DEV_SERVER_URL=http://ten_agent_dev:49483
ten_agent_demo:
image: ghcr.io/ten-framework/ten_agent_demo:0.5.0-83-g3a18390
image: ghcr.io/ten-framework/ten_agent_demo:0.5.0-87-g261ac1e
container_name: ten_agent_demo
restart: always
ports:
Expand Down