2012-6-29 10:33:40 [显示全部楼层]
19098浏览
查看: 19098|回复: 18

DFRobot Arduino Smart Home kit智能家居语音识别

[复制链接]
晚上回到家,家里黑漆漆一片,得找到开灯的按钮才算完事,有时候在想,如果灯泡会听话该多好啊,有了这个想法,智能家居就应运而生了,用Arduino打造这么一款智能家居套件并为它取了一个很搞的名字“小米渣”,需要开灯的时候,你只需叫小米渣开灯,小米渣就会立马为你打开电灯并回答:“正在开灯”,小米渣的功能可不止这一个功能哦。
功能介绍:

识别开关灯命令,执行开关灯操作,并语音播报当前状态。
识别温湿度读取命令,并语音播报当前温湿度情况。
实时监测危险气体,一旦检测到立即报警并语音播报危险情况。
未有识别时不做操作,识别命令有误时播报“请问您在说什么?”。
你也可以考考小米渣:“需要开灯吗?”,系统就会对环境光线进行检测,光线暗的情况下,小米渣会提醒你:“光线不足,正在开灯”然后开灯,如果光线明亮时,小米渣会说:“光线明亮,不需要开灯”保持灯在关的状态(判断光线强弱的阈值在程序中进行设置,用户可以自行修改)。

DFRobot Arduino Smart Home kit智能家居语音识别图1


lmaq  学徒

发表于 2012-8-19 15:22:44

语音合成模块做的?淘宝上看到了
有程序的例子吗?想学学:)
回复

使用道具 举报

zhqh  学徒

发表于 2012-11-10 11:40:22

想学习一下,曾经有个想法是搞个家居的智能化系统。
回复

使用道具 举报

mickey  NPC

发表于 2012-11-13 13:09:57

套件有例程。智能家居自己做,很不错的套件哦,还可以自己增加传感器。
回复

使用道具 举报

mickey  NPC

发表于 2012-11-13 13:16:30

回复

使用道具 举报

8879576  学徒

发表于 2013-3-22 14:20:57

USB驱动安装不了?
回复

使用道具 举报

mickey  NPC

发表于 2013-4-5 00:17:32

下载新版的arduino IDE!可以安装驱动。
回复

使用道具 举报

ruth  学徒

发表于 2013-6-21 11:31:08

我把程式COPY后,点验证,出现如下提示:(,请高人帮忙看看怎么解决?谢谢啦!:P
‘syn6288’does not name a type
sketch_jun21c.ino:8:21: error: Syn6288.h: No such file or directory
sketch_jun21c:10: error: 'Syn6288' does not name a type
sketch_jun21c:14: error: 'uint8' does not name a type
sketch_jun21c.ino: In function 'void finally(unsigned char)':
sketch_jun21c:103: error: 'syn' was not declared in this scope
sketch_jun21c.ino: In function 'void ExtInt0Handler()':
sketch_jun21c:190: error: 'Voice' was not declared in this scope
sketch_jun21c.ino: In function 'void setup()':
sketch_jun21c:197: error: 'Voice' was not declared in this scope
sketch_jun21c:197: error: 'MIC' was not declared in this scope
sketch_jun21c:197: error: 'VoiceRecognitionV1' was not declared in this scope
sketch_jun21c.ino: In function 'void loop()':
sketch_jun21c:208: error: 'uint8' was not declared in this scope
sketch_jun21c:208: error: expected `;' before 'nAsrRes'
sketch_jun21c:209: error: 'nAsrStatus' was not declared in this scope
sketch_jun21c:209: error: 'LD_ASR_NONE' was not declared in this scope
sketch_jun21c:217: error: 'syn' was not declared in this scope
sketch_jun21c:223: error: 'LD_ASR_RUNING' was not declared in this scope
sketch_jun21c:224: error: 'LD_ASR_ERROR' was not declared in this scope
sketch_jun21c:226: error: 'LD_ASR_NONE' cannot appear in a constant-expression
sketch_jun21c:229: error: 'Voice' was not declared in this scope
sketch_jun21c:239: error: 'LD_ASR_FOUNDOK' was not declared in this scope
sketch_jun21c:242: error: 'nAsrRes' was not declared in this scope
sketch_jun21c:242: error: 'Voice' was not declared in this scope
sketch_jun21c:248: error: 'LD_ASR_FOUNDZERO' was not declared in this scope
回复

使用道具 举报

ruth  学徒

发表于 2013-6-21 11:39:48

我把程式COPY后,点验证,出现如下提示:(,请高人指点。。。谢谢啦!:P
‘syn6288’does not name a type
sketch_jun21c.ino:8:21: error: Syn6288.h: No such file or directory
sketch_jun21c:10: error: 'Syn6288' does not name a type
sketch_jun21c:14: error: 'uint8' does not name a type
sketch_jun21c.ino: In function 'void finally(unsigned char)':
sketch_jun21c:103: error: 'syn' was not declared in this scope
sketch_jun21c.ino: In function 'void ExtInt0Handler()':
sketch_jun21c:190: error: 'Voice' was not declared in this scope
sketch_jun21c.ino: In function 'void setup()':
sketch_jun21c:197: error: 'Voice' was not declared in this scope
sketch_jun21c:197: error: 'MIC' was not declared in this scope
sketch_jun21c:197: error: 'VoiceRecognitionV1' was not declared in this scope
sketch_jun21c.ino: In function 'void loop()':
sketch_jun21c:208: error: 'uint8' was not declared in this scope
sketch_jun21c:208: error: expected `;' before 'nAsrRes'
sketch_jun21c:209: error: 'nAsrStatus' was not declared in this scope
sketch_jun21c:209: error: 'LD_ASR_NONE' was not declared in this scope
sketch_jun21c:217: error: 'syn' was not declared in this scope
sketch_jun21c:223: error: 'LD_ASR_RUNING' was not declared in this scope
sketch_jun21c:224: error: 'LD_ASR_ERROR' was not declared in this scope
sketch_jun21c:226: error: 'LD_ASR_NONE' cannot appear in a constant-expression
sketch_jun21c:229: error: 'Voice' was not declared in this scope
sketch_jun21c:239: error: 'LD_ASR_FOUNDOK' was not declared in this scope
sketch_jun21c:242: error: 'nAsrRes' was not declared in this scope
sketch_jun21c:242: error: 'Voice' was not declared in this scope
sketch_jun21c:248: error: 'LD_ASR_FOUNDZERO' was not declared in this scope[url=https://mc.dfrobot.com.cn/forum.php?mod=post&action=reply&fid=48&tid=25&cedit=yes][/url]
回复

使用道具 举报

Ricky  NPC

发表于 2013-6-21 12:02:38

库没有找到,看看类库是不是在Arduino Library 目录下面
回复

使用道具 举报

ruth  学徒

发表于 2013-6-21 14:41:30

Ricky,谢谢:)这个问题解决了,可是验证还是失败,请再帮忙指点,偶是初学者,菜鸟级,请各位多关照啦~~
invalid conversion form 'int8_t*' to'uint8_t*'
In file included from sketch_jun21a.ino:7:
C:\Documents and Settings\My Documents\Arduino\libraries\Voice/Voice.h:83: error: 'byte' does not name a type
C:\Documents and Settings\My Documents\Arduino\libraries\Voice/Voice.h:123: error: 'byte' does not name a type
In file included from sketch_jun21a.ino:8:
C:\Documents and Settings\My Documents\Arduino\libraries\Syn6288/Syn6288.h:19: error: 'byte' does not name a type
sketch_jun21a.ino: In function 'void finally(unsigned char)':
sketch_jun21a:116: error: invalid conversion from 'int8_t*' to 'uint8_t*'
sketch_jun21a:116: error: initializing argument 1 of 'void Syn6288::play(uint8_t*, uint8_t, uint8_t)'
sketch_jun21a:119: error: invalid conversion from 'int8_t*' to 'uint8_t*'
sketch_jun21a:119: error: initializing argument 1 of 'void Syn6288::play(uint8_t*, uint8_t, uint8_t)'
sketch_jun21a:125: error: invalid conversion from 'int8_t*' to 'uint8_t*'
sketch_jun21a:125: error: initializing argument 1 of 'void Syn6288::play(uint8_t*, uint8_t, uint8_t)'
sketch_jun21a.ino: In function 'void setup()':
sketch_jun21a:197: error: 'VoiceRecognitionV1' was not declared in this scope


回复

使用道具 举报

futuremeng  见习技师

发表于 2014-3-4 15:55:44

语音识别和语音合成做到一块板子上或者,前者可以插后者,这样就好了。另外,语音识别占用的IO好多,是否可以用I2C呢?
回复

使用道具 举报

chu  学徒

发表于 2014-3-24 14:06:50

可以增加语音识别开关窗帘吗?也就是增加两个语音控制继电器?
回复

使用道具 举报

Youyou  初级技匠

发表于 2014-3-24 17:37:27

chu 发表于 2014-3-24 14:06
可以增加语音识别开关窗帘吗?也就是增加两个语音控制继电器?

这是完全可以的,设置开或关窗帘的关键字,在程序中设置好触发就基本可以了。
回复

使用道具 举报

Grey  中级技匠

发表于 2014-3-24 18:21:48

Youyou 发表于 2014-3-24 17:37
这是完全可以的,设置开或关窗帘的关键字,在程序中设置好触发就基本可以了。 ...

它没有那么灵敏,一般开口音还可以,其他的有点困难。
需要设置其他容易辨认的关键字才能识别。
回复

使用道具 举报

mickey  NPC

发表于 2014-4-22 14:29:54

futuremeng 发表于 2014-3-4 15:55
语音识别和语音合成做到一块板子上或者,前者可以插后者,这样就好了。另外,语音识别占用的IO好多,是否可 ...

其实我们还有一个产品,就完全是你想要的,请见链接:https://www.dfrobot.com.cn/goods-633.html
IIC的语音识别芯片没有哦,都是SPI的。
回复

使用道具 举报

futuremeng  见习技师

发表于 2014-5-17 00:45:53

mickey 发表于 2014-4-22 14:29
其实我们还有一个产品,就完全是你想要的,请见链接:https://www.dfrobot.com.cn/goods-633.html
IIC的语 ...

这个好,当初没有发现
回复

使用道具 举报

Jerrykyu  学徒

发表于 2021-5-28 23:32:38

语音识别功能好像无法解决一个实际问题,即通过实时语音判断结果跳出一个动作循环语句。 比如我想通过语音识别结果,实现对开灯,关灯和闪烁三种状态的实时切换时,好像就无法实现了。开灯和关灯这两个动作不是循环语句,很容易就实现了,但闪烁是一个循环执行语句,一旦通过语音识别进入闪烁模式后,即进入了二级动作子循环,就无法再正常执行语音识别了。mind+程序如下,一旦进入闪烁就进入跳不出来了,自己才疏学浅,一直也没想出比较好的解决方案...
DFRobot Arduino Smart Home kit智能家居语音识别图1
回复

使用道具 举报

克梦  学徒

发表于 2021-8-19 09:49:01

Jerrykyu 发表于 2021-5-28 23:32
语音识别功能好像无法解决一个实际问题,即通过实时语音判断结果跳出一个动作循环语句。 比如我想通过语音 ...

把语音识别放在循环里
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail