"""VoiceCoach v2 — entry point.""" import logging import os import threading from livekit.agents import WorkerOptions, cli import server from agent import entrypoint logging.basicConfig(level=logging.INFO) def run_api_server(): server.run() if __name__ == "__main__": api_thread = threading.Thread(target=run_api_server, daemon=True) api_thread.start() cli.run_app( WorkerOptions( entrypoint_fnc=entrypoint, ws_url=os.getenv("LIVEKIT_URL", "ws://voicecoach-livekit:7880"), api_key=os.getenv("LIVEKIT_API_KEY"), api_secret=os.getenv("LIVEKIT_API_SECRET"), ) )