Skip to content

Commit

Permalink
fix: Male voices and accents in OpenAI V2V (#393)
Browse files Browse the repository at this point in the history
* fix: Male voices and accents in OpenAI V2V

* docker image update
  • Loading branch information
plutoless committed Nov 11, 2024
1 parent ddee762 commit 7baa25d
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 73 deletions.
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 @@ -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}")

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
122 changes: 61 additions & 61 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
services:
ten_agent_dev:
image: ghcr.io/ten-framework/ten_agent_build:0.2.1
container_name: ten_agent_dev
platform: linux/amd64
tty: true
stdin_open: true
restart: always
command: "make run-gd-server"
ports:
- "${GRAPH_DESIGNER_SERVER_PORT}:${GRAPH_DESIGNER_SERVER_PORT}"
- "${SERVER_PORT}:${SERVER_PORT}"
volumes:
- ./:/app
- ${LOG_PATH}:${LOG_PATH}
working_dir: /app
env_file:
- .env
networks:
- ten_agent_network
ten_agent_playground:
image: ghcr.io/ten-framework/ten_agent_playground:0.5.0-85-gfc7cde3
container_name: ten_agent_playground
restart: always
ports:
- "3000:3000"
networks:
- ten_agent_network
environment:
- 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-75-gb45cbd2
container_name: ten_agent_demo
restart: always
ports:
- "3002:3000"
networks:
- ten_agent_network
environment:
- AGENT_SERVER_URL=http://ten_agent_dev:8080
ten_agent_dev:
image: ghcr.io/ten-framework/ten_agent_build:0.2.1
container_name: ten_agent_dev
platform: linux/amd64
tty: true
stdin_open: true
restart: always
command: "make run-gd-server"
ports:
- "${GRAPH_DESIGNER_SERVER_PORT}:${GRAPH_DESIGNER_SERVER_PORT}"
- "${SERVER_PORT}:${SERVER_PORT}"
volumes:
- ./:/app
- ${LOG_PATH}:${LOG_PATH}
working_dir: /app
env_file:
- .env
networks:
- ten_agent_network
ten_agent_playground:
image: ghcr.io/ten-framework/ten_agent_playground:0.5.0-67-g3c37e38
container_name: ten_agent_playground
restart: always
ports:
- "3000:3000"
networks:
- ten_agent_network
environment:
- 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-87-g261ac1e
container_name: ten_agent_demo
restart: always
ports:
- "3002:3000"
networks:
- ten_agent_network
environment:
- AGENT_SERVER_URL=http://ten_agent_dev:8080

# use this when you want to run the playground in local development mode
# ten_agent_playground_dev:
# image: node:20-alpine
# container_name: ten_agent_playground_dev
# restart: always
# command: sh -c "cd /app/playground && npm i && npm run dev" #build && npm run start"
# ports:
# - "3002:3000"
# volumes:
# - ./:/app
ten_graph_designer:
image: ghcr.io/ten-framework/ten_graph_designer:dde0ff1
container_name: ten_graph_designer
restart: always
ports:
- "3001:3000"
networks:
- ten_agent_network
environment:
- TEN_DEV_SERVER_URL=http://ten_agent_dev:49483
# use this when you want to run the playground in local development mode
# ten_agent_playground_dev:
# image: node:20-alpine
# container_name: ten_agent_playground_dev
# restart: always
# command: sh -c "cd /app/playground && npm i && npm run dev" #build && npm run start"
# ports:
# - "3002:3000"
# volumes:
# - ./:/app
ten_graph_designer:
image: ghcr.io/ten-framework/ten_graph_designer:dde0ff1
container_name: ten_graph_designer
restart: always
ports:
- "3001:3000"
networks:
- ten_agent_network
environment:
- TEN_DEV_SERVER_URL=http://ten_agent_dev:49483
networks:
ten_agent_network:
driver: bridge
driver: bridge

0 comments on commit 7baa25d

Please sign in to comment.