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
audio_data=base64.b64decode(request_body.audio)
# get single engine from engine poolengine_pool=get_engine_pool()
asr_engine=engine_pool['asr']
ifasr_engine.engine_type=="python":
frompaddlespeech.server.engine.asr.python.asr_engineimportPaddleASRConnectionHandlerelifasr_engine.engine_type=="inference":
frompaddlespeech.server.engine.asr.paddleinference.asr_engineimportPaddleASRConnectionHandlerelse:
logger.error("Offline asr engine only support python or inference.")
sys.exit(-1)
connection_handler=PaddleASRConnectionHandler(asr_engine)
connection_handler.run(audio_data)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
General Question
代码和文档说明不对等,文档里的接口如下:
语音识别
POST /paddlespeech/asr
代码接口使用如下
不知道是不是我理解错了,但是从文档和代码来看,audio之外的参数,都是没有任何意义的。是代码没有更新吗,还是说代码没有实现这些功能,但是未来会加上。
The text was updated successfully, but these errors were encountered: