登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 计算机类 > 计算机科学与技术 > 正文

一个中文对话机器人的设计与实现

 2023-01-31 09:01  

论文总字数:19056字

摘 要

早已经进入信息时代的我们,如今已经不满足仅仅让计算机进行机械式的运作,我们人类孤单于没有其他种族可以交流,哪怕很有智慧的动物也无法满足我们想要的,于是近些年来科学家们在不断的科研尝试创造出,具有人类思维的能够对话的机器,我们将其称之为人工智能对话机器人。

围绕一个中文对话机器人设计与实现这一课题做了如下的一些工作:

  1. 对于语音识别我们进行这样的处理,用通过使用枚举人物声音录音将我们说的话进行录音存储,将录音数据转换成字符,然后通过关键词识别语义,通过语法识别语义,然后可以将语音的文字识别出来。
  2. 对于人工智能问答我们进行了图灵机器人api接口的调用,将语音识别出来的文字进行接口调用,通过图灵机器人api对我们的问题进行智能搜索回复,然后将回复在通过接口传给我们的聊天机器人。
  3. 对于机器人的语音输出我们采用了调用Windows平台的TTS技术,即语音朗读文本的技术,通常是使用微软带的Speech API,调用使用 COM对象将从图灵机器人api传回来的回复进行朗读出来,就完成了语音的输出。

对于本课题我们做了自顶向下,逐步求精的设计。本课题设计的功能已经基本实现,对于基本聊天窗体,可以做到按钮功能的正常使用和输入输出,语音识别方面录音和文字转换功能也已经实现,由于是调用接口进行问答,在机器人回答时有零点几秒的延迟,跟网络环境因素有关,然而由于本设计是调用Windows的TTX技术,导致机器人语音回答的过于僵硬,过于机械化,本功能仍需要加强。

关键词:聊天机器人;语音识别;中文对话;人工智能;聊天室

Abstract

We have already entered the information age, but now we are not satisfied with the mechanical operation of computers. We human beings are lonely without other races to communicate. Even intelligent animals can not meet our needs. So in recent years, scientists have been trying to create a machine with human thinking, which can talk. We call it. Dialogue Robot for Artificial Intelligence

The following work on the design and implementation of a Chinese dialogue robot:

1. we deal with speech recognition. We use enumerated voice recordings to record and store what we say, convert the recorded data into characters, then recognize semantics by keywords, semantics by grammar, and then recognize the words of speech.

2. For AI Qamp;A, we call the API interface of the Turing Robot, call the speech recognition words, search and answer our questions intelligently through the Turing Robot api, and then send the reply to our chat robot through the interface.

3. For the voice output of the robot, we adopt TTS technology which calls the Windows platform, that is, voice reading text technology. Usually, we use Speech API with Microsoft, call COM object to read out the reply from the Turing robot api, and complete the voice output.

For this topic, we have made top-down, step-by-step refinement design. The function of this topic has been basically realized. For the basic chat form, the button function can be used normally and input and output can be achieved. The voice recognition recording and text conversion function has also been realized. Because the interface is called to answer questions, there is a delay of a few seconds when the robot answers, which is related to the network environment factors. However, because the designer calls TTX of Windows. Technology leads to the rigidity and mechanization of robot voice response, and this function still needs to be strengthened.

Key words:chat robot; speech recognition; Chinese dialogue; artificial intelligence

目 录

摘要 1

Abstract 2

目 录 3

1 引言 5

1.1 课题开发的背景 5

1.2 国内外发展现状 6

1.3 课题开发的主要工作内容 6

1.4 论文的组织结构 7

2 相关技术基础 8

3 需求分析与总体设计 11

3.1 功能需求分析 11

3.2 非功能需求分析 11

3.3 系统的总体设计 12

3.4 本章小结 13

4 详细设计与实现 14

4.1 编程语言以及环境介绍 14

4.2 聊天窗体的设计与实现 15

4.2 语音识别的设计与实现 17

4.3 人工智能对话的设计与实现 19

4.3 语音输出的设计与实现 21

4.4 本章小结 21

5系统测试 22

5.1 系统的配置 22

5.2 系统的功能需求测试 22

5.3 非功能需求测试 25

5.4 本章小结 26

6 总结与展望 27

致谢 28

参考文献 29

1 引言

课题开发的背景

从上个世纪开始到第一台计算机ENIAC出世以来,计算机可以说是慢慢的走进我们的日常生活当中,随着我们从工业时代走进了信息时代,从信息时代走进了网络全互联时代,全世界变成了一个大家庭,通过网络让彼此间的紧密联系起来了。现在,各种各样的网络聊天应用越来越普及,也越来越受到大家喜爱。像国际上的MSN和国内的QQ,微信等,身受广大人名群众的欢迎。

MSN是微软公司的一个产品之一,它的功能是可以将文字,语音,视频等方式,让网络上的人们进行无视距离的沟通交流。这一创造性的功能让很多人的思维得到了开启,更多的人喜欢这样与全球各地的人们进行交流,而且其协议是开放的,也就是说其他人可以通过它来制造新的程序用于网络交互,于是MSN机器人便这样诞生了,MSN机器人是以联系人形式出现的,可以通过添加MSN账号的方式便可以像真人一样和机器人进行对话,聊天,并能实现一些简单功能,比如查询天气,地图之类的。

剩余内容已隐藏,请支付后下载全文,论文总字数:19056字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图