bugfix
This commit is contained in:
parent
8db51c5240
commit
5aea5a4752
@ -15,13 +15,14 @@ class LLMAudioStreamTrack(AudioStreamTrack):
|
|||||||
try:
|
try:
|
||||||
b = self.get_audio_bytes()
|
b = self.get_audio_bytes()
|
||||||
if b is None:
|
if b is None:
|
||||||
|
print('LLMAudioStreamTrack return None ...')
|
||||||
return b
|
return b
|
||||||
frame = AudioFrame.from_ndarray(io.BytesIO(b), format='s16', layout='mono')
|
frame = AudioFrame.from_ndarray(io.BytesIO(b), format='s16', layout='mono')
|
||||||
return frame
|
return frame
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print_exc()
|
print_exc()
|
||||||
print(f'{self.__class__.__name__} recv() exception happened')
|
print(f'{self.__class__.__name__} recv() exception happened')
|
||||||
raise e
|
return None
|
||||||
|
|
||||||
def set_cur_audio_iter(self):
|
def set_cur_audio_iter(self):
|
||||||
if len(self.audio_iters) == 0:
|
if len(self.audio_iters) == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user