Skip to content
Closed
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ ai_agents/crash_context_v1
ai_agents/.deps/
ai_agents/.DS_Store
ai_agents/.env
ai_agents/**/*.pem
ai_agents/.gn
ai_agents/.gnfiles
ai_agents/include/
Expand Down
18 changes: 17 additions & 1 deletion ai_agents/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ AGORA_APP_CERTIFICATE=
# OpenAI API key
OPENAI_API_BASE=https://api.openai.com/v1
OPENAI_API_KEY=
OPENAI_MODEL=gpt-4o
OPENAI_MODEL=gpt-5.1-chat-latest
OPENAI_PROXY_URL=

# Extension: grok_python
Expand Down Expand Up @@ -104,6 +104,22 @@ DEEPGRAM_API_KEY=
AZURE_ASR_API_KEY=
AZURE_ASR_REGION=

# Extension: oracle_asr_python, oracle_tts_python
# Oracle Cloud Infrastructure Speech credentials (shared by ASR and TTS)
# Note: Oracle TTS may only be available in certain regions (e.g. us-phoenix-1)
OCI_TENANCY=
OCI_USER=
OCI_FINGERPRINT=
OCI_KEY_FILE=
OCI_COMPARTMENT_ID=
OCI_REGION=us-ashburn-1

# Oracle Cloud Generative AI (LLM)
# Uses the OCI Generative AI OpenAI-compatible inference endpoint
ORACLE_LLM_API_KEY=
ORACLE_LLM_BASE_URL=https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/20231130/actions/v1
ORACLE_LLM_MODEL=meta.llama-3.3-70b-instruct

# ------------------------------
# TTS
# ------------------------------
Expand Down
8 changes: 4 additions & 4 deletions ai_agents/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ tasks:
- ./scripts/install_deps_and_build.sh linux x64

tts-guarder-test:
desc: run tests for tts guarder
desc: "run tests for tts guarder (EXTENSION: bytedance_tts_duplex | oracle_tts_python)"
vars:
EXTENSION: '{{.EXTENSION| default "bytedance_tts_duplex"}}'
CONFIG_DIR: '{{.CONFIG_DIR| default "tests/configs"}}'
Expand All @@ -50,7 +50,7 @@ tasks:
dotenv: [".env"]
cmds:
- cd agents/integration_tests/tts_guarder && sed "s/{{`{{extension_name}}`}}/$EXT_NAME/g" manifest-tmpl.json > manifest.json
- cd agents/integration_tests/tts_guarder && ./scripts/install_deps_and_build.sh linux x64 && ./tests/bin/start --extension_name {{.EXTENSION}} --config_dir {{.USER_WORKING_DIR}}/agents/ten_packages/extension/{{.EXTENSION}}/{{.CONFIG_DIR}} {{ .CLI_ARGS }}
- cd agents/integration_tests/tts_guarder && ./scripts/install_deps_and_build.sh linux x64 && ./tests/bin/start --extension_name {{.EXTENSION}} --config_dir $(pwd)/ten_packages/extension/{{.EXTENSION}}/{{.CONFIG_DIR}} {{ .CLI_ARGS }}

test:
desc: run tests
Expand Down Expand Up @@ -101,7 +101,7 @@ tasks:
- cd {{.EXTENSION}} && ./tests/bin/start {{ .CLI_ARGS }}

asr-guarder-test:
desc: run tests for asr guarder
desc: "run tests for asr guarder (EXTENSION: azure_asr_python | oracle_asr_python)"
vars:
EXTENSION: '{{.EXTENSION| default "azure_asr_python"}}'
CONFIG_DIR: '{{.CONFIG_DIR| default "tests/configs"}}'
Expand All @@ -111,7 +111,7 @@ tasks:
dotenv: [".env"]
cmds:
- cd agents/integration_tests/asr_guarder && sed "s/{{`{{extension_name}}`}}/$EXT_NAME/g" manifest-tmpl.json > manifest.json
- cd agents/integration_tests/asr_guarder && ./scripts/install_deps_and_build.sh linux x64 && ./tests/bin/start --extension_name {{.EXTENSION}} --config_dir {{.USER_WORKING_DIR}}/agents/ten_packages/extension/{{.EXTENSION}}/{{.CONFIG_DIR}} {{ .CLI_ARGS }}
- cd agents/integration_tests/asr_guarder && ./scripts/install_deps_and_build.sh linux x64 && ./tests/bin/start --extension_name {{.EXTENSION}} --config_dir $(pwd)/ten_packages/extension/{{.EXTENSION}}/{{.CONFIG_DIR}} {{ .CLI_ARGS }}

format:
desc: format code
Expand Down
1 change: 1 addition & 0 deletions ai_agents/agents/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ interface/
lib/
/out/
*.pcm
!**/test_data/**/*.pcm
.release
session_control.conf.agora
xdump_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{
"type": "system",
"name": "ten_runtime_go",
"version": "0.11.52",
"hash": "3f1a0d10ab9c5b5b0932ceea9230e3cf4195e6ffa887c256f2ce1da77241ed44",
"version": "0.11.62",
"hash": "3edc0bf4cd95b531070a82273cea0b17fc482348dc66f51dd63902afcbf57337",
"dependencies": [
{
"type": "system",
Expand Down Expand Up @@ -239,8 +239,8 @@
{
"type": "extension",
"name": "openai_asr_python",
"version": "0.2.2",
"hash": "dc0d2ecf5c104c396b0539e7f915041453d007aedebd121740c5bb965fd513dc",
"version": "0.3.0",
"hash": "56374e250f4ab3d43a9a52ad22bc21317b1183c54467e4625653753ac8615b79",
"dependencies": [
{
"type": "system",
Expand All @@ -253,6 +253,23 @@
],
"path": "../../../ten_packages/extension/openai_asr_python"
},
{
"type": "extension",
"name": "sarvam_asr_python",
"version": "0.1.2",
"hash": "e821256e20456fa01534b140ce3c5176bcdc83abd00c22eef1e5d191bae160d2",
"dependencies": [
{
"type": "system",
"name": "ten_runtime_python"
},
{
"type": "system",
"name": "ten_ai_base"
}
],
"path": "../../../ten_packages/extension/sarvam_asr_python"
},
{
"type": "extension",
"name": "soniox_asr_python",
Expand Down Expand Up @@ -355,6 +372,23 @@
],
"path": "../../../ten_packages/extension/xfyun_asr_python"
},
{
"type": "extension",
"name": "oracle_asr_python",
"version": "0.1.0",
"hash": "399f986295bf4c7cfceef4c251b589d75efd72d6129c268ed18297871656e071",
"dependencies": [
{
"type": "system",
"name": "ten_runtime_python"
},
{
"type": "system",
"name": "ten_ai_base"
}
],
"path": "../../../ten_packages/extension/oracle_asr_python"
},
{
"type": "extension",
"name": "coze_llm2_python",
Expand Down Expand Up @@ -443,8 +477,8 @@
{
"type": "extension",
"name": "cartesia_tts",
"version": "0.6.2",
"hash": "17d121b4cec20fe6333ea337a59536bbf5a577fe32275345a5f50ed2ff7c8f92",
"version": "0.6.3",
"hash": "f8c8a1dd7225976b728a323f54b2b8d3246ee9fe964d3ddf206d630e316ffc78",
"dependencies": [
{
"type": "system",
Expand Down Expand Up @@ -605,8 +639,8 @@
{
"type": "extension",
"name": "openai_tts2_python",
"version": "0.6.0",
"hash": "62e552ae155c42f707a92309be5e4ed5eb0434536c566d1700a4c563b794d508",
"version": "0.6.1",
"hash": "7c51a7d8562285cf6b3a62c6edb7ec06caf64d9ccadf483eb57a4e675e079f81",
"dependencies": [
{
"type": "system",
Expand Down Expand Up @@ -656,8 +690,8 @@
{
"type": "extension",
"name": "rime_tts",
"version": "0.4.1",
"hash": "e4506ae14920fdddd72962f2d525bd37bbd02feb73a6d462902fbf32ca6d5a38",
"version": "0.4.2",
"hash": "7cae56839812cbe7701c9809b8c55e1645d0c393df91ef4d2e43fe07b51b0564",
"dependencies": [
{
"type": "system",
Expand Down Expand Up @@ -721,6 +755,23 @@
],
"path": "../../../ten_packages/extension/tencent_tts_python"
},
{
"type": "extension",
"name": "oracle_tts_python",
"version": "0.1.0",
"hash": "803baaaefbff33f7649fe0ee6f5d73272c87bdead7c42d9495b903f581341d92",
"dependencies": [
{
"type": "system",
"name": "ten_runtime_python"
},
{
"type": "system",
"name": "ten_ai_base"
}
],
"path": "../../../ten_packages/extension/oracle_tts_python"
},
{
"type": "extension",
"name": "message_collector2",
Expand Down Expand Up @@ -750,8 +801,8 @@
{
"type": "system",
"name": "ten_runtime_python",
"version": "0.11.52",
"hash": "016d47c1d33fb7ef9a3dbf4f3fa50e0f3a629bb6e89a5feda48200a09bd903f2",
"version": "0.11.62",
"hash": "3d67baae8b638167230a557d2fb79c3b4c6d78ea1999a045683d4f76474f8179",
"dependencies": [
{
"type": "system",
Expand All @@ -772,8 +823,8 @@
{
"type": "system",
"name": "ten_runtime",
"version": "0.11.52",
"hash": "8a46fecf6bf7ccc718bd6de32a2e95137542325853529c2c4108b1c9ffe69293",
"version": "0.11.62",
"hash": "5970c9e6fdd8ade6044e10dafa8daaafdc3a77136038c0cdde28f0734abf2884",
"supports": [
{
"os": "linux",
Expand All @@ -796,8 +847,8 @@
{
"type": "addon_loader",
"name": "python_addon_loader",
"version": "0.11.52",
"hash": "57867531ef8c0caa4b1c31772e775896db7e515b31a2cafe03881d8458912f60",
"version": "0.11.62",
"hash": "378db15568f2f19471c7c8e0d63464a51f6331fce494c473ece72bcaf3be3ed2",
"dependencies": [
{
"type": "system",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
{
"path": "../../../ten_packages/extension/xfyun_asr_python"
},
{
"path": "../../../ten_packages/extension/oracle_asr_python"
},
{
"path": "../../../ten_packages/extension/coze_llm2_python"
},
Expand Down Expand Up @@ -141,6 +144,9 @@
{
"path": "../../../ten_packages/extension/tencent_tts_python"
},
{
"path": "../../../ten_packages/extension/oracle_tts_python"
},
{
"path": "../../../ten_packages/extension/message_collector2"
},
Expand Down
Loading
Loading