We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21a38e2 commit 591ae49Copy full SHA for 591ae49
apps/models_provider/impl/xf_model_provider/model/zh_en_stt.py
@@ -208,8 +208,8 @@ async def handle_message(self, ws):
208
text_data = json.loads(base64.b64decode(text).decode('utf-8'))
209
for ws_item in text_data.get('ws', []):
210
for cw in ws_item.get('cw', []):
211
- for sw in cw.get('sw', []):
212
- result_text += sw['w']
+ for sw in cw.get('w', []):
+ result_text += sw
213
214
if data['header'].get('status') == 2:
215
break
0 commit comments