From f6769a2862ffb522df4d594738bb9653becc1ff9 Mon Sep 17 00:00:00 2001 From: zhangqianze Date: Fri, 27 Dec 2024 21:08:41 +0800 Subject: [PATCH] fix: fix dependencies --- agents/examples/default/property.json | 52 ++++++++++++++-------- agents/examples/demo/manifest.json | 6 +-- agents/examples/experimental/manifest.json | 6 +-- 3 files changed, 40 insertions(+), 24 deletions(-) diff --git a/agents/examples/default/property.json b/agents/examples/default/property.json index 5acef1f8..2a983e68 100644 --- a/agents/examples/default/property.json +++ b/agents/examples/default/property.json @@ -506,24 +506,27 @@ "subscribe_audio": true, "publish_audio": true, "publish_data": true, - "subscribe_audio_sample_rate": 24000 + "subscribe_audio_sample_rate": 24000, + "subscribe_video_pix_fmt": 4, + "subscribe_video": true } }, { "type": "extension", "name": "v2v", - "addon": "openai_v2v_python", + "addon": "gemini_v2v_python", "extension_group": "llm", "property": { - "api_key": "${env:OPENAI_REALTIME_API_KEY}", - "temperature": 0.9, - "model": "gpt-4o-realtime-preview", - "max_tokens": 2048, - "voice": "alloy", + "api_key": "${env:GEMINI_API_KEY}", + "api_version": "v1alpha", + "base_uri": "generativelanguage.googleapis.com", + "dump": true, "language": "en-US", + "max_tokens": 2048, + "model": "gemini-2.0-flash-exp", "server_vad": true, - "dump": true, - "max_history": 10 + "temperature": 0.9, + "voice": "Puck" } }, { @@ -546,19 +549,17 @@ "connections": [ { "extension": "agora_rtc", - "audio_frame": [ + "cmd": [ { - "name": "pcm_frame", + "name": "on_user_joined", "dest": [ { "extension": "v2v" } ] - } - ], - "cmd": [ + }, { - "name": "on_user_joined", + "name": "on_user_left", "dest": [ { "extension": "v2v" @@ -566,15 +567,17 @@ ] }, { - "name": "on_user_left", + "name": "on_connection_failure", "dest": [ { "extension": "v2v" } ] - }, + } + ], + "audio_frame": [ { - "name": "on_connection_failure", + "name": "pcm_frame", "dest": [ { "extension": "v2v" @@ -649,6 +652,19 @@ ] } ] + }, + { + "extension": "agora_rtc", + "video_frame": [ + { + "name": "video_frame", + "dest": [ + { + "extension": "v2v" + } + ] + } + ] } ] } diff --git a/agents/examples/demo/manifest.json b/agents/examples/demo/manifest.json index 8d3577ab..e5bf96ef 100644 --- a/agents/examples/demo/manifest.json +++ b/agents/examples/demo/manifest.json @@ -16,12 +16,12 @@ { "type": "extension", "name": "agora_rtc", - "version": "=0.10.0-rc3" + "version": "=0.10.1" }, { "type": "extension", "name": "agora_sess_ctrl", - "version": "=0.4.0-rc1" + "version": "=0.4.1" }, { "type": "system", @@ -31,7 +31,7 @@ { "type": "extension", "name": "azure_tts", - "version": "=0.7.0" + "version": "=0.7.1" }, { "type": "extension", diff --git a/agents/examples/experimental/manifest.json b/agents/examples/experimental/manifest.json index 7dd57a4e..c8fc067c 100644 --- a/agents/examples/experimental/manifest.json +++ b/agents/examples/experimental/manifest.json @@ -16,12 +16,12 @@ { "type": "extension", "name": "agora_rtc", - "version": "=0.10.0-rc3" + "version": "=0.10.1" }, { "type": "extension", "name": "agora_sess_ctrl", - "version": "=0.4.0-rc1" + "version": "=0.4.1" }, { "type": "system", @@ -31,7 +31,7 @@ { "type": "extension", "name": "azure_tts", - "version": "=0.7.0" + "version": "=0.7.1" }, { "type": "extension",