mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
first cut
This commit is contained in:
@@ -55,7 +55,7 @@ async def player_worker_decode(
|
||||
|
||||
# Convert to audio frame and resample
|
||||
# This runs in the same timeout context
|
||||
frame = av.AudioFrame.from_ndarray(
|
||||
frame = av.AudioFrame.from_ndarray( # type: ignore
|
||||
audio_array, format=format, layout=layout
|
||||
)
|
||||
frame.sample_rate = sample_rate
|
||||
|
||||
Reference in New Issue
Block a user