bugfix
This commit is contained in:
parent
ba8dc4ec1d
commit
c05f9d7c89
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user