Skip to content

Commit 44c318e

Browse files
committed
fix: VolcanicEngine stt error
--bug=1057449 --user=王孝刚 【模型】添加火山语音识别模型失败 https://www.tapd.cn/62980211/s/1718297
1 parent 69e8537 commit 44c318e

File tree

1 file changed

+1
-1
lines changed
  • apps/models_provider/impl/volcanic_engine_model_provider/model

1 file changed

+1
-1
lines changed

apps/models_provider/impl/volcanic_engine_model_provider/model/stt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ async def segment_data_processor(self, wav_data: bytes, segment_size: int):
300300
header = self.token_auth()
301301
elif self.auth_method == "signature":
302302
header = self.signature_auth(full_client_request)
303-
async with websockets.connect(self.volcanic_api_url, extra_headers=header, max_size=1000000000,
303+
async with websockets.connect(self.volcanic_api_url, additional_headers=header, max_size=1000000000,
304304
ssl=ssl_context) as ws:
305305
# 发送 full client request
306306
await ws.send(full_client_request)

0 commit comments

Comments
 (0)