Try to add the first natural language processor - 'translate'

This commit is contained in:
Richard Chien
2017-01-02 23:51:19 +08:00
parent b60a7a16eb
commit 882810378d
6 changed files with 128 additions and 7 deletions

View File

@ -80,6 +80,7 @@ def _filter(ctx_msg):
if text:
reply = '识别结果(百度语音识别):\n%s\n\n下面将把识别到的内容作为文字消息处理……' % text
ctx_msg['text'] = text
ctx_msg['from_voice'] = True
else:
reply = '抱歉哦,没有识别出你说的是什么'
core.echo(reply, ctx_msg)