From 0371c9c6717838c1bbb0c91bc1ed1dad97b2bcde Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 11 Sep 2024 16:20:07 +0800 Subject: [PATCH] bugfix --- rtcllm/a2a.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtcllm/a2a.py b/rtcllm/a2a.py index a241af8..e37152d 100644 --- a/rtcllm/a2a.py +++ b/rtcllm/a2a.py @@ -18,9 +18,9 @@ def bytes_to_audio_frame(bytes_data, format='s16', layout='mono', sample_rate=16 - sample_rate: 采样率。 """ # 根据给定的参数创建AudioFrame - frame = AudioFrame(format=format, layout=layout, - samples=len(bytes_data) // 2, - rate=sample_rate) + frame = AudioFrame(format=format, + layout=layout, + samples=len(bytes_data) // 2) # 将字节数据复制到AudioFrame中 frame.planes[0].update(bytes_data)