From 8f540565b77d3c716a19513eb5fb187e93aaa795 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 11 Sep 2024 13:08:10 +0800 Subject: [PATCH] bugfix --- rtcllm/aav.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtcllm/aav.py b/rtcllm/aav.py index 6b350f6..a877860 100644 --- a/rtcllm/aav.py +++ b/rtcllm/aav.py @@ -11,6 +11,7 @@ class MyTrackBase(MediaStreamTrack): self.reloaded = False self.source = source self.set_track() + print(f'{self.kind=}, {self.__class__.__name__}') def set_track(self): if self.kind == 'audio': @@ -33,7 +34,7 @@ class MyTrackBase(MediaStreamTrack): return None if self.track.readyState != 'live': self.reload() - f = await self.source.audio.recv() + f = await self.track.recv() return f