DFRobot Arduino Smart Home kit智能家居语音识别
晚上回到家,家里黑漆漆一片,得找到开灯的按钮才算完事,有时候在想,如果灯泡会听话该多好啊,有了这个想法,智能家居就应运而生了,用Arduino打造这么一款智能家居套件并为它取了一个很搞的名字“小米渣”,需要开灯的时候,你只需叫小米渣开灯,小米渣就会立马为你打开电灯并回答:“正在开灯”,小米渣的功能可不止这一个功能哦。功能介绍:
识别开关灯命令,执行开关灯操作,并语音播报当前状态。
识别温湿度读取命令,并语音播报当前温湿度情况。
实时监测危险气体,一旦检测到立即报警并语音播报危险情况。
未有识别时不做操作,识别命令有误时播报“请问您在说什么?”。
你也可以考考小米渣:“需要开灯吗?”,系统就会对环境光线进行检测,光线暗的情况下,小米渣会提醒你:“光线不足,正在开灯”然后开灯,如果光线明亮时,小米渣会说:“光线明亮,不需要开灯”保持灯在关的状态(判断光线强弱的阈值在程序中进行设置,用户可以自行修改)。
语音合成模块做的?淘宝上看到了
有程序的例子吗?想学学:) 想学习一下,曾经有个想法是搞个家居的智能化系统。 套件有例程。智能家居自己做,很不错的套件哦,还可以自己增加传感器。 淘宝地址;https://item.taobao.com/item.htm? ... ysk&id=14138585871& USB驱动安装不了?
下载新版的arduino IDE!可以安装驱动。
我把程式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 我把程式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
库没有找到,看看类库是不是在Arduino Library 目录下面 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
语音识别和语音合成做到一块板子上或者,前者可以插后者,这样就好了。另外,语音识别占用的IO好多,是否可以用I2C呢? 可以增加语音识别开关窗帘吗?也就是增加两个语音控制继电器? chu 发表于 2014-3-24 14:06
可以增加语音识别开关窗帘吗?也就是增加两个语音控制继电器?
这是完全可以的,设置开或关窗帘的关键字,在程序中设置好触发就基本可以了。 Youyou 发表于 2014-3-24 17:37
这是完全可以的,设置开或关窗帘的关键字,在程序中设置好触发就基本可以了。 ...
它没有那么灵敏,一般开口音还可以,其他的有点困难。
需要设置其他容易辨认的关键字才能识别。 futuremeng 发表于 2014-3-4 15:55
语音识别和语音合成做到一块板子上或者,前者可以插后者,这样就好了。另外,语音识别占用的IO好多,是否可 ...
其实我们还有一个产品,就完全是你想要的,请见链接:https://www.dfrobot.com.cn/goods-633.html
IIC的语音识别芯片没有哦,都是SPI的。 mickey 发表于 2014-4-22 14:29
其实我们还有一个产品,就完全是你想要的,请见链接:https://www.dfrobot.com.cn/goods-633.html
IIC的语 ...
这个好,当初没有发现 语音识别功能好像无法解决一个实际问题,即通过实时语音判断结果跳出一个动作循环语句。 比如我想通过语音识别结果,实现对开灯,关灯和闪烁三种状态的实时切换时,好像就无法实现了。开灯和关灯这两个动作不是循环语句,很容易就实现了,但闪烁是一个循环执行语句,一旦通过语音识别进入闪烁模式后,即进入了二级动作子循环,就无法再正常执行语音识别了。mind+程序如下,一旦进入闪烁就进入跳不出来了,自己才疏学浅,一直也没想出比较好的解决方案...
Jerrykyu 发表于 2021-5-28 23:32
语音识别功能好像无法解决一个实际问题,即通过实时语音判断结果跳出一个动作循环语句。 比如我想通过语音 ...
把语音识别放在循环里
页:
[1]