19445| 18
|
DFRobot Arduino Smart Home kit智能家居语音识别 |
晚上回到家,家里黑漆漆一片,得找到开灯的按钮才算完事,有时候在想,如果灯泡会听话该多好啊,有了这个想法,智能家居就应运而生了,用Arduino打造这么一款智能家居套件并为它取了一个很搞的名字“小米渣”,需要开灯的时候,你只需叫小米渣开灯,小米渣就会立马为你打开电灯并回答:“正在开灯”,小米渣的功能可不止这一个功能哦。 功能介绍: 识别开关灯命令,执行开关灯操作,并语音播报当前状态。 |
我把程式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[url=https://mc.dfrobot.com.cn/forum.php?mod=post&action=reply&fid=48&tid=25&cedit=yes][/url] |
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呢? |
futuremeng 发表于 2014-3-4 15:55 其实我们还有一个产品,就完全是你想要的,请见链接:https://www.dfrobot.com.cn/goods-633.html IIC的语音识别芯片没有哦,都是SPI的。 |
mickey 发表于 2014-4-22 14:29 这个好,当初没有发现 |
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed