Browse Source

feat: 新增语音的媒介

zhangwl 1 month ago
parent
commit
600dc9dd6d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/core/asr_client.py

+ 1 - 1
app/core/asr_client.py

@@ -220,7 +220,7 @@ async def transcribe_audio(audio_data: bytes) -> str:
 
     async with websockets.connect(
         ASR_WS_URL,
-        extra_headers=headers,
+        additional_headers=headers,
         max_size=10 * 1024 * 1024,
     ) as ws:
         # 发送 FULL_CLIENT_REQUEST