Skip to content

Commit 591ae49

Browse files
committed
fix: XF stt model
1 parent 21a38e2 commit 591ae49

File tree

1 file changed

+2
-2
lines changed
  • apps/models_provider/impl/xf_model_provider/model

1 file changed

+2
-2
lines changed

apps/models_provider/impl/xf_model_provider/model/zh_en_stt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ async def handle_message(self, ws):
208208
text_data = json.loads(base64.b64decode(text).decode('utf-8'))
209209
for ws_item in text_data.get('ws', []):
210210
for cw in ws_item.get('cw', []):
211-
for sw in cw.get('sw', []):
212-
result_text += sw['w']
211+
for sw in cw.get('w', []):
212+
result_text += sw
213213

214214
if data['header'].get('status') == 2:
215215
break

0 commit comments

Comments
 (0)