diff --git a/rtcllm/rtc.py b/rtcllm/rtc.py index ff18d4d..97807f5 100644 --- a/rtcllm/rtc.py +++ b/rtcllm/rtc.py @@ -7,6 +7,7 @@ from faster_whisper import WhisperModel from functools import partial from appPublic.dictObject import DictObject +from appPublic.hf import hf_socks5proxy from aiortc import MediaStreamTrack, RTCPeerConnection, RTCSessionDescription, RTCIceCandidate from aiortc.sdp import candidate_from_sdp, candidate_to_sdp from aiortc.contrib.media import MediaBlackhole, MediaPlayer, MediaRecorder, MediaRelay @@ -210,6 +211,7 @@ class RTCLLM: } async def main(): + hf_socks5proxy() agent = RTCLLM(ws_url='wss://sage.opencomputing.cn/wss/ws/rtc_signaling.ws', iceServers=[{ 'urls':'stun:stun.opencomputing.cn'},{