Skip to content

Commit bac5e6b

Browse files
committed
feat: add nova sonic realtime plugin
1 parent 137a90f commit bac5e6b

File tree

21 files changed

+1223
-10
lines changed

21 files changed

+1223
-10
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
33
{
44
"name": "ten_agent_dev",
5-
"image": "ghcr.io/ten-framework/ten_agent_build:0.6.1",
5+
"image": "ghcr.io/ten-framework/ten_agent_build:0.6.2-6-gc4889b6",
66
"customizations": {
77
"vscode": {
88
"extensions": [

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
ci:
2222
runs-on: ubuntu-latest
2323
container:
24-
image: ghcr.io/ten-framework/ten_agent_build:0.6.1
24+
image: ghcr.io/ten-framework/ten_agent_build:0.6.2-6-gc4889b6
2525
strategy:
2626
matrix:
2727
agent: [agents/examples/default, agents/examples/demo, agents/examples/experimental]

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/ten-framework/ten_agent_build:0.6.1 AS builder
1+
FROM ghcr.io/ten-framework/ten_agent_build:0.6.2-6-gc4889b6 AS builder
22

33
ARG SESSION_CONTROL_CONF=session_control.conf
44
# Add a new argument for USE_AGENT (defaulting to 'agents/examples/default')
282 KB
Binary file not shown.
1.19 MB
Binary file not shown.

agents/bin/start

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")/.."
66

77
#export TEN_ENABLE_PYTHON_DEBUG=true
88
#export TEN_PYTHON_DEBUG_PORT=5678
9+
export PYTHONPATH=/usr/lib/python3.12:/usr/lib/python3.12/lib-dynload:$PYTHONPATH
910
export PYTHONPATH=$(pwd)/ten_packages/system/ten_ai_base/interface:$PYTHONPATH
1011
export LD_LIBRARY_PATH=$(pwd)/ten_packages/system/agora_rtc_sdk/lib:$(pwd)/ten_packages/extension/agora_rtm/lib:$(pwd)/ten_packages/system/azure_speech_sdk/lib
1112

agents/examples/default/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@
167167
"type": "extension",
168168
"name": "dubverse_tts",
169169
"version": "=0.1.0"
170+
},
171+
{
172+
"type": "extension",
173+
"name": "bedrock_v2v_python",
174+
"version": "=0.1.0"
170175
}
171176
]
172177
}

agents/scripts/install_deps_and_build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ install_python_requirements() {
7878

7979
# pre-import llama-index as it cloud download additional resources during the first import
8080
echo "pre-import python modules..."
81-
python3.10 -c "import llama_index.core;"
81+
python3 -c "import llama_index.core;"
8282
}
8383

8484
build_go_app() {
@@ -133,6 +133,10 @@ main() {
133133
echo "install dependencies..."
134134
tman install
135135

136+
# workaround for python3.12
137+
cp ${APP_HOME}/bin/libpython_addon_loader.so ${APP_HOME}/ten_packages/addon_loader/python_addon_loader/lib/
138+
cp ${APP_HOME}/bin/libten_runtime_python.so ${APP_HOME}/ten_packages/system/ten_runtime_python/lib/
139+
136140
# build extensions and app
137141
echo "build_cxx_extensions..."
138142
build_cxx_extensions $APP_HOME
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# bedrock_v2v_python
2+
3+
<!-- brief introduction for the extension -->
4+
5+
## Features
6+
7+
<!-- main features introduction -->
8+
9+
- xxx feature
10+
11+
## API
12+
13+
Refer to `api` definition in [manifest.json] and default values in [property.json](property.json).
14+
15+
<!-- Additional API.md can be referred to if extra introduction needed -->
16+
17+
## Development
18+
19+
### Build
20+
21+
<!-- build dependencies and steps -->
22+
23+
### Unit test
24+
25+
<!-- how to do unit test for the extension -->
26+
27+
## Misc
28+
29+
<!-- others if applicable -->
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# This file is part of TEN Framework, an open source project.
3+
# Licensed under the Apache License, Version 2.0.
4+
# See the LICENSE file for more information.
5+
#
6+
from . import addon

0 commit comments

Comments
 (0)