This commit is contained in:
yumoqing 2024-09-09 18:55:02 +08:00
parent f8012d6613
commit b71e533e85

View File

@ -107,9 +107,10 @@ class RTCLLM:
self.onlineList = data.onlineList self.onlineList = data.onlineList
async def vad_voiceend(self, peer, audio): async def vad_voiceend(self, peer, audio):
ret = await self.feed(audio) if audio is not None:
print(f'self.feed("{audio}") return {ret}') ret = await self.feed(audio)
os.remove(audio) print(f'self.feed("{audio}") return {ret}')
os.remove(audio)
async def auto_accept_call(self, data): async def auto_accept_call(self, data):
opts = DictObject(iceServers=self.iceServers) opts = DictObject(iceServers=self.iceServers)