MCPcopy Index your code
hub / github.com/FunAudioLLM/Fun-ASR / recv_results

Function recv_results

client_python.py:128–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 await ws.send(chunk.tobytes())
127
128 async def recv_results():
129 async for msg in ws:
130 data = json.loads(msg)
131 if "sentences" in data:
132 print_result(data, show_spk=args.spk)
133 if data.get("is_final") or data.get("event") == "stopped":
134 break
135
136 send_task = asyncio.create_task(send_audio())
137 recv_task = asyncio.create_task(recv_results())

Callers 2

run_micFunction · 0.85
run_fileFunction · 0.85

Calls 1

print_resultFunction · 0.85

Tested by

no test coverage detected