bugfix
This commit is contained in:
parent
5aea5a4752
commit
9d77a8f565
@ -1,4 +1,5 @@
|
||||
import io
|
||||
import asyncio
|
||||
from av import AudioFrame
|
||||
|
||||
from aiortc import VideoStreamTrack, AudioStreamTrack
|
||||
@ -18,6 +19,7 @@ class LLMAudioStreamTrack(AudioStreamTrack):
|
||||
print('LLMAudioStreamTrack return None ...')
|
||||
return b
|
||||
frame = AudioFrame.from_ndarray(io.BytesIO(b), format='s16', layout='mono')
|
||||
print('LLMAudioStreamTrack return frame ...')
|
||||
return frame
|
||||
except Exception as e:
|
||||
print_exc()
|
||||
|
Loading…
Reference in New Issue
Block a user