Moving the environment variables to inside the demo.

This commit is contained in:
Filipi Fuchter
2025-04-17 16:28:50 -03:00
parent 53ee3fb64c
commit a80f82cdb6
4 changed files with 30 additions and 25 deletions

View File

@@ -29,6 +29,8 @@ load_dotenv(override=True)
async def run_bot(webrtc_connection: SmallWebRTCConnection):
logger.info(f"Starting bot")
remote_smart_turn_url = os.getenv("REMOTE_SMART_TURN_URL")
transport = SmallWebRTCTransport(
webrtc_connection=webrtc_connection,
params=TransportParams(
@@ -37,7 +39,7 @@ async def run_bot(webrtc_connection: SmallWebRTCConnection):
vad_enabled=True,
vad_analyzer=SileroVADAnalyzer(params=VADParams(stop_secs=0.2)),
vad_audio_passthrough=True,
end_of_turn_analyzer=SmartTurnAnalyzer(),
end_of_turn_analyzer=SmartTurnAnalyzer(url=remote_smart_turn_url),
),
)