You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# create an recognizer
rcg=Funasr_websocket_recognizer(host="127.0.0.1",port="10098",is_ssl=False,mode="2pass",chunk_size="5, 10, 5",chunk_interval=2)
# loop to send chunk
for i in range(chunk_num):
beg = i * stride
data = audio_bytes[beg:beg + stride]
text=rcg.feed_chunk(data,wait_time=0.02)
if len(text)>0:
print("text",text)
time.sleep(0.05)
# get last message
text=rcg.close(timeout=3)
print("text",text)
版本:funasr:funasr-runtime-sdk-gpu-0.2.0
模式:2pass
启动方式:
python客户端代码:
这里出来一整段语音识别,没有流式语音了
The text was updated successfully, but these errors were encountered: