Skip to content

Commit

Permalink
fix: 修复豆包模型配置校验失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Sep 20, 2024
1 parent a665a7f commit 1ad5573
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async def segment_data_processor(self, wav_data: bytes, segment_size: int):
res = await ws.recv()
result = parse_response(res)
if 'payload_msg' in result and result['payload_msg']['code'] != self.success_code:
return result
raise Exception(f"Error code: {result['payload_msg']['code']}, message: {result['payload_msg']['message']}")
for seq, (chunk, last) in enumerate(VolcanicEngineSpeechToText.slice_data(wav_data, segment_size), 1):
# if no compression, comment this line
payload_bytes = gzip.compress(chunk)
Expand Down

0 comments on commit 1ad5573

Please sign in to comment.