From 887dfbe728b88269091341c2354745364d175fc9 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 3 Sep 2024 16:19:14 +0800 Subject: [PATCH] bugfix --- rtcllm/rtc.py | 2 ++ 1 file changed, 2 insertions(+) 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'},{