This commit is contained in:
yumoqing 2024-09-11 15:35:49 +08:00
parent ba8dc4ec1d
commit c05f9d7c89

View File

@ -18,7 +18,7 @@ class LLMAudioStreamTrack(AudioStreamTrack):
b = self.get_audio_bytes() b = self.get_audio_bytes()
if b is None: if b is None:
print('LLMAudioStreamTrack return None ...') print('LLMAudioStreamTrack return None ...')
return b return await super().recv()
frame = AudioFrame.from_ndarray(io.BytesIO(b), format='s16', layout='mono') frame = AudioFrame.from_ndarray(io.BytesIO(b), format='s16', layout='mono')
print('LLMAudioStreamTrack return frame ...') print('LLMAudioStreamTrack return frame ...')
return frame return frame