feat: integrate durable chat voice transport and deployment assets

This commit is contained in:
snowspeeder committed 2026-10-03 09:02:47 -04:00
1 parent e059660194
commit 523f6cbbf9
14 files changed
+487 -14

No files matched your search

+5 -5
View File
@@ -13,9 +13,9 @@ from livekit import rtc
from pathlib import Path
try:
from agent.hermes_llm import HermesLLM
from agent.conversation_llm import ConversationLLM
except ImportError:
from hermes_llm import HermesLLM
from conversation_llm import ConversationLLM
try:
from web.voice_catalog import normalize_default_voice
@@ -124,9 +124,9 @@ async def entrypoint(ctx: JobContext):
raise RuntimeError("Account mismatch")
return current["model_settings"]
bridge = HermesLLM(base_url=account["hermes_url"], api_key=account["hermes_api_key"], user_id=user_id,
room_id=ctx.room.name, on_progress=progress, on_wait_notice=wait_notice,
on_answer_start=stop_notice, get_model_settings=model_settings)
bridge = ConversationLLM(control_url=CONTROL_URL, secret=CONTROL_SECRET,
room_id=ctx.room.name, on_progress=progress,
on_wait_notice=wait_notice, on_answer_start=stop_notice)
tts = azure.TTS(voice=DEFAULT_VOICE, sample_rate=24000,
speech_key=os.getenv("AZURE_SPEECH_KEY", ""), speech_region=os.getenv("AZURE_SPEECH_REGION", "eastus"))
session = AgentSession(stt=azure.STT(speech_key=os.getenv("AZURE_SPEECH_KEY", ""),