YS-V0.7一体化语音识别模块使用手册
YT07语音模块说明书
设备ID为本语音模块设备编码,通过录音软件设定。取值范围0-255。
485网络中有多个语音模块,通过设备ID区别模块。
5.
工作电源电压:直流9~24V
最大电流:150MA
工作温度:-20~85℃
音频输出功率:8欧3W 4欧3W
6.常见问题和注意事项
4
指示灯待命时闪动,触发后也没有反应,仍然闪动。
1、设置的控制方式不对。
2、只有第一段声音有效:公共端是8号端子,可能是误把1号端子当成公共端了。
5
指示灯待命时闪动,触发后有一段时间常亮,但是没有一点声音。
1、调整蓝色可调电阻音量。逆时针音量增大。
2、喇叭未接好,需要连接8欧喇叭,接在指定的端子上。
图4-3:闭合播放一次
4.1.2
单个控制触点与公共触点保持闭合时,播放语音。播完一遍之后,检测触点如果仍然保持闭合,则继续播放。如果多个触点符合条件,只检测较靠前的触点。
图4-4:闭合循环播放
4.1.3
单个控制触点与公共触点由闭合跳变断开时,只触发一次播放。如果始终保持断开,不再触发播放。
图4-5:断开播放一次
2、模块录音过程中不能进行放音操作,电脑软件不要进行其他操作。只等录音完成。
3、放音时,手碰到电路上引起干扰,手移开杂音就可以消失。
4、有交流声杂音,电源绞波太大,更换电源或并联加大电容滤波。
语音模块使用说明书
(型号:YT07)
YT07语音模块是千目电子推出的一款普及型语音播放模块。具有价格低、稳定可靠、可重复录音、开关触点控制、宽电源电压、体积小等特点。主要控制放音有两种:通过7组触点控制、485串行总线。
YS-LDV7语音识别模块使用手册
飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)LDV7语音识别模块使用手册目录1、初次使用测试步骤 (3)2、配套程序识别命令修改步骤 (4)(1)添加关键词和识别码 (4)(2)定义识别码 (5)(3)修改处理函数 (5)3、与单片机设备串口通讯 (7)4、程序下载说明 (8)5、灵敏度(识别距离)调节说明 (8)5、其他说明 (9)6、注意事项 (9)飞音云电子技术支持:751956552@网络销售:乐声001(阿里旺旺ID)1、初次使用测试步骤(1)按照图1所示,连接USB下载器,接上GND、RXD、TXD、5V,注意RXD/TXD必须交叉连接,才能进行一收一发通信,在PC机上打开串口调试工具,设定波特率为Array 9600bit/s。
(2)将USB下载器连接到PC机,查看该下载器在PC机中占用的串口通道,然后对应选择调试工具的串口号,设定后,重新给模块通上电源(拔下GND连接线,再重新连接,(图1)即可以重新上电,下载程序时冷启动也是一样的操作),这时,调试工具接收窗口将打印出相关口令。
(3)本模块出厂默认下载的是口令模式程序,用户根据串口所示的口令内容,先对着咪头发一级口令(“小杰”),待板上的D1灯点亮后,可以开始对其他二级口令的识别,如此循环操作识别。
识别操作。
如识别成功,则有相关反馈信息。
(4)调试完毕(5)测试好模块后可以与其他单片机设备进行通讯,连接方式和测试方法与在PC机调试一样。
飞音云电子技术支持:751956552@网络销售:乐声001(阿里旺旺ID)飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)2、配套程序识别命令修改步骤(1)添加关键词和识别码打开程序,在LDChip.C 文件中找到uint8LD_AsrAddFixed()函数,在该函数里面可以找到如下图所示内容:----根据关键词的数量和长度修改宏定义DATE_A 和DATE_B ,例如您要添加10个关键词,在这些关键词中最长的一句长度为30,那么定义如下:#define DATE_A 10#define DATE_B 30---sRecog[][]数组为关键词数组,添加内容为拼音输入方式,例如想添加“开灯”命令,则写入“kai deng ”,每个汉字间的拼音用空格隔开。
河西电子7英寸TFT显示模块说明书
ITEM CONTENTS UNIT LCD Type TFT/Transmissive/Normally Black/IPS / Size 7.0 Inch Viewing Direction Free / Outside Dimensions (W x H x D) 181.60 x 100.60 x 17.75 mm Active Area (W x H) 154.21 x 85.92 mm Pixel Pitch (W x H) 0.1506 x 0.1432 mm Resolution 1024 x 600 / Brightness 1000 cd/m 2 Color Depth 16.7 M / Pixel Arrangement RGB Vertical Stripe / Driver IC of Board STM32H747XIH6 / External SDRAM 64Mbit (32-bit access) / External Flash Memory 512Mbit / Supply Voltage for Module 6.0 - 36.0 V With/Without Touch Without Touch Panel / Weight TBD g STM32 EMBEDDED 7.0" DISPLAY DATASHEET RVT70HSSFWN00 Rev.0.1 2022-03-28 F T M O D U L E S P E C I F I C A T I O N Note 1: RoHS3 compliant Note 2: LCM weight tolerance: ± 5%.REVISION RECORDREV NO. REV DATE CONTENTS REMARKS0.1 2022-03-28 Preliminary versionCONTENTSREVISION RECORD (2)CONTENTS (3)MODULE CLASSIFICATION INFORMATION (4)ASSEMBLY GUIDE (5)MODULE DRAWING (6)ABSOLUTE MAXIMUM RATINGS (7)ELECTRICAL CHARACTERISTICS (7)BACKLIGHT ELECTRICAL CHARACTERISTICS (7)ELECTRO-OPTICAL CHARACTERISTICS (8)BOARD INTERFACES AND CONNECTORS (10)USER INTERFACES (16)DISPLAY SEPCIFICATION (17)INSPECTION (17)RELIABILITY TEST (19)LEGAL INFORMATION (20)MODULE CLASSIFICATION INFORMATIONRV T 70 H S S F W N 00 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.ASSEMBLY GUIDEMounting frameFor dimensions 3.5”, 4.3”, 5.0”, 7.0” and 10.1”, the product with mounting frame version is available. Thanks to the four catches attached to the side, frame provides strong assembly to the surface by mounting element (like the screw, see Figure 1). The frames are specially designed to fit Riverdi products perfectly. The diameter of the mounting hole is 3.5mm.Figure 1. Mounting frameABSOLUTE MAXIMUM RATINGSPARAMETER SYMBOL MIN MAX UNIT NOTESupply Voltage for Module VDD 0.0 48.0V Note 1Digital I/O signals Voltage - -0.5 3.3 Note 1,2Operating Temperature T OP-20 70 °CStorage Temperature T ST-30 80 °CStorage Humidity (@ 25 ± 5°C) H ST10 - % RHOperating Ambient Humidity (@ 25 ± 5°C) H OP10 - % RHNote 1. Exceeding maximum values may cause improper operation or permanent damageto the unit.Note 2. Most of the GPIOs have the 5.0 V tolerant input voltage, please refer to the datasheetof STM32H747XIH6 for more details.ELECTRICAL CHARACTERISTICSPARAMETER SYMBOL MIN TYP MAX UNIT Supply Voltage for Module VDD_IN 6.0 12.0 36.0 VPOWER‘ENABLE’ = ‘0’***************************I VDD_IN=6.0 V TBD TBD TBD uA ****************************I VDD_IN=12.0 V TBD TBD TBD uA ****************************I VDD_IN=24.0 V TBD TBD TBD uA ****************************I VDD_IN=36.0 V TBD TBD TBD uAPOWER‘ENABLE’ = ‘1’***************************I VDD_IN=6.0 V TBD TBD TBD mA ****************************I VDD_IN=12.0 V TBD TBD TBD mA ****************************I VDD_IN=24.0 V TBD TBD TBD mA ****************************I VDD_IN=36.0 V TBD TBD TBD mAInput Voltage “H” Level V IH 2.0 - 3.3 V Input Voltage “L” Level V IL 0 - 0.8 V Note. POWER ‘ENABLE’ refers to pin 4, ‘ENABLE’ of the power input connector(P2).By default, POWER ‘ENABLE’ = ‘1’,When POWER ‘ENABLE’ = ‘0’, the device is turned off.BACKLIGHT ELECTRICAL CHARACTERISTICSPARAMETER SYMBOL MIN TYP MAX UNIT NOTE Lifetime - - 50,000 - hours Note 1Note 1. Operating life means the period in which the LED brightness goes down to 50% ofthe initial brightness. Typical operating lifetime is the estimated parameter.ELECTRO-OPTICAL CHARACTERISTICSITEM SYMBOL CONDITION MIN TYP MAX UNIT RMK NOTEResponse Time Tr+Tfθ=0°∅=0° - 35 35 ms FIG 2. 4Contrast Ratio Cr 800 1000 - --- FIG 3. 1 Luminance δ- 75 - % FIG 3. 3 Figure 3.Contrast Ratio =Average Surface Luminance with all white pixels (P1,P2,P3,P4,P5) Average Surface Luminance with all black pixels (P1,P2,P3,P4,P5)Note 2.Surface luminance is the LCD surface from the surface with all pixels displaying white. For more information see Figure 3.Lv = Average Surface Luminance with all white pixels (P1, P2, P3, P4, P5)Note 3.The uniformity in surface luminance δWHITE is determined by measuring luminance at each test position 1 through 5, and then dividing the minimum luminance of 5 points luminance by maximum luminance of 5 points luminance. For more information see Figure 3.δ WHITE =Minimum Surface Luminance with all white pixels (P1,P2,P3,P4,P5) Maximum Surface Luminance with all white pixels (P1,P2,P3,P4,P5)Note 4. Response time is the time required for the display to transition from white to black (Rise Time, Tr) and from black to white (Decay Time, Tf). For additional information see Figure 2. The test equipment is Autronic-Melchers’s ConoScope series.Note 5. CIE (x, y) chromaticity, the x, y value is determined by measuring luminance at each test position 1 through 5, and then calculating the average value.Note 6. Viewing angle is the angle at which the contrast ratio is greater than 2. For TFT module the contrast ratio is greater than 10. The angles are determined for the horizontal or x axis and the vertical or y axis with respect to the z axis which is normal to LCD surface. For more information see Figure 4.Note 7. For viewing angle and response time testing, the testing data is based on Autronic-Melchers’s ConoScope series. Instruments for Contrast Ratio, Surface Luminance, Luminance Uniformity, CIE the test data is based on TOPCON’s BM-5 photo detector.Figure 2. The definition of response timeFigure 3. Measuring method for Contrast ratio, surface luminance, Luminance uniformity, CIE (x, y) chromaticityA: 5mmB: 5mmH, V: Active AreaLight spot size ∅=5mm, 500mm distancefrom the LCD surface to detector lens.Measurement instrument is TOPCON’Sluminance meter BM-5Figure 4. The definition of viewing angleBOARD INTERFACES AND CONNECTORSPower input connectorThe 1.25mm, 6-pin Molex connector labeled as “POWER’ (P2) is power input connector. There is an internal reverse polarity protection which ensures that the device is not damaged if the power supply polarity is reversed.NO. PIN DESCRIPTION NOTE1 VDD_IN Power supply input; 6.0-36.0VNote 12 VDD_IN Power supply input; 6.0-36.0V3 VDD_IN Power supply input; 6.0-36.0V4 ENABLE Enable/ Disable power supply. Note 25 GND Ground6 GND GroundNote 1: STM32 Embedded Display allows to directly connect one additional display to the system. There is RiBUS connector on the board where you can connect any of intelligent display from Riverdi based on EVE4 (BT817Q). However, please note that it may change power supply requirement as below:The power supply voltage must range between 7.0V- 14.0 V (TYP. 9.0 V), if Riverdi EVE4 10.1” series display is connected through RiBUS. At the same time, jumper P5 shall be configured according to subchapter 10.8, note 1.The power supply voltage ranges between 6.0 V- 36.0V if any of Riverdi EVE4 3.5”,4.3”,5.0” and 7.0” series display is connected through RiBUS. At the same time, jumper P12 shall be configured according to subchapter 10.8, note 1.Note 2: By default, pin “ENABLE” is pulled up to VDD and enabled. To disable, ground the pin to turn off the device completely.USB interfaceThe 1.25mm, 5-pin Molex connector labeled as “USB’ (P10) is USB interface.NO. PIN DESCRIPTION NOTE1 VCC_USB Power supply2 D- USB data-3 D+ USB data+4 ID USB OTG ID; Host /Device detect Note 15 GND GroundNote 1. Configuration of the USB Host/Device mode:Host Mode: Pin 4 (ID) should be connected to GND.In this mode, it can provide +5V output voltage to the connected USB device and Max output current 500 mA.Device Mode: Pin 4 (ID) should be not connected (floating).RS485 interfaceThe 1.25mm, 4-pin Molex connector labeled as “RS485’ (P3) is RS485 interface.NO. PIN DESCRIPTION NOTE1 VDD_IN Power supply input; 6.0-36.0V2 A Non-inverting receiver input and non-inverting driver output3 B Inverting receiver input and inverting driver output4 GND GroundRS232 interfaceThe 1.25mm, 5-pin Molex connector labeled as “RS232’ (P1) is RS232 interface.NO. PIN DESCRIPTION NOTE1 RTS Request to send2 CTS Clear to send3 TXD Transmit Data4 RXD Receive Data5 GND Ground2 x CAN FD interfacesThe main board supports 2 channels of the CANFD (Control Area Network Flexible Data-Rate) communication bus, based on the high-speed (2.5-8.0Mbps) CAN transceiver.2 pcs of 1.25mm, 4-pin Molex connectors labeled as “CAN1’ (P11) and “CAN2” (P15) are respectively interfaces of CAN FD1 and CAN FD2.NO. PIN DESCRIPTION NOTE1 GND Ground2 CAN_L CAN Low-Level Voltage3 CAN_H CAN High-Level Voltage4 VDD_IN Power supply input; 6.0 – 36.0 VHaptic feedback connectorThe 1.25mm, 2-pin Molex connector labeled as “HAPTIC’ (P7) is haptic feedback connector. Haptic feedback P7 is used to connect with the haptic motor directly.NO. PIN DESCRIPTION NOTE1 OUT- Negative haptic driver differential outputNote 12 OUT+ Positive haptic driver differential outputNote 1: The haptic driver DRV2605L is controlled directly by I2C protocolSWD (Serial Wire Debug) connectorThe 1.25mm, 6-pin Molex connector labeled as ‘SWD’ (P6) is SWD interface, which is used for programing the MCU on board.NO. PIN DESCRIPTION NOTE1 VCC_+3.3V Power input2 SW_CLK Serial wire clock3 GND Ground4 SW_DIO Serial wire debug data input/output5 RST Reset; Active low6 SWO Serial wire trace outputRiBUSAny size of the Riverdi EVE4 series display can be connected through RiBUS to act as a slave module to the mainboard.NO. PIN DESCRIPTION NOTE1 VCC_+3.3V Supply voltage for module; TYP3.3Vbetween 7.0 - 14.0V (TYP. 9V).For Riverdi EVE4 series display ranging from sizes of 3.5” to 7.0”, the backlight voltage (BLVDD) shall be 5.0V.Backlight jumper selectors, P5 and P12, labeled as “BLVDD SEL EXT”and “BLVDD SEL INT are used to configure the backlight voltage range.Warning! Jumper configuration shall be done when module is not powered.DO NOT change ANY jumpers while the module has power. Improper operation might cause permanent damage to the unit.Please pay special attention to not misplace the jumpers. Incorrect jumpers setting may lead to damage to the module as well.The P5, P12 jumpers setting are shown below.Table 1. Internal backlight selector P12 setting: 5.0V (default) backlight voltageSETTING P5, PIN 1 &2P5, PIN 3 &4P12, PIN 1 &2P12, PIN 3 &45.0V (Default) Open Open Short ShortTable 2. External backlight selector P5 setting: 7.0V-14.0V backlight voltageSETTING P5, PIN 1 &2P5, PIN 3 &4P12, PIN 1 &2P12, PIN 3 &47.0V - 14.0 V Short Short Open OpenExpansion connectorThe main board has one 1.27mm, 40-pin expansion pin header which is labeled as “EXPANSION CONNECTOR’ (P8).It provides direct access to below GPIOs of MCU STM32H747XIH6,which make it possible to easily extend a daughterboard for a specific application.• 2 x I2C• 1 x UART• 1 x USART• 1 x SPI• 1 x USB•7 x PWMs• 2 x DACs (Digital-to-analog)• 2 x ADCs (Analog-to-digital)Each of the GPIO pins can be configured by software as output (push-pull or open-drain, with or without pull-up or pull-down), as input (floating, with or without pull-up or pull-down) or as peripheral alternate function. Most of the GPIO pins are shared with digital or analog alternate functions. Please refer to the datasheet of MCU STM32H747XIH6 for more details.I/O/P PIN NAME NO. NO. PIN NAME I/O/PP VCC_+5V 1 2 VCC_+3.3V PP VCC_+5V 3 4 VCC_+3.3V PI/O PA5 5 6 GND PP GND 7 8 PA4 I/OI/O PE4 9 10 PD11 I/OI/O PK1 11 12 PB10 I/OI/O PD12 13 14 PC7 I/OI/O PD13 15 16 PA3 I/OP GND 17 18 GND PI/O PC2 19 20 PA0_C I/OI/O PC3 21 22 PA1_C I/OI/O PA12 23 24 PC2_C I/OI/O PA9 25 26 PC3_C I/OI/O PA10 27 28 GND PI/O PJ8 29 30 PC13 I/OI/O P18 31 32 PA8 I/OI/O PJ10 33 34 PB11 I/OI/O PB0 35 36 PH4 I/OI/O PC6 37 38 PB12 I/OI/O PB14 39 40 PB15 I/ONote 1. ***************************from pin 1 and pin3 is maximum 1A.********************************************************.Note 2.The ‘USR LED’ is connected to pin 33, PJ10, of the expansion connector.By default, the resistor R60, (0402, 1k ohms) is soldered. Please remove R60 to useGPIO channel PJ10.Note 3. Push button BTN2(S2) is connected to pin 35, PB0, of the expansion connector. Please remove R58 to use GPIO channel PB0.Push button BTN1(S1) is connected to pin 37, PC6, of the expansion connector.Please remove R57 to use GPIO channel PC6.Micro SD slotThe mainboard is equipped with Micro-SD slot, which supports all types of Micro SD cards.2 x 20-pin, 1.27 mm pin sockets for POE Add-on BoardThe 2 x 20-pin, 1.27 mm, pin sockets, labeled as U9a and U9b, are used to connect the Riverdi POE Add-on Board.The Riverdi POE Add-on Board features 10/100M Ethernet Port with Power-Over-Ethernet enabled. It allows you to power the module through the Ethernet port.Note. The Riverdi POE Add-on Board is offered as an accessory.USER INTERFACES3 x push buttonsPush button labeled as “RST” is used to “RESET” the module.Another 2 push buttons labeled as BTN1, BTN2 are for user’s development.•BTN1(S1) is connected to pin 37, PC6, of the expansion connector.•BTN2(S2) is connected to pin 35, PB0, of the expansion connector.By default, pushbuttons BTN1(S1), BTN2(S2) are enabled. To use GPIO channel PC6 and PB0, R57 and R58 should be removed.3 x LEDs1 x LED, labeled as ‘PWR LED’, emits green light when the modules is powered.1 x LED, labeled as ‘USB OVR’, emits red light when VCC_USB pin is shorted.1 x LED, labeled as ‘USR LED’, is for user’s development.•The ‘USR LED’ is connected to pin 33, PJ10, of the expansion connector.By default, the resistor R60, (0402, 1k ohms) is soldered. Please remove R60 to use GPIO channel PJ10.D ISPLAY SEPCIFICATIONTFT resolutionThe supported resolution of the display in this module is 1024*600.Full TFT specificationFor detailed information on the display, please refer to datasheet of displayRVT70HSMFWN00.I NSPECTIONStandard acceptance/rejection criteria for TFT moduleInspection conditionAmbient conditions:•Temperature: 25 ± 2°C•Humidity: (60 ± 10) %RH•Illumination: Single fluorescent lamp non-directive (300 to 700 lux) Viewing distance: 35 ± 5cm between inspector bare eye and LCD.Viewing Angle: U/D: 45°/45°, L/R: 45°/45°Inspection standardITEM CRITERIONBlack spots,white spots,light leakage,Foreign Particle(round Type)D=(x+y)/2Spot’s density: 10 mmSize = 7”Average Diameter Qualified QtyD ≤ 0.2 mm Ignored0.2 mm < D ≤ 0.3 mm N≤30.5mm < D Not allowed 0.5mm < DLCD black spots, white spots, light leakage (line Type)Size = 7”Length Width Qualified Qty - W ≤ 0.05IgnoredL ≤ 5.00.05 < W ≤ 0.1 35.0 < L 0.1 < W Not allowedBright/Dark DotsSize = 7”Item Qualified Qty Bright dots N≤2Dark dots N≤3 Total bright and dark dots N≤4Clear spotsSize = 7”Average Diameter Qualified QtyD < 0.2 mm Ignored0.2 mm < D < 0.3 mm 40.3 mm < D < 0.5 mm 20.5 mm < D 0Polarizer bubblesSize = 7”Average Diameter Qualified QtyD ≤ 0.2 mm Ignored0.2 mm < D ≤ 0.5 mm 40.5 mm < D 0Touch panel spotSize ≥ 5"Average Diameter Qualified QtyD < 0.25 mm Ignored0.25 mm < D < 0.5 mm 40.5 mm < D 0Touch panel White line ScratchSize ≥ 5’’Length Width Qualified Qty - W < 0.03 IgnoredL < 5.0 0.03 < W < 0.05 2- 0.05 < W 0RELIABILITY TESTNO.TEST ITEMTEST CONDITIONNOTE1 High Temperature Storage 80°C/120 hoursNote 12 Low Temperature Storage -30°C/120 hours3 High Temperature Operating 70 °C /120 hours Note 2. Before cosmetic and function test, the product must have enough recovery time, at least 2 hours at room temperature.L EGAL INFORMATIONRiverdi grants the guarantee for the proper operation of the goods for a period of 12 months from the date of possession of the goods. If in a consequence of this guaranteed execution the customer has received the defects-free item as replacement for the defective item, the effectiveness period of this guarantee shall start anew from the moment the customer receives the defects-free item.Information about device is the property of Riverdi and may be the subject of patents pending or granted. It is not allowed to copy or disclosed this document without prior written permission.Riverdi endeavors to ensure that all contained information in this document is correct but does not accept liability for any error or omission. Riverdi products are in developing process and published information may be not up to date. Riverdi reserves the right to update and makes changes to Specifications or written material without prior notice at any time. It is important to check the current position with Riverdi.Images and graphics used in this document are only for illustrative the purpose. All images and graphics are possible to be displayed on the range products of Riverdi, however the quality may vary. Riverdi is no liable to the buyer or to any third party for any indirect, incidental, special, consequential, punitive, or exemplary damages (including without limitation lost profits, lost savings, or loss of business opportunity) relating to any product, service provided or to be provided by Riverdi, or the use or inability to use the same, even if Riverdi has been advised of the possibility of such damages.Riverdi products are not fault tolerant nor designed, manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail–safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of the product could lead directly to death, personal injury or severe physical or environmental damage (‘High-Risk Activities’). Riverdi and i ts suppliers specifically disclaim any expressed or implied warranty of fitness for High-Risk Activities. Using Riverdi products and devices in 'High-Risk Activities' and in any other application is entirely at the buyer’s risk, and the buyer agrees to def end, indemnify, and hold harmless Riverdi from all damages, claims or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Riverdi intellectual property rights.。
基于STM32系统的智能语音控制的垃圾桶设计
基于STM32系统的智能语音控制的垃圾桶设计苏珍康学亮马飞虎(北方民族大学,宁夏银川750021)摘要:随着计算机技术与电子科技的快速发展,人工智能、云计算等技术的不断进步,智能家居新型产业模式也得到了巨大的发展,至今国内智能家居市场投资达到了1396亿元,市场规模占比不断增大,未来十年内家居智能化将实现大规模应用。
鉴于此,设计了一种智能语音控制垃圾桶,能根据人发出的指令做出判断,运行到指定位置,收取完垃圾之后再回到起点位置。
关键词:智能家居;STM32;嵌入式;人工智能0引言随着人们生活起居水平的提高、社会的发展和经济水平的不断提升,人们对生活的要求更趋于个性化、定制化、自动化,对生活的便捷及乐趣有了更高的要求。
在平时生活中,扔垃圾是再简单不过的一件事情,但也会给人们带来不必要的麻烦。
比如,吃东西的时候不想走动,但也不想放一个垃圾桶在身边。
为解决这样的问题,此项目设计了一款能用语音控制、自动寻迹的垃圾桶。
该设计的主控系统采用STM32单片机,能够识别特定的语音指令,将语音信息转换为电信号给主控系统进行处理,主控系统在处理语音信息的基础上,判断在哪个位置有人需要,不再需要人们特意走动到垃圾桶边去扔垃圾。
1总体设计此项目所设计的智能语音控制的垃圾桶,是采用YS -V0.7语音识别模块来识别特定的语音指令,经STM32控制系统的数据处理做出判断,再通过寻迹系统去到指定的位置。
在寻迹的过程中,用16位的数字陀螺仪检测记录位置,对走过的轨迹做虚拟标记,再对虚拟标记进行数据处理,形成一个记忆系统,使接下来的寻迹判断更加灵敏,如图1所示。
2系统硬件设计2.1STM32F10X 主控系统STM32是ST 公司设计的一款常用的增强型系列微控制器,STM32F10X 系列产品属于中低端的32位基于ARM 系统的微控制器,其内核是Cortex -M3,常用于微控制、电机驱动、嵌入式系统开发等方面。
2.2MPU6050六轴陀螺仪在寻迹计算运动轨迹的过程中,判断左右移动的位移量,我们采用现在市场上最常用的六轴数字陀螺仪[1]MPU6050模块,此模块集成有三轴陀螺仪、三轴加速度计,通信方式为常用的IIC 通信协议,芯片内置16位的AD 转换器和16位数据输出,在精度上完全能够达到要求,并且降低了算法复杂度。
一种基于Arduino的智能家居控制系统
一种基于Arduino的智能家居控制系统一种基于Arduino的智能家居控制系统摘要:介绍了一种基于Arduino的智能家居控制系统,利用Arduino作为主控系统,结合传感器技术、GSM通信技术、语音控制技术等实现对家居环境中的温湿度、空气质量、照明设备、家电设备等的智能控制。
该系统具有无线控制的功能,操作方便,成本低,适合大量推广使用。
关键词:Arduino;智能家居;无线控制1984年世界上第一幢智能建筑在美国康涅迪格州出现。
它将家庭中各种与信息相关的通信设备、家用电器和家庭保安装置连接到一个家庭智能化系统中进行集中的或异地的监视、控制和家庭事务性管理,并保持这些家庭设施与住宅环境的和谐与协调[1]。
如今这种建筑正成为都市人青睐的家居体验方式。
2003年以来,海信、清华同方等公司也相继加入到智能家居行列,但目前的智能家居系统还缺乏统一明确的国际标准,许多公司开发出的产品都是基于自己组建的网络和信息交换协议,很多产品是针对特定的组网环境开发的,部分核心技术没有对外公布,技术复杂,直接导致了使用范围的局限性。
由于缺乏对应的第三方产品,各个接入设备之间不能兼容,互操作性差,不利于产品的扩充。
1系统的硬件设计以电子系统为核心的家居系统是未来智能家居的发展趋势[2],本文介绍一种基于Arduino 的智能家居控制系统。
建立智能家居控制系统,硬件是关键和基础,它对整个系统的稳定性、控制和反馈的准确性、节能性都有直接影响[3]。
智能家居控制系统的硬件部分主要包括Arduino控制器、传感系统、无线控制系统、语音播报部分和液晶显示等。
其中,传感器部分由温湿度传感器和气体传感器三部分组成,用以检测室内温湿度及有害气体。
无线控制部分由GSM和无线语音控制模块两部分组成。
系统结构。
1.1Arduino控制器Arduino是一个开源的单片机电子设计平台,硬件部分由Atmel AVR单片机、I/O接口及相关电路组成,软件部分则包括标准的程序编译器和程序下载器,具有使用类似Java 和C语言的Processing/Wiring开发环境[4]。
TIptop Audio MIX7 7-通道单声道汇合混音器说明书
MIX7MIX7 is a 7-channel mono summing mixer in Eurorack format that can be used to mix audio, CV, Triggers or Gate signals. There are two modes of operation that are set by a jumper at the back of the module.Unity gain (JUMPER OFF: OUT = IN): The level of each input equals that of the output, what comes in comes out.Attenuated gain (JUMPER ON: OUT = 0.4IN): The level of each input is attenuated at the output to provide more headroom for mixing hot (loud) audio signals without distortion.The module is shipped in Unity mode, with the jumper o .MIX7 can be used in multiple ways, so lets get started:Drum MixerSequence a drum pattern with up to 7 drum sounds, connect the audio output of each drum module to an input of MIX7. Connect the output of MIX7 to your sound system. Use individual volume controls on drum modules to set the drums balance.Mixing Oscillators WaveformConnect the waveforms from two Z3000’s to the inputs of MIX7. Connect the mix output of MIX7 to your sound system through a Filter like the Z2040. You have just patched the audio part of a monophonic synth patch.Mixing Control Voltage SourcesIn this example we will need two Z4000 envelopes. Connect the outputs of both to the inputs of MIX7. Connect the mix output of MIX7 to your Frequency Modulation (FM) input of Z2040 lter. Now you can modulate the lter frequency with two envelopes.Mixing Triggers And GatesConnect the trigger outputs from your Circadian Rhythms or Trigger Riot to di erent inputs on the MIX7, send the MIX OUT to a Tiptop Audio ONE Sample Player, play with the Mute button on the sequencers to add and remove triggers from the mix.Mixing More Than 7 ChannelsMIX7 is a summing bus that can be expanded by using two or more MIX7 modules to add channels. Connect the output of the rst MIX7 to input 1 on the second MIX7. Connect the output of the second MIX7 to your sound system. Now you have patched a 13-channel mixer.Modes And Jumper SettingsThere are two modes of operation that are set by a jumper at the back of the module. With the jumper set on one pin or none of the pins the mode is set to Unity Gain, this is how your MIX7 is set by us when shipped to you. With the jumper set on two pins the mode is Attenuated Mode. On the back of the module the options appear as:JUMPER OFF: OUT = INJUMPER ON: OUT = 0.4 INMode 1 - Unity gain: the level of each input equals that of the output, what comes in comes out. This is the standard mode typical to modular synthesizer mixers. This mode is transparent with no added gain and can be used with all type of signals.Mode 2 - Attenuated Gain: the level of each input is attenuated before it gets mixed to provide more headroom for mixing hot (loud) audio signals without distortion. This mode should be con-sidered if you are planning to use MIX7 primarily for mixing hot signals like Tiptop drums and ONE Sample Player modules, giving you peace of mind knowing there is little chance of clipping the signals even when the volume levels of the sounds feeding the mixer are high. Mixing of audio signals with no distortion and clipping is essential for quality mixing, for example when mixing bass drums. In many cases bass drums are pure sine waves. If these waves are getting clipped, the bass drum gets added harmonics that change its purity. This can lead to a unintentionally distor-ted bass drum instead of a well-rounded one. Clipping is indicated by the RED led on the module.Mode 1Mode 2Processing Drums In GroupsBy using two or more MIX7 it’s easy to create ''subgroups''. Subgroups are used to process groups of di erent sounds simultaneously. For example you can mix bass drums, toms and snare together using one MIX7 and Hi Hats and cymbals using another MIX7.1. Connect the output of the rst MIX7 to a High Pass input on Forbidden Planet and theoutput of the second MIX7 to a delay.2. Connect MIX7 outputs to the inputs on a third MIX7.3. Connect the output of the third MIX7 to your sound system.Now you have split your drum sounds into two separate processing groups: High-Pass lter on low and mid-range drums and delay on cymbals and hi hats. This is a typical work ow of signal routing and sound design inside the modular.Mixing Oscillator Waveforms1. Tune your Z3000 oscillator to a nice bass frequency.2. Connect square wave to input 1 on MIX7.3. Connect sine wave output of a second Z3000 tuned one octave lower than the rst tochannel 2 of MIX7.4. Connect mix output of MIX7 to the input of Z2040 lter.5. Connect the output of Z2040 to your sound system.Now you have a square wave tone reinforced by a sub bass sine wave that you can lter to taste.A variation on the patch described above.1. Tune your Z3000 oscillator to a nice bass frequency.2. Conne.ct square wave output to the input of Z2040.3. Connect the output of Z2040 to input 1 on MIX7.4. Connect sine wave output of a second Z3000 tuned one octave lower than the rst tochannel 2 of MIX7.5. Connect mix output of MIX7 to your sound system.Now you have a square wave tone that you can lter to taste reinforced by a sub bass sine wave that is ltered separately.Mixing Control Voltages1. Connect saw wave output of Z3000 to the audio input of Z2040, connect the output ofZ2040 to your sound system.2. Connect the output of Z4000 ADSR envelope to input 1 on MIX7.3. Connect the output of a second Z4000 to input 2 on MIX7.4. Connect the output of a third Z4000 to input 3 of MIX7.5. Connect the 16 step output of Z8000 to input 4 of MIX7.6. Connect the mix out of MIX7 to the frequency modulation input of Z2040.Trigger the 3 envelopes from 3 separate tracks of Circadian Rhythms, clock Z8000 from the main Circadian Rhythms clock output. Now run the sequence. By creatively arranging your gate patterns that trigger the envelopes and mixing in modulation sequence you cancreate very interesting modulation patterns.Connect The Sound Of Your Mobile Phone To Your ModularMIX7 can even be used to amplify a weak signal. It’s not the ideal way of doing that, but what hap-pens if you don’t have a dedicated ampli er module handy? Use Stackcables to send your phone audio to all 7 inputs on MIX7, (make sure MIX7 is set to UNITY MODE). MIX7 has now multiplied the gain of your phone by 7, making it usable for use in the modular.。
联想天工语音产品系列用户手册
联想天工语音产品系列用户手册目录1. 系统说明 (4)1.1 系统终端 (4)1.2 系统业务 (4)1.2.1 补充业务 (4)1.2.2 IVR业务 (5)1.3 缩略语 (5)2. 模拟用户使用说明 (6)2.1 呼叫转移业务的使用 (6)2.1.1 全转移 (6)2.1.2 遇忙转移 (6)2.1.3 无应答转移 (7)2.2 呼叫转接业务的使用 (7)2.3 呼叫保持业务的使用 (8)2.4 呼叫等待业务的使用 (8)2.5 信息等待指示业务的使用 (9)2.6 免打扰业务的使用 (9)2.7 呼出限制业务的使用 (10)2.8 热线业务的使用 (10)2.9 电话查号的使用 (11)2.10 记账卡业务的使用 (11)2.11 留言和提取留言 (12)2.11.1 机主留言 (13)2.11.2 来话留言 (13)2.11.3 留言本地提取 (14)2.11.4 留言异地提取 (14)2.12 定时邮送业务的使用 (14)2.13 自动查号功能的使用 (15)3. Mswitch 语音通信的网管系统使用 (15)3.1 如何登录网管系统 (15)3.2 查看用户通用属性 (16)3.3 时段服务和用户等级设置说明 (18)3.4 使用网管系统设置补充业务 (19)3.5 使用网管系统设置语音信箱参数 (24)3.6 如何修改登录网管系统的用户名称和密码 (25)3.7 重新登录和退出网管系统系统 (26)4. IVR使用说明 (27)4.1 电脑话务员业务 (28)4.1.1 呼叫转接 (28)4.1.2 内部用户查号 (31)4.2 语音信箱业务 (31)4.2.1 进入语音信箱 (32)4.2.2 进入主菜单 (32)4.2.3 机主留言 (33)4.2.4 修改信箱密码 (34)4.2.5 信箱操作 (34)4.2.6 来话留言 (36)4.2.7 定时邮送 (37)4.3 语音邮件业务 (39)4.4 留言通知 (40)4.4.1 操作方法 (40)4.4.2 提示方法 (40)5. Shell使用说明 (41)5.1 命令格式的表示习惯 (41)5.2 Shell命令的设置说明 (41)5.3 Shell命令格式一览表 (42)5.4 Shell命令及使用说明 (46)5.5 Shell命令帮助使用 (46)5.6 Shell命令的快捷使用 (47)5.7 登录系统 (48)5.8 exit 退出系统 (48)5.9 reboot 重新引导系统 (49)5.10 version显示软/硬件信息 (49)5.11 software 升级软件 (50)5.12 password 更改系统登录密码 (50)5.13 date 显示/设置系统日期 (51)5.14 time 显示/设置系统时间 (52)5.15 netconfig 网络配置 (53)5.16 portconfig 端口配置 (56)5.17 sysconfig 系统配置 (58)5.17.2 sysconfig dialplan 拨号计划配置 (60)5.17.3 sysconfig huntgroup 连选组配置 (62)5.17.4 sysconfig huntedit 编辑连选组 (63)5.17.5 sysconfig gain 收/发增益配置 (64)5.17.6 sysconfig atd 人工总机配置 (66)5.17.7 sysconfig cmid CMID配置 (66)5.17.8 sysconfig factory恢复出厂默认配置 (67)5.17.9 sysconfig testdata恢复默认测试配置 (68)5.18 h323 协议栈h323配置 (68)5.18.2 h323 ras RAS方式配置 (70)5.18.3 h323 faststart 快速建立配置 (71)5.18.4 h323 dtmf DTMF转发方式配置 (72)5.18.5 h323 h450 H450配置 (73)5.19 dtconfig 数字中继配置 (74)5.19.2 dtconfig synch 时钟跟踪方式配置 (75)5.19.3 dtconfig signaling信令类型配置 (76)5.19.4 dtconfig isdn ISDN信令配置 (77)5.19.5 dtconfig no1 No1信令配置 (80)5.20 tkdirection 中继方向配置 (82)5.21 voice 语音配置 (83)5.21.2 voice codec 默认编码方式配置 (85)5.21.3 voice g7231 g.723.1编码方式配置 (86)5.21.4 voice g711a g.711a律编码方式配置 (87)5.21.5 voice g711u g.711μ律编码方式配置 (88)5.21.6 voice g729 g.729编码方式配置 (89)5.21.7 voice jittertbuffer 抖动缓冲区大小配置 (90)5.21.8 voice vad 静音压缩配置 (91)5.21.9 voice default恢复语音信息默认配置 (92)5.22 route 路由配置 (93)5.22.2 route static 静态路由配置 (94)5.22.3 route rip RIP协议配置 (96)5.23 qos QOS配置 (97)5.23.2 qos 8021 802.1p/q配置 (99)5.23.3 qos tos TOS配置 (100)5.24 greeting下载电脑话务员提示语音 (100)5.25 ping测试主机连接 (101)5.26 pbook 电话号码本配置 (102)5.27 gatekeeper GateKeeper配置 (104)5.28 debug 调试信息配置 (105)5.29 status 系统状态显示 (109)5.30 t38 T38配置 (109)5.31 billing 计费配置 (110)5.32 standby 切换为备用状态 (111)5.33 pair 另一个CM配置 (112)5.34 log 操作日志 (112)5.35 prompt 修改提示符名称 (113)5.36 console 维护台控制 (113)5.37 compatible 兼容配置 (114)5.38 stack协议栈信息显示 (114)5.39 sysmem系统内存信息显示 (115)5.39.1 显示系统内存信息 (115)1. 系统说明Mswitch 语音通信采用新一代的基于网络的交换技术,采用全分布式控制方式,既提高系统的可靠性,又减少了网络通信的数据量,从而最大限度的减少网络带宽占用。
NewWay语音识别模块硬件使用指南
外接 IO 接口
为普通输出和推挽输出。设置 成推挽输出时可以提供更大的 驱动电流,但是需要接 1K 以上 限流电阻.
NewWay 电子----专业电子模块开发、生产、供应商
newway Electronics .LTD 联系方式:13770950403
IO(n) :第 n 个 IO 输出接口, VCC:电源正极(此处没有电源 反接保护,无法作为电源输入, 只能做输出使用) GND:电源负极 在启动时,如果按下功能按钮 模块将启动下载模式,此时可 功能按钮 以用于设置和语音向模块内下 载。在使用过程中,如果把模 块设置为单次识别触发,按下 该按键时将启动一次识别过程 可接喇叭,标注“+”的接喇叭 喇叭接口 正极,标注“-”的接喇叭负极 功放/耳机接口 模块立体声输出接口,可以接 耳机或者通过录音线接到功放 外接麦克风接口 可以外接麦克风 TTL 串行接口, 可以直接接到单 片机。 VCCOUT:模块电源输入(输入范 TTL 串口 围 DC 4-16 V),如果电源接口 已经电源,此接口不能接任何 电源,以免产生冲突,损坏器
7.识别触发方式
语音识别模块有两种触发方式,一种是按键触发, 一种是循环触发. 7.1 按键触发 按键触发是一种单次的语音识别触发,使用按键触 发时,上电后当模块初始化完毕后,将启动一次初始模 块识别过程,在识别过程中,如果按下功能按键,将重 新启动识别过程,在识别过程结束后,模块将进入等待 状态,等待下一次按键的按下。如果识别完成后有模态 转移,那么该模态将自动启动。 7.2 循环触发 在循环模式下,系统将自动的启动识别,无需人为 干预
NewWay 电子----专业电子模块开发、生产、供应商
newway Electronics .LTD 联系方式:13770950403
YS系列录波装置管理分析软件使用说明书
- 航天银山YS系列录波装置管理分析软件使用说明书南京航天银山电气有限公司2011年1月目录1.软件安装与运行 (3)1.1软件的安装及配置 (3)1.2运行主界面 (4)2.功能菜单说明 (8)系统菜单 (9)参数菜单 (12)通讯 (13)分析 (17)长态录波功能 (30)窗口菜单 (32)帮助菜单 (32)3.参数设置 (33)3.1 YS900参数设置 (33)3.2 YS36参数设置 (44)3.3 YS8A参数设置 (50)3.4 YS88A参数设置 (52)3.5 YS89参数设置 (55)3.6 YS89A参数设置 (60)3.7 YS89A+参数设置 (66)3.8 YS901参数设置 (66)1软件安装与运行YS系列录波装置管理分析软件是实现对本公司各种型号故障录波装置进行统一综合管理和分析的后台软件。
该软件可通过网络通讯连接各种型号的故障录波装置,完成对录波装置的参数维护设置、录波文件传输、故障文件显示、分析、打印、录波装置运行监视等功能。
可以安装在变电站的监控室中或和录波装置单元组屏安装,也可以安装在远程的调度大楼中。
根据软件安装的位置和管辖的范围,软件分成了两个使用版本,主站和子站。
对于主站版本,软件可以管理多个变电站内的录波装置,子站版本一般安装在某个变电站内管理本站中的1台或多台录波装置。
主站版本和子站版本的软件在使用和实际功能上基本没有差别,只是在某些配置功能上有一些区别。
目前软件支持的接入录波装置型号有:YS8A、YS88A(YS88)、YS89(YS201)、YS89A(YS201A)、YS89A+、YS900A(YS900B)、YS900A(66KV)、YS36(YS36G)、YS901等。
针对不同型号的录波装置,某些具体的应用或通讯功能可能会不同,软件中对于装置不支持的功能将通过使菜单或工具条或选项等控制窗口无效来实现。
1.1软件安装及配置在线软件的安装通常情况下在机器出厂时已完成,在现场一般只做软件升级。
光感应语音提示板使用说明书Vdoc
光感应语音提示板使用说明书目录1.产品特性32.电气参数33.产品实照和连接说明34.产品操作说明及注意事项45.AD4音频格式转换简介5光感应语音提示板简介“光感应语音提示板”是我司研发的一款专业的光感应语音提示板。
该产品可根据外部环境光线在单位时间内变化幅度大小来判断光强变化,并同时触发语音提示。
“光感应语音提示板”可应用在多种需要语音提示的场所,如在商场非购物区、楼宇建筑消防安全等,可提供智能语音提示及报警服务。
该产品已被成功应用在智能语音提示、语音防盗、语音家电、消防语音报警等行业。
我司是致力于开发和生产语音板块的专业厂家,拥有实力超群的研发团队和研制语音板块的扎实基础,以保证我们所发行产品的稳定性、优越性和专业性。
不断更新的技术支持与优良的售后服务是我司一直屹立在语音板块市场上的主要因素之一。
我司为客户提供优质可靠的售后跟踪服务和技术支持,让顾客对我司产品的应用更为从容不迫得心应手。
为了使您更好的使用我们的产品,请您务必在使用之前详读说明书。
1.产品特性供电方式:直流稳压电源供电<DC3~5V);全自动光感应语音播放;产品支持外挂最大1G容量的SD卡;支持FAT格式SD卡;加载语音无需软件辅助,直接放置语音到SD卡便可;支持播放采样率6KHz 至32KHz、36KHz的AD4音频;内置功放,可以直接驱动0.5W/8Ω的喇叭,无需外加器件即可满足一般音频输出功率要求;音频播放音质好,音色还原度高;即插即用型设计;待机自动休眠设计。
2. 电气参数3. 产品实照和连接说明实物接口说明3142* 备注:产品预留了丰富的可扩展接口,更换不同的感应接头应用更广泛。
4.产品操作说明及注意事项第一步:参照实物接口说明连接好电源线及音频线<一列四排插针形式),安装好光感应头。
插入装有语音文件的FAT格式SD卡。
第二步:安装播放板至需要感应的地点,比如楼道通道,防盗触发位置区,感应头面向光强变化区域。
唯创 MP3录音模块WTN1XXX系列语音芯片说明书
广州唯创电子有限公司MP3录音模块WTN1XXX系列语音芯片说明书Note:WAYTRONIC ELECTRONIC CO.,LTD.reserves the right to change this document without prior rmation provided by WAYTRONIC is believed to be accurate and reliable.However,WAYTRONIC makes no warranty for any errors which may appear in this document.Contact WAYTRONIC to obtain the latest version of device specifications before placing your orders.No responsibility is assumed by WAYTRONIC for any infringement of patent or other rights of third parties which may result from its use.In目录1.概述: (2)2.功能简述: (2)3.管脚描述: (2)4.极限参数: (3)5.播放速率: (3)6.单线脉冲触发: (3)7.按键控制方式: (5)8.程序范例 (6)9.应用电路 (8)10.封装管脚图 (9)我司说明书以业务员和公司官网的为准1.概述:WTN1系列为全新世代高性价比的语音芯片,具有9bits高性能PWM/DAC语音引擎。
并且具备有5~20秒(6K/4bits)多样化的型号选择,并内置有高精准度起振器,毋需外部起振组件,外接组件少,让应用开发整体成本具有市场领先的优势。
2.功能简述:(1)工作电压:2.0V~5.0V(2)具备串口控制模式:数脉冲,按键控制(3)语音引擎:9bits PWM./9bits DAC(部分型号无DAC功能)(4)可编辑阶数:3800(5)阶可编辑群组数:63组(最大)(6)开机执行群组:1(7)组可放声音长度:/10(WTN1010)/20(WTN1020)(8)内置RC震荡起振回路选型注意:1.芯片的控制方式和输出方式在烧写程序时已经设定好,不可以再次更改,订做芯片时需要和业务员说明应用要求。
YS-Mini语音模块使用手册(ver3)
飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)YS-Mini 语音模块使用手册(ver3)目录一、模块功能结构说明 (2)二、电路连接方法 (4)三、程序移植修改 (5)四、程序调试说明 (6)五、常见问题解答 (7)六、其他说明 (9)飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)一、模块功能结构说明拾音器的连接方法:1、麦克风:如果我们具备耳机或者麦克风,将标准3.5mm 的音频接头插入板上的麦克风(MIC )音频座即可;如图:2、咪头:如果想要采用咪头进行连接,可以直接焊到板上,例如我们可以焊接到:如图这2个点即(MIC-N,MIC-P )。
另外我们也可以通过连接线焊接到:MIC 音频座背面的,绿色箭头处。
(注意区分咪头正负极,MIC-N为正极,MIC-P 为负极)对应本模块原理图管脚标号官方资料对应管脚标号飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)模块读写模式设置:1、模块具备2中读写模式如采用并行读写模式,那么我们可以设置短路点到GND。
飞音云电子技术支持:751956552@网络销售:乐声001(阿里旺旺ID)二、电路连接方法芯片为3.3V供电与其连接的单片机必须为3.3V供电的单片机,从而保证IO 口电平不超过3.3V,否则将导致语音芯片驱动不成功甚至导致语音芯片烧坏,同时亦不可以采用串联电阻的方式进行分压通信这是驱动不起来的,以下为该模块的2种驱动方式的端口连接;1、并口方式所需连接的端口QLD_P0--LDP7(8位并行数据、地址端口)LD_A0(1:LD_P0-LD_P7为地址端口,0:LD_P0-LD_P7为s数据端口)LD_CS(芯片片选端口)LD_WR(芯片写端口)LD_RD(芯片读端口)LD_IRQ(中断信号,模块收到声音后产生一个下降沿)LD_Reset(芯片复位端口)2、SPI方式所需连接的端口QLD_P0->SDI(SPI输入端口)LD_P1->SDO(SPI输出端口)LD_P2->SDCLK(SPI时钟端口)LD_WR->SPIS(SPI片选端口)LD_Reset(芯片复位端口)LD_IRQ(中断信号,模块收到声音后产生一个下降沿)LD_CS(芯片片选端口,低电平有效)在初步的调试过程中,不建议省略以上通信方式的任何一个引脚,例如直接将LD_CS拉低等等,底层驱动程序都必须用到以上的管脚,故在未驱动应用起来前不要自行修改避免不必要的错误导致调试不成功。
启英泰伦语音AI平台高性能语音识别模块数据手册 CI-D0XGS07J-BT说明书
文档会不定期更新,获取最新文档请至启英泰伦语音AI平台()下载。
高性能语音识别模块数据手册CI-D0XGS07J-BT版本号:V1.1模块介绍概述本模块是针对低成本离线语音应用方案开发的一款通用、便携、低功耗高性能的语音识别模块,型号包括为:CI-D02GS07J-BT 和CI-D03GS07J-BT,两个型号管脚完全兼容,区别为主芯片型号不同,CI-D02GS07J-BT主芯片为CI1302,CI-D03GS07J-BT主芯片为CI1303。
CI-D03GS07J-BT中的主芯片CI1303比CI-D02GS07J-BT中的主芯片CI1302多2MB的Flash,可以实现更多命令词和算法功能。
图1 模块框图表1 模块选型表模块选型本地命令词300条以内本地命令词500条带插口单麦离线语音蓝牙模块CI-D02GS07J-BTCI-D03GS07J-BT该模块具有以下特点:模块体积小巧,长宽为37mm×40mm ,工作电压为 5.0V-5.5V ,一颗蓝牙5.0芯片和一颗音频功放芯片,带一路麦克风、一路喇叭和一路5V 电源及UART 的接口,此UART 接口也为5V 电平。
模块插入麦克风和喇叭直接供电即可使用,也可以直接通过接插件将UART 连接到产品主控板,由产品主控板的5V 电源进行供电,UART 通信或GPIO 控制,无需焊接。
模块包含2*3.5mm 螺丝孔,方便固定及安装。
模块主芯片支持离线神经网络计算,支持单麦克风降噪增强,单麦克风回声消除,360度全方位拾音,可抑制环境噪音,保证嘈杂环境中语音识别的准确性。
使用本模块进行离线语音识别不依赖网络,时延小,性能高,可实现97%以上的高识别率,10米超远距离识别,响应时间最快达到0.2S 。
模块可以应用于有能耗等级要求的产品和电池供电类产品中,运行功耗≤0.5W 。
模块带有一颗低功耗蓝牙芯片,兼容蓝牙5.0协议。
用户可通过手机等多媒体终端连接蓝牙播歌、接听电话和微信小程序控制等。
SpeakUp 语音识别板说明书
The SpeakUp is a speech recognition click™ board. You canset it up to recognize over 200 different voice commandsand have the on-board MCU carry them out instantly.Nebojsa MaticGeneral Manager The STM32® and Windows® logos and product names are trademarks of ST microelectronics® and Microsoft® in the U.S.A. and other countries.1. Introduction 42. Applications 53. Package Contains 6 4, How to use it? 75. Tech Specs 86. Schematics 97. How It Works? 10SpeakUp Firwmware Algorithm 11 8. Configuration Through Software 128.1. Typical Workflow 138.2. Getting Started 148.3. Creating a new project 158.4. New Voice Command 168.5. Configuring Project Settings 188.6. Assigning An Action 208.7. Uploading Project 228.8. Exporting Constants 239. Direct Configuration 2410. Recording Tips 2511. Examples 26Table of ContentsThe SpeakUp is a speaker dependent speech recognition click board with standalone capabilities. You can set it up to recognize over 200 voice commands and have the onboard STM32F415RG MCU carry them out. It works by matching sounds with pre-recorded commands. Sound is received through an onboard microphone and then processed bya VS1053 IC with a built in stereo-audiocodec. The SpeakUp comes witha dedicated software tool foreasy configuration. The board islined with 12 user programmable GPIOsfor standalone functionality. It also carries a standard mikroBUS™ host socket.Easy configuration Over 200commandsUltra fastoperationStandalonemodeWouldn't you rather issue verbal commands and have your machines comply, instead of pressing keys, pushing buttons and flipping switches all the time? There's a wide range of applications for the SpeakUp.Command your lights, doors and home appliances.Create voice commanded remotes for TVs or media centers.Reduce complexity and cost of control interfaces.When doing something with both hands and voice command is the only option.Package dimensions:L 70mm, W 60mm, H 30mm BoxUser manual1x8 headersSpeakUp click ™ boardRecycle Bin documentPackage weight:~40gBefore using your click ™ board on your target platform, make sure to solder 1x8 male headers to both left and right side of the board. Two 1x8 male headers are included with the board in the package.Turn the board upside down so that the bottom side is facing you upwards. Place shorter pins of the header into the appropriate soldering pads. Turn the board upward again. Make sure to align the headers so that they are perpendicular to the board, then solder the pins carefully.Now you need to train your SpeakUp to obey your commands. Plug in the board to your PC through USB cable. Configure it using the free software (see page 12). Alternatively you can configure the board directly using the on-board buttons (see page 24).1. Prepare it2. Configure itThe SpeakUp now understands your commands. Connect relays, motors or other electronic actuators directly to SpeakUp’s GPIO pins. Alternatively plug the SpeakUp into any board or shield carrying a mikroBUS ™ socket. You can now control your devices with your voice.3. Use itAlong with its key components, the SpeakUp packs other useful bits like two buttons for recording or deleting voice commands manually, whilethree signal LEDs give recognition feedback and indicate power.Line out pads USB connector Audio jackMicrocontroller mikroBUS connector(STM32415RG)Microphone12 GPIOs25.40 mm 57.15 m m 10.30 mm (user programmable)1000 mils2550 m i l s405.50 milsAudio Codec (VS1053)Signal LEDs Push-buttons JTAG connector7Input:Output:What gives the SpeakUp its speech recognition capabilities is the firmware we developed for the on-board MCU. It’s based on the DTW algorithm, which makes it decisive, it turns your talk into action almost instantly.Sound is received through an on-board microphone. There’s also a 3.5mm jack for connecting an external microphone.After the processed sound has been forwarded to the STM32F415RG MCU that interprets the voice command, there are two output options which can be utilized at the same time or separately:STANDALONE MODE:On-board MCU directly controls external devices using 12 user programmable GPIOsCLICK ™ MODE:Sends index of the matched voice command to a selectable interface: USB or UART.Between the mic and the MCU sits a VS1053 IC with a built in stereo audio codec to process the raw signal.SpeakUp Firmware AlgorithmThe main goal of a speech recognition system is to substitute a human listener, although it is very difficult for an artificial system to achieve the flexibility offered by human ear and human brain. The work principle of speech recognition systems is roughly based on the comparison of input data to prerecorded patterns. These patterns can be arranged in the form of phoneme or word. By this comparison, the pattern to which the input data is most similar is accepted as the symbolic representation of the data. It is very difficult to compare raw speech signals directly. Because the intensity of speech signals can vary significantly, a preprocessing on the signals is necessary. This preprocessing is called Feature Extraction.First, short time feature vectors are obtained from the input speech data, and then these vectors are compared to the patterns classified prior to comparison. The feature vectors extracted from speech signal are required to best represent the speech data, to be in size that can be processed efficiently, and to have distinct characteristics.The SpeakUp Firmware uses Dynamic Time Warping (DTW) algorithm - word-based, isolated word, speaker dependent and template matching algorithm :In the word based speech recognition the smallest recognition unit is a wordIn the isolated word recognition, words that are uttered with short pauses are recognized,Speaker dependent reference patterns are constructed for a single speaker,Template matching algorithm is a form of pattern recognition. It represents speech data as sets of feature/parameter vectors called templates. Each word or phrase in an application is stored as a separate template. The input speech is then compared with stored templates and the stored template most closely matching the incoming speech pattern is identified as the input word or phrase.The SpeakUp software configuration tool is a free PC application for configuring the SpeakUp click board. With it, you can configure the board to recognize over 200 different voice commands and have the on-board MCU carry them out instantly. You can download the software from the following link:The software is designed with ease of use and simplicity in mind. The UI is based on tabs and drop-down menus requiring no programming skills to use.Still, it has all the essential features and options that give you full control of the set-up process.Connect the SpeakUp click board to the computer via the USB cable. It will be recognized as a USB Human Interface Device (HID)in the Device Manager of the Control Panel.After the successful connection, the SpeakUp click ™ board will perform ambient noise detection and calibrate itself. The process lasts about 10 seconds. It’s done when the red signal LED turns off. After that the board is ready for recording voice commands. You can set custom calibration parameters for any subsequent usage in the Project Settings (see page 18).Ambient Noise DetectionOnce you connect the SpeakUp to your computer you’re just a few clicks away from configuring it. The set-up process is dead simple. Launch the application, and it will lead you through the initial steps of recording and assigning commands.To create a new project, press the Create New Project button from the main toolbarof the SpeakUp software.A new window will open, where you can enter your project’s name and destination folder (if the destination folder doesn’t exist, the software will prompt you to create it).To finish project creation after inputting the required information, press the Create button.Alternatively, you can choose to open the settings menu as soon as you create a project, by checking the appropriate box.To record a new voice command, press the Add New Voice Commandbutton. A New Voice Comand dialog window will appear. Press the Record button. The length of the recording is set in the Project Settings window (see page 18).The recorded command will be played back automatically, so you can make sure it’s OK.Add a voice command Record it Stay within the time limit Hear it backIf you’re satisfied with the recording, enter a name for your command and click the Save & Close button.The recorded command will appear as a new tab . You can play it back, edit or delete it anytime.If the SpeakUp fails to detect a voice command, your surrounding might be too noisy. Try again by speaking a bit louder. If it still doesn’t work, launch Settings and adjust the Noise treshhold .TroubleshootName it and save itYou’re done!General SettingsTo configure project settings, press the Open Settings Window button and the Settings window will open.In the General Settings you can configure the SpeakUp’s functionality:Acceptance threshold: This is the parameter you should adjust to define how closely your delivery has to match your pre-recorded command. At lower values, you’ll have to deliver the command precisely the way you recorded it. At higher values the matching doesn’t have to be so precise, but this increases the probability that the SpeakUp will pick up irrelevant speech and interpret it as a command. You should be able to reach the sweet spot value through some trial & error.Recording timeout: Timeframe in which the SpeakUp click board expects recording input after the record button is being pressed. User can choose between 5, 10 and 15 seconds timeframes.Word Length: Length of the voice command being recorded, in seconds. Can be 1, 1.5 and 2 seconds.Noise level: Minimal sound volume level that can trigger a voice command recognition. Lower values require quieter pronunciation, resulting in higher noise/hiss sensitivity. On the contrary, higher level values require louder pronounciation and they are less sensitive to noise/hiss. We recommend that you keep auto detection enabled. That way the SpeakUp Click board will measure the noise level, and perform noise calibration automatically. Auto detection can last a bit longer, usually around 10 seconds. Suddenchanges in sound levels will lengthen the time of calibration and will result in improper sound level values.Notify master: Notifies the master (MCU or PC) when the voice command is recognized by sending a 16-bit index number of voice command via chosen communication interface (UART or USB).Data rate: Sets the speed used for sending data to themaster (MCU or PC).Pin Aliases And Initial Pin StatesIn this section, you can rename GPIO pins according to your needs and set their starting conditions. The new GPIO pin aliases will be applied in the main window too. Set the corresponding initial GPIO pin state in the Initial Pin States section. Condition canbe either low (logical 0) or high (logical 1).When a new command is recorded, it is time to assign it an action. The action will be performed when the voice command is recognized. Also, a 16-bit index number of the voice command will be sent via chosen communication interface (UART or USB) .NONE: When this option is selected, no action will be performed on the corresponding GPIO pin upon voice command matching.ON: When this option is selected, a corresponding GPIO pin will be set to logical high state upon voice command matching.OFF: When this option is selected, a corresponding GPIO pin will be set to logical low state upon voice command matching.TOGGLE: When this option is selected, a corresponding GPIO pin state will be toggled upon voice command matching.PULSE: When this option is selected, a train of pulses will be sent to the corresponding GPIO pin upon voice command matching.There are five types of action that can be assigned :Pulse parametersThe pulse parameters can be set in the Pulse Parameters window (click on the Edit pulse parameters icon Edit pulse parameters to open it) :A period (T) is the time it takes for a signal to complete a single cycle (sum of thehigh state and low state time periods).Duty ratio (D) is the percentage of T in which a signal is active, i.e. ratio of the high state period and a complete period.N is the number of times the pulse is repeated.Thus, a 60% duty cycle means the signal is ON 60% of the time period but OFF 40% of the time period.8.7When you’re finished recording and configuring voice commands, it is time to upload the project to the SpeakUp click™ board. This is done via the Upload Project button.You can monitor the upload process in the Toolbar.After it’s done, an appropriate message will be displayed in the Status Bar.Each recorded voice command is given an index number which is sent to the host MCU. You can export voice command names and their indexes as constants. The exported document will be in the form of a source file (in any of the threelanguages), as shown below.You can perform some basic configuration directly on the SpeakUp without using the software. Different combinations of button presses will allow you to record, re-record or erase commands. You’ll get feedback from the on-board LEDs. However you won’t be able to assign specific actions with this method.Two indicator LEDs provide the following signals:Amber LED - the board is ready for recording or listening.Red LED - the board is perfoming an operation.When the voice command is recognized, both LEDs are lit for a half a second. On-board LEDsUse push-buttons to operate the board:Push-button 1 - To record your voice command,stay within the time limit for each command (default settings: 1 second). You can also record multiple commands at once by pronouncing them one by one while keeping the button pressed. Just make sure to wait for the red LED to flash between pronouncing subsequent commands. Proceed in this way for asmany commands as you need. Each command will be assigned a unique index.Push-button 2 - If you press it for more than 2 If both push-buttonsare pressed for moreOn-board push-buttons12Acceptance Threshold: 15 Recording Timeout: 5s Word Length: 1s Noise Level: Auto Notify Master: USBStandalone mode default settings:Here are some general recording Tips :For better recording results, it is necessary to provide conditions with lowest amounts of ambient noise and speaker distance from the microphone in the range from 10 to 20cm.If there are problems with the voice command detection, please record it several times due to the pronounciation diversity.It is mandatory to play back the recorded voice command in order to hear if some ambient noise was recorded also.Because of this, it is recommended that the SpeakUp click™ board is placed on a surface that doesn’t transfer mechanical vibrations.This is a speaker dependent system. If there are more users, each person should record voice commands separately, due to the pronounciation diversity.Number of voice commands that can be recorded depend on their lengths, typically more than 200 for the voice command length of 1 second.Please keep in mind that the recording is performed by the SpeakUp click™ board, not the computer, so there is no need to connect an external microphone to the computer.SpeakUp has a world of applications. It’s up to your imagination to come up with the coolest ideas. Here’s a hint or two:Use SpeakUp on top of the Pi click Shield to command XBMC Home Media Center on Raspberry Pi®. It’s a great a replacement for a mouse and a keyboard.Replace your lamp switch with a SpeakUp click and a relay. Tell your light to turn ON or OFF if your hands are busy doing something important.If you want to learn more about our products, please visit our website at If you are experiencing some problems with any of our products or just need additional information, please place your ticket at /support/If you have any questions, comments or business proposals,do not hesitate to contact us at *****************。
YS-V0.7语音识别模块使用手册Ver2
飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)YS-V0.7一体化语音识别模块使用手册模块实物图飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)目录1、初次使用测试步骤 (2)2、配套程序识别命令修改步骤 (4)(1)添加关键词和识别码 (4)(2)定义识别码 (5)(3)修改处理函数 (5)3、与单片机设备串口通讯 (7)4、程序下载说明 (8)5、灵敏度(识别距离)调节说明 (8)5、其他说明 (9)6、注意事项 (9)飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)1、初次使用测试步骤(1)按照图1所示(P4接口),连接USB 下载器,接上GND 、RXD 、TXD 、5V (VCC 端口为3.3V 输出,方便为其他设备提供电源,在此不接),注意RXD/TXD 必须交叉连接,才能进行一收一发通信,在PC 机上打开串口调试工具,设定波特率为9600bit/s 。
(2)将USB 下载器连接到PC 机,查看该下载器在PC 机中占用的串口通道,然后对应选择调试工具的串口号,设定后,重新给模块通上电源(拔下GND 连接线,再重新连接,即可以重新上电,下载程序时冷启动也是一样的操作),这时,调试工具接收窗口将打印出相关口令。
(3)本模块出厂默认下载的是口令模式程序,用户根据串口所示的口令内容,先对着咪头发一级口令(“小捷”),待板上的D1灯点亮后,可以开始对其他二级口令的识别,如此循环操作识别。
识别操作。
如识别成功,则有相关反馈信息。
(4)调试完毕(5)测试好模块后可以与其他单片机设备进行通讯,连接方式和测试方法与在PC 机调试一样。
如不了解51单片机如何下载和调试的请查看“YS-USB toTTL 下载器(图1)飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)使用手册.pdf ”2、配套程序识别命令修改步骤(1)添加关键词和识别码打开程序,在LDChip.C 文件中找到uint8LD_AsrAddFixed()函数,在该函数里面可以找到如下图所示内容:----根据关键词的数量和长度修改宏定义DATE_A 和DATE_B ,例如您要添加10个关键词,在这些关键词中最长的一句长度为30,那么定义如下:#defineDATE_A 10#define DATE_B 30---sRecog[][]数组为关键词数组,添加内容为拼音输入方式,例如想添加“开灯”命令,则写入“kai deng”,每个汉字间的拼音用空格隔开。
智语播音通产品使用说明书
智语播音通产品使用说明书为确保正常使用智语播音通智能广播系统,用户需要确保设备连接正常、相关软件和驱动安装正确。
本书从设备的连接到软件的安装使用为用户做出详细的说明。
一、智语播音通设备使用说明1.设备上的标识智语播音通硬件设备上的标识主要包括端口标识和指示灯标识,具体主要有如下一些标识:Audio :音频线接口,使用3.5转双莲花的音频线,从设备接向功放。
Mic :麦克风接口,播音通系统中无需使用。
Power :电源指示灯,指示灯亮起,则表示设备供电正常。
Mini USB :USB接口,连接电脑和设备。
Work :设备工作指示灯。
2.设备的连接在公共广播场所的功放音响设备安装完备的基础上,连接好设备、安装好软件即可正常使用智语播音通智能广播系统,设备连接如图1-2-1所示:图1-2-1二、智语播音通软件使用说明1.软件的安装(1)安装环境:Windows2003/XP/vista/Win7(2)将安装光盘放入电脑的光驱,打开安装光盘,请依次安装:dotnetfx35.exe、播音通设备驱动.exe、智语播音通.msi。
程序按照默认设置直接点击“下一步”进行安装,直至安装完成。
安装文件如图2-1-1所示:图2-1-1(3)软件安装完成,桌面会出现快捷方式“智语播音通”。
2.软件的运行双击桌面图标“智语播音通”,进入软件界面,点击“用户登录”。
如图2-2-1所示:图2-2-1输入用户名和密码登录软件。
如图2-2-2所示:图2-2-2播音和音乐播放分别包括如图2-2-3和图2-2-4一些功能模块:图2-2-3图2-2-43.软件的系统设置(1)账号管理:添加账号、删除账号、编辑账号、密码重置,添加账号可增加相应的操作员账号,并进行权限设置。
如图2-3-1所示:图2-3-1(2)开机启动和工作时段设置,如需开机自动运行程序,请在开机启动前打勾。
工作时段设置应该保留缓冲时间,如,营业和打烊时间分别为08:00和21:00,则工作时段设置为7:45到21:15,保留15分钟缓冲时间。
ELECHOUSE 声音识别模块 V3 说明书
Voice Recognition Module V3 Speak to Control (Arduino compatible)OverviewELECHOUSE Voice Recognition Module is a compact and easy-control speaking recognition board.This product is a speaker-dependent voice recognition module. It supports up to 80 voice commands in all. Max 7 voice commands could work at the same time. Any sound could be trained as command. Users need to train the module first before let it recognizing any voice command.This board has 2 controlling ways: Serial Port (full function), General Input Pins (part of function). General Output Pins on the board could generate several kinds of waves while corresponding voice command was recognized.What’s new?We already have Voice Recognition module V2. It supports 15 commands in all and only 5 commands at the same time.On V2, voice commands are separated into 3 groups while you training it. And only one group (5 commands) could to be imported into Recognizer. It means only 5 voice commands are effective at thesame time.On V3, voice commands are stored in one large group like a library. Any 7 voice commands in the library could be imported into recognizer. It means 7 commands are effective at the same time.Parameter●Voltage: 4.5-5.5V●Current: <40mA●Digital Interface: 5V TTL level for UART interface and GPIO●Analog Interface: 3.5mm mono-channel microphone connector + microphone pin interface●Size: 31mm x 50mm●Recognition accuracy: 99% (under ideal environment)Feature●Support maximum 80 voice commands, with each voice 1500ms (one or two words speaking)●Maximum 7 voice commands effective at same time●Arduino library is supplied●Easy Control: UART/GPIO●User-control General Pin OutputTerminology●VR3 -- Voice Recognition Module V3●Recognizer -- a container where acting voice commands (max 7) were loaded. It is core part ofvoice recognition module. For example, it works like “playing balls”. You have 80 players in your team. But you could not let them all play on the court together. The rule only allows 7 playersplaying on the court. Here the Recognizer is the list which contains names of players working on the court.●Recognizer index -- max 7 voice commands could be supported in the recognizer. Therecognizer has 7 regions for each voice command. One index corresponds to one region: 0~6●Train -- the process of recording your voice commands●Load -- copy trained voice to recognizer●Voice Command Record -- the trained voice command store in flash, number from 0 to 79●Signature -- text comment for record●Group -- help to manage records, each group 7 records. System group and user group aresupported.InstructionHere we will introduce the Arduino Library and VR3 ProtocolFor ArduinoPrepare●Voice Recognition V3 module with microphone●Arduino board (UNO recommended)●Arduino Sensor Shield V07 (optional)●Arduino IDE●Voice Recognition V3 library (Download zip file)Hardware and Software Preparation1.Connect your Voice Recognition V3 Module with Arduino, By Default:2.Download VoiceRecognitionV3 library. (download zip file or use g i t c l o n eh t t p s://g i t h u b.c o m/e l e c h o u s e/V o i c e R e c o g n i t i o n V3.g i t command)3.If using zip file, extract VoiceRecognitionV3.zip to A r d u i n o S k e t c h\l i b r a r i e s folder, or if youuse g i t c l o n e command copy VoiceRecognitionV3 to A r d u i n o S k e t c h\l i b r a r i e s .Train1.Open vr_sample_train (File -> Examples -> VoiceRecognitionV3 -> vr_sample_train)2.Choose right Arduino board(Tool -> Board, UNO recommended), Choose right serial port.3.Click Upload button, wait until Arduino is uploaded.4.Open Serial Monitor. Set baud rate 115200, set send with Newline or Both NL & CR.5.Send command s e t t i n g s(case insensitive) to check Voice Recognition Module settings.Input s e t t i n g s, and hit E n t e r to send.6.Train Voice Recognition Module. Send s i g t r a i n0O n command to train record 0 with signature"On". When Serial Monitor prints "Speak now", you need speak your voice(can be any word, meaningful word recommended, may be 'On' here), and when Serial Monitor prints "Speak again", you need repeat your voice again. If these two voice are matched, Serial Monitor prints "Success", and "record 0" is trained, or if are not matched, repeat speaking until success.What is a signature? Signature is a piece of text description for the voice command. Forexample, if your 7 voice command are “1, 2, 3, 4, 5, 6, 7”, you could train in the following way: s i g t r a i n0o n es i g t r a i n1t w os i g t r a i n2t h r e es i g t r a i n3f o u rs i g t r a i n4f i v es i g t r a i n5s i xs i g t r a i n6s e v e nThe signature could be displayed if its command was called.When training, the two led on the Voice Recognition Module can indicate your training process.After sending the training command, the SYS_LED (yellow) is blinking fast which remind you to get ready. Speak your voice command as soon as the STATUS_LED (red) light lights on. The recording process ends once when the STATUS_LED (red) lights off. Then the SYS_LED is blinking again, get ready for next recording process. When the training process ends successful, SYS_LED and STATUS_LED blink together. If the training fails, SYS_LED and STATUS_LED blink together, but quickly.7.Train another record. Send s i g t r a i n1O f f command to train record 1 with signature "Off".Choose your favorite words to train (it can be any word, meaningful word recommended, may be'Off' here).8.Send l o a d01 command to load voice. And say your word to see if the Voice RecognitionModule can recognize your words.If the voice is recognized, you can see.9.Train finish. Train sample also support several other commands.Control LED SampleHere we show a simple example showing how to control the LED on Arduino board(connecting to pin13)through voice commands.Before this example,you need to train the VR module first in the way as vr_sample_train shows above. Use the following commands:●s i g t r a i n0o n Train the voice command used to light on the LED●s i g t r a i n0o f f Train the voice command used to turn off the LEDThen following the steps:1.Open vr_sample_control_led (File -> Examples -> VoiceRecognitionV3 ->vr_sample_control_led)2.Choose right Arduino board (Tool -> Board, UNO recommended), Choose right serial port.3.Click Upload button, wait until Arduino is uploaded.4.Open Serial Monitor. Set baud rate 115200.5.You will see the indication:Speak the voice commands you train above and check the status of LED on Arduino.vr_sample_multi_cmdThis sample shows how to use multi commands (more than 7 commands). This sample use RECORD 0 (the first voice command) to switch between the 2 command 'groups' (not Voice Recognition Group Function). Group 1 is made of RECORD 0, 1, 2, 3, 4, 5, 6. A nd second group is made up of RECORD 0, 7, 8, 9, 10, 11, 12 .Note: Before start this sample, you need train your Voice Recognition module first, and make sure that all records from 0 to 12 should be trained.vr_sample_check_baud_rateThis sample is used to check the baud rate, when you forgot your custom settings.vr_sample_bridgeThis example allows you to send VR3 protocol commands to VR3 board. For more detail, please refer to Protocol . Note: do not input Frame Head, Frame Length, Frame End, only need input Frame Command and Frame Data. For example, Check Recognizer Command is "AA 02 01 0A" for all, here you only need input 01.Example:1.Enable Arduino Serial monitor "Send with newline", Baud rate 115200.2.Input "01" to "check recognizer".3.input "31" to "clear recognizer"4.input "30 00 02 04" to "load record 0, record 2, record 4"Please refer to libref.pdf to get more information about functions of this library.VR3 ProtocolVR3 protocol contains basic commands to control VR3 boards. For those who use VR3 with other MUC rather than Arduino, VR3 protocol is very helpful.All the commands of VR3 are sent through serial port in HEXADECIMAL FORMAT.Example are supplied with this serial port tool: Access PortTo connect VR3 to PC, this USB-TTL module tool: USB-TTL Module with 5V or 3.3VBase FormatControl| Head (AA) | Length| Command | Data | End (0A) |Length = L(Length + Command + Data)Return| Head (AA) | Length| Command | Data | End (0A) | Length = L(Length + Command + Data)NOTE: Data area is different with different with commands. CodeALL CODE ARE IN HEXADECIMAL FORMATFRAME CODEAA --> Frame Head0A --> Frame EndCHECK00 --> Check System Settings01 --> Check Recognizer02 --> Check Record Train Status03 --> Check Signature of One RecordSYSTEM SETTINGS10 --> Restore System Settings11 --> Set Baud Rate12 --> Set Output IO Mode13 --> Set Output IO Pulse Width14 --> Reset Output IO15 --> Set Power On Auto LoadRECORD OPERATION20 --> Train One Record or Records21 --> Train One Record and Set Signature22 --> Set Signature for RecordRECOGNIZER CONTROL30 --> Load a Record or Records to Recognizer31 --> Clear Recognizer32 --> Group ControlTHESE 3 CODES ARE ONLY USED IN RETURN MESSAGE0A > Prompt0D > Voice RecognizedFF > ErrorDetailsCheck System Settings (00)Use "Check System Settings" command to check current settings of Voice Recognition Module, include serial baud rate, output IO mode, output IO pulse width, auto load and group function.Format:| AA | 02 | 00 | 0A |Return:| AA | 08 | 00 | STA | BR | IOM | IOPW | AL | GRP | 0A |DescriptionSTA Trained status●0-untrained●1-trained●FF-record value out of rangeBR Baud rate●0 or 3 -9600● 1 -- 2400● 2 -- 4800● 4 -- 19200● 5 -- 38400IOM Output IO Mode●0 -- Pulse● 1 -- Toggle● 2 -- Clear● 3 -- SetIOPW Output IO Pulse Width●Pulse Mode: 1~15AL Power on auto load●0 -- disable● 1 -- enableGRP Group control by external IO0 -- disable1 -- system group2 -- user groupExample:Check Recognizer (01)Use "Check Recognizer" command to check recognizer of Voice Recognition Module. Format:| AA | 02 | 01 | 0A |Return:| AA | 0D | 01 | RVN | VRI0 | VRI1 | VRI2 | VRI3 | VRI4 | VRI5 | VRI6 | RTN | VRMAP | GRPM | 0A | DescriptionRVN: The number of valid voice commands in recognizer.MAX 7VRI n n=0~6Voice commands in recognizer, n is recognizer index valueRTN The number of total records in recognizer.VRMAP Valid command bit map for VRI0~VRI6.GRPM Group mode●FF -- not in group mode●00~0A -- system group●80~87 -- user group modeExampleCheck Record Train Status (02)Use "Check Record Train Status" command to check if the record is trained. Format:Check all records| AA | 03 | 02 | FF| 0A |Check specified records| AA | 03+n | 02 | R0 | ... | Rn | 0A |Return:| AA | 5+2*n | 02 | N | R0 | STA | ... | Rn | STA | 0A |DescriptionN Number of trained records.R0 ~ Rn Voice record.STA Trained voice command status●0 -- untrained● 1 -- trained●FF -- record value out of rangeExample:Check Signature of One Record (03)Use this command to check the signature of one record. Format:| AA | 03 | 03 | Record | 0A |Return:| AA | 03 | 03 | Record | SIGLEN | SIGNATURE | 0A |DescriptionSIGLEN signature string lengthSIGNATURE signature stringExample:Restore System Settings (10)Use this command to restore settings of Voice Recognition Module to default. Format:| AA | 02 | 10 | 0A |Return:| AA | 03 | 10 | 00 | 0A |Example:Set Baud Rate (11)Use this command to set baud rate of Voice Recognition Module, effect after Voice Recognition Module is restarted.Format:| AA | 03 | 11 | BR | 0A |Return:| AA | 03 | 11 | 00 | 0A |DescriptionBR Serial baud rate.●0 -- 9600● 1 -- 2400● 2 -- 4800● 3 -- 9600● 4 -- 19200● 5 -- 38400Set Output IO Mode (12)Use this command to set output IO mode of Voice Recognition Module, take effect immediately after the instruction execution.Format:| AA | 03 | 12 | MODE | 0A |Return:| AA | 03 | 12 | 00 | 0A |DescriptionMODE Output IO mode.●0 -- pulse mode● 1 -- Flip mode● 2 -- Up mode● 3 -- Down modeHere we will introduce more about the output of O1~O5:Pulse Mode: Output is negative pulse.Flip Mode: each time while the module recognizes voice command, it will change the state of the output pin.Down Mode: The output will become LOW from HIGH once it detects voice command. It will never come back to HIGH again until the module receives output reset command (14).Up Mode: The output will become HIGH from LOW once it detects voice command. It will never come back to LOW again until the module receives output reset command (14).There will be an example:A: Starting point while you import the voice group.B: The 1st time it recognizes voice command.C: The 2nd time it recognizes voice command.D: The 3rd time it recognizes voice command.E: The time while output reset command is received (14).The back wire is output wave shape.Set Output IO Pulse Width (13)Use this command to set output IO pulse width of Pulse Mode. It takes effect immediately after the instruction execution. Pulse width is used when output IO mode is "Pulse".Format:| AA | 03 | 13 | LEVEL | 0A |Return:| AA | 03 | 13 | 00 | 0A |DescriptionLEVEL Pulse width level. Details:-0010m s-0115m s-0220m s-0325m s-0430m s-0535m s-0640m s-0745m s-0850m s-0975m s-0A100m s-0B200m s-0C300m s-0D400m s-0E500m s-0F1sReset Output IO (14)Use this command to reset output IO. This command can be used in output IO UP/DOWN Mode to generate a user-defined pulse.Format:| AA| 03 | 14 | FF | 0A | (reset all output io)| AA| 03+n | 14 | IO0 | ... | IOn | 0A | (reset output ios)Return:| AA | 03 | 14 | 00 | 0A |DescriptionIOn number of output ion: 0~6IOn: 0~6 (HEX)Example:Reset IO1Set Power On Auto Load (15)Use this command to enable or disable "Power On Auto Load" function. Format:| AA| 03 | 15 | 00 | 0A | (disable auto load)| AA| 04+n | 15 | BITMAP | R0 | ... | Rn | 0A | (set auto load)Return:| AA| 05+n | 15 | 00 |BITMAP | R0 | ... | Rn | 0A | (set auto load)DescriptionBITMAP Record bitmap:●00 -- zero record, disable auto load●01 -- one record●03 -- two records●07 -- three records●0F -- four records●1F -- five records●3F -- six record●7F -- seven recordsR0~Rn RecordExample:to auto-load the first voice command R0 into recognizerTrain One Record or Records (20)Train records, can train several records one time.Format:| AA| 03+n | 20 | R0 | ... | Rn | 0A |Return:| AA| LEN | 0A | RECORD | PROMPT | 0A || AA| 05+2*n | 20 | N | R0 | STA0 | ... | Rn | STAn | SIG | 0A |DescriptionR0~Rn Voice command recordSTA train result0 -- Success1 -- Timeout2 -- Record value out of rangen Number of trained voice command record Example:To train voice command 01,Train One Record and Set Signature (21)Train one record and set a signature for it, one record one time. Format:| AA| 03+SIGLEN | 21 | RECORD | SIG | 0A | (Set signature) Return:| AA| LEN | 0A | RECORD | PROMPT | 0A | (train prompt)| AA| 05+SIGLEN | 21 | N | RECORD | STA | SIG | 0A |DescriptionRECORD Voice command record indexSIG Signature stringPROMPT Prompt string:●Speak now●Speak again●SuccessN Number of successful training voice commands Example:Train command 02 with signature “on”Set/Delete Signature for Record (22)Set a signature for a record, one record one time.Format:| AA | 03+SIGLEN | 22 | RECORD | SIG | 0A | (Set signature)| AA | 03 | 22 | RECORD | 0A | (Delete signature)Return:| AA | 04+SIGLEN | 22 | 00 | RECORD | SIG | 0A | (Set signature return) | AA | 04 | 22 | 00 | RECORD | 0A | (Delete signature return)DescriptionSIG signature stringSIGLEN signature string lengthExample:Set voice recommand 01 with signature “one”.Load a Voice Record or Records to Recognizer (30)Load records(1~7) to recognizer of VR3, after execution the VR3 starts to recognize immediately. Format:| AA| 3+n | 30 | R0 | ... | Rn | 0A |Return:| AA| 3+2n | 30 | N | R0 | STA0 | ... | Rn | STAn | 0A |DescriptionR0~Rn Voice Record indexSTA0~STAn Load result●00 -- Success●FF -- Record value out of range●FE -- Record untrained●FD -- Recognizer full●FC -- Record already in recognizerN Number of successful training voice commandsExample:Load Voice command 00 01 02 to recognizer.The yellow LED will flash slowly.Clear Recognizer (31)Stop recognizing, and empty recognizer of Voice Recognition Module. Format: | AA | 02 | 31 | 0A |Return:| AA | 03 | 31 | 00 | 0A |Example:Yellow LED will light on.Group Control (32)Groups are used to load commands into recognizer by external pins.IN0 IN1 IN2 Group loadedLOW LOW LOW 00HIGH LOW LOW 01LOW HIGH LOW 02HIGH HIGH LOW 03LOW LOW HIGH 04HIGH LOW HIGH 05LOW HIGH HIGH 06HIGH HIGH HIGH 07There are two kinds of groups: System Group and User GroupWhile you training voice commands, each command has an unique ID. System Groups are divided by those IDs.However, User Group allows you to set up a group in any way you want.Group selectSet group control mode (disable, system, user), if group control function is enabled (system or user), then voice recognition module is controlled by the external control IO.Format:| AA| 04 | 32 | 00 | MODE | 0A |MODE:Return:| AA| 03 | 32 | 00 | 0A |or| AA| 05 | 32 | 00 | FF | MODE | 0A | (check command return)DescriptionMODE New group control mode.●00-disable●01-system●02-user●FF-checkExample:check the status of group controlSet/Delete user groupSet user group content(record).Format:| AA| 03 | 32 | 01 | UGRP | 0A | (Delete UGRP)| AA| LEN | 32 | 01 | UGRP | R0 | ... | Rn | 0A | (Set UGRP)Return:| AA| 03 | 32 | 00 | 0A | (Success return)DescriptionUGRP user group numberR0~Rn record index numbern=0,1,...Max 7 voice recordsExample:Set Group 00 with Voice command 00, 01, 02Load system groupLoad system group to recognizer, this command would clear recognizer.Format:| AA| 04 | 32 | 02 | SGRP | 0A |Return:| AA| 0D | 32 | SGRP | VRI0 | VRI1 | VRI2 | VRI3 | VRI4 | VRI5 | VRI6 | RTN | VRMAP | GRPM | 0A | DescriptionSGRP system group numberVRIn n=0~6Record which is in recognizer, n is recognizer index valueRTN Number of total records in recognizer.VRMAP Valid record bit map for VRI0~VRI6GRPM Group mode indicate. (00~0A-system group)Example:In the example, VRMAP is 0x07. That is 0000111. So command index 00, 01, 02 is valid.Load user groupLoad user group to recognizer, this command would clear recognizer.Format:| AA| 04 | 32 | 03 | UGRP | 0A |Return:| AA| 04 | 32 | UGRP | VRI0 | VRI1 | VRI2 | VRI3 | VRI4 | VRI5 | VRI6 | RTN | VRMAP | GRPM | | 0A | DescriptionUGRP user group numberVRIn n=0~6Record which is in recognizer, n is recognizer index valueRTN Number of total records in recognizer.VRMAP Valid record bit map for VRI0~VRI6GRPM Group mode indicate. (00~0A-system group)Check user groupCheck user group content.Format:| AA| 03 | 32 | 04 | 0A | (check all user group)or| AA| LEN | 32 | 04 | UGRP0| ... | UGRPn | 0A | (check user group) Return:| AA | 0A | 32 | UGRP | R0 | R1 | R2 | R3 | R4 | R5 | R6 | 0A |DescriptionUGRP user group numberR0~R6 voice command record index.Prompt (0A)0A code only occurs in return data for training command.Format:NONEReturn:| AA | 07 | 0A | RECORD | PROMPT | 0A |RECORD: record which is in trainingPROMPT: prompt stringDescriptionRECORD user group numberPROMPT prompt stringVoice Recognized (0D)0D code only occurs in the return data while voice command is recognized. Format:NONEReturn:| AA | 07 | 0D | 00 | GRPM | R | RI | SIGLEN | SIG | 0A |DescriptionGRPM Group mode indicate●FF: not in group mode●00~0A: system group mode●80~87: user group modeR record which is recognized.RI recognizer index value for recognized record.SIGLEN signature length of the recognized record, 0 means on signature, on SIG area SIG signature contentError (FF)Error command is only used for Voice Recognition Module to return error status.Format:NONEReturn:| AA | 03 | FF | ECODE | 0A |DescriptionECODE error code●FF -- command undefined●FE -- command length error●FD -- data error●FC -- subcommand error●FB -- command usage errorDisclaimer and RevisionsThe information in this document may change without notice.Revision HistoryRev. Date Author DescriptionA Sep. 29th, 2011 Wilson Shen Initial versionB Mar. 4th, 2013 Wilson Shen V2C May.9th, 2014 Wilson Shen V3。
语音识别与合成系统使用手册
语音识别与合成系统使用手册第一章引言 (3)1.1 系统概述 (3)1.2 主要功能 (3)1.2.1 语音识别 (3)1.2.2 语音合成 (3)1.2.3 语音交互 (4)1.2.4 其他功能 (4)第二章系统安装与配置 (4)2.1 安装环境要求 (4)2.2 安装流程 (4)2.3 配置语音识别引擎 (5)2.4 配置语音合成引擎 (5)第三章语音识别操作指南 (5)3.1 语音输入设备准备 (5)3.2 识别流程与界面操作 (6)3.3 识别结果查看与编辑 (6)3.4 识别功能优化 (6)第四章语音合成操作指南 (7)4.1 语音输出设备准备 (7)4.2 合成流程与界面操作 (7)4.3 合成效果调整 (7)4.4 合成功能优化 (8)第五章语音识别与合成高级功能 (8)5.1 实时语音识别 (8)5.1.1 功能概述 (8)5.1.2 技术实现 (8)5.1.3 使用指南 (8)5.2 多人语音识别 (8)5.2.1 功能概述 (8)5.2.2 技术实现 (9)5.2.3 使用指南 (9)5.3 离线语音识别 (9)5.3.1 功能概述 (9)5.3.2 技术实现 (9)5.3.3 使用指南 (9)5.4 语音合成自定义 (9)5.4.1 功能概述 (9)5.4.2 技术实现 (9)5.4.3 使用指南 (10)第六章系统维护与管理 (10)6.1 识别与合成引擎更新 (10)6.1.2 更新方法 (10)6.1.3 更新注意事项 (10)6.2 系统参数配置与调整 (10)6.2.1 参数配置 (10)6.2.2 参数调整方法 (10)6.2.3 参数调整注意事项 (11)6.3 日志管理 (11)6.3.1 日志分类 (11)6.3.2 日志查看与导出 (11)6.3.3 日志清理 (11)6.4 故障排查与处理 (11)6.4.1 故障分类 (11)6.4.2 故障排查方法 (11)6.4.3 故障处理 (11)第七章语音识别与合成的应用案例 (11)7.1 客户服务 (12)7.2 智能家居系统 (12)7.3 车载语音 (12)7.4 教育辅助工具 (12)第八章安全性与隐私保护 (13)8.1 数据加密与保护 (13)8.1.1 数据传输加密 (13)8.1.2 数据存储加密 (13)8.1.3 数据访问控制 (13)8.2 用户权限管理 (13)8.2.1 用户角色划分 (13)8.2.2 权限控制 (13)8.2.3 权限变更审计 (13)8.3 隐私政策 (14)8.3.1 数据收集 (14)8.3.2 数据使用 (14)8.3.3 数据存储 (14)8.3.4 数据共享与传输 (14)8.4 法律法规遵循 (14)8.4.1 中华人民共和国网络安全法 (14)8.4.2 个人信息保护法 (14)8.4.3 计算机信息网络国际联网安全保护管理办法 (14)8.4.4 其他相关法律法规 (14)第九章常见问题解答 (14)9.1 识别与合成相关问题 (14)9.1.1 为什么识别准确率有时会较低? (14)9.1.2 如何提高语音合成质量? (14)9.1.3 识别与合成过程中出现中断或异常,怎么办? (15)9.2.1 如何安装和配置语音识别与合成系统? (15)9.2.2 如何更新系统? (15)9.2.3 系统出现故障,如何进行故障排查? (15)9.3 应用场景与功能疑问 (15)9.3.1 语音识别与合成系统适用于哪些场景? (15)9.3.2 如何实现语音识别与合成的实时交互? (15)9.3.3 系统是否支持多语言识别与合成? (15)9.4 技术支持与售后服务 (15)9.4.1 如何获取技术支持? (15)9.4.2 售后服务期限是多长时间? (16)9.4.3 如何申请售后服务? (16)第十章未来展望与更新计划 (16)10.1 技术发展趋势 (16)10.2 产品更新计划 (16)10.3 潜在应用领域 (17)10.4 用户反馈与建议收集 (17)第一章引言1.1 系统概述信息技术的飞速发展,语音识别与合成技术在智能语音交互领域中的应用日益广泛。
秦皇岛千目电子 YS07语言模块 说明书
语音模块使用说明书V1.0(型号:YS07)秦皇岛千目电子有限公司电话:0335-*******传真:0335-*******地址:河北省秦皇岛市海港区团结里1.产品特性 (3)2.产品图片、接口介绍及典型应用示意图 (3)2.1产品外形和接口图片 (3)2.2接口介绍 (3)2.2.1左侧8P蓝色端子 (3)2.2.2右侧4P蓝色端子 (3)2.2.3 3.5音频输出 (3)2.2.4右侧2P蓝色端子 (3)2.3产品尺寸图 (4)2.4七路按键控制放音接线示意图 (4)3.语音录制过程 (5)3.1准备音频文件 (5)3.1.1打开一个任意格式音频文件 (5)3.1.2另存文件 (5)3.1.3选择另存格式 (6)3.2音频文件存储到指定目录 (6)3.3连接好硬件设备 (6)3.4软件录音 (7)3.4.1连接设备 (7)3.4.2连续录音 (7)3.4.3放音测试 (8)3.5软件设置参数 (8)3.5.1设置485的波特率和设备ID (8)3.5.2设置触点信号采集方式 (8)4.放音应用 (9)4.1触点触发方式 (9)4.1.1闭合播放一次 (9)4.1.2闭合循环播放 (9)4.1.3断开播放一次 (9)4.1.4断开循环播放 (9)4.1.5触点变化播放 (9)4.1.6矩阵键盘 (9)4.2485通讯触发方式 (10)4.2.1RS485连接控制示意图 (10)4.2.2通讯协议 (10)5.性能参数 (10)6.技术支持及联系方式 (10)语音模块使用说明书(型号:YS07)YS07语音模块是基于YT07型语音模块的升级改版模块。
具有价格低、稳定可靠、可重复录音、开关触点控制、体积小等特点。
主要控制放音方式有两种:通过7组触点控制、485串行总线控制。
主要应用范围:安装工程、报警提示、产品扩展语音功能等。
1.产品特性●板载功放模块,最高可输出功率达20w,声音响亮。
(新)●板载音量调节,可根据实际安装需求进行调整。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺
ID)YS-V0.7一体化语音识别模块使用手册
模块实物图
目录
1、初次使用测试步骤
2、配套程序识别命令修改步骤
3、与单片机设备串口通讯
4、程序下载说明
5、其他说明
飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)
1、初次使用测试步骤
(1)按照图1所示(P4接口),连接USB 下载器,接上GND 、RXD 、TXD 、5V (VCC 端口为3.3V 输出,方便为其他设备提供电源,在此不接),注意RXD/TXD 必须交叉连接,才能进行一收一发通信,在PC 机上打开串口调试工具,设定波特率为9600bit/s 。
(2)将USB 下载器连接到PC 机,查看该下载器在PC 机中占用的串口通道,然后对应选择调试工具的串口号,设定
后,重新给模块通上电源(拔下GND 连接线,再重新连接,即可以重新上电,下载程序时冷启动也是一样的操作),这时,调试工具接收窗口将打印出相关口令。
(3)本模块出厂默认下载的是口令模式程序,用户根据串口所示的口令内容,先对着咪头发一级口令(“小捷”),待板上的D1灯点亮后,可以开始对其他二级口令的识别,如此循环操作识别。
识别操作。
如识别成功,则有相关反馈信息。
(4)调试完毕
(5)测试好模块后可以与其他单片机设备进行通讯,连接方式和测试方法与在PC 机调试一样。
如不了解51单片机如何下载和调试的请查看“YS-USB to
TTL 下载器(图
1)
飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)
使用手册.pdf ”
2、配套程序识别命令修改步骤
(1)添加关键词和识别码
打开程序,在LDChip.C 文件中找到
uint8LD_AsrAddFixed()函数,在该函数里面可以找到如下图所示内容:
----根据关键词的数量和长度修改宏定义DATE_A 和DATE_B ,例如您要添加10个关键词,在这些关键词中最长的一句长度为30,那么定义如下:
#define
DATE_A 10#define DATE_B 30
---sRecog[][]数组为关键词数组,添加内容为拼音输入方式,例如想添加“开灯”命令,则写入“kai deng ”,每个汉字间的拼音用空格隔开。
---pCode[]数组为识别码数组,所添加的识别码为预先定义好的宏定义常量值,同时必须和关键词一一对应,如上图所示,“da ma ce
飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)
shi ”命令对应的识别码为CODE_DMCS 。
(2
)定义识别码打开程序,在LDChip.h 文件中找到如下图所示内容:
---
此处即为识别码的添加和修改,用户可以根据自己的需要和喜好任意定义识别码和宏名,但必须和前面所使用的识别码配对,否则会提示未定义错误。
(3)修改处理函数
打开程序,在main.c 文件中找到void User_handle(uint8dat)函数,在该函数中可以看到如下图所示内容:
飞音云电子技术支持:751956552@ 网络销售:乐声001
(阿里旺旺ID)
---用户可以根据自己的使用情况在相对应的识别码后添加识别成功后的操作。
3、与单片机设备串口通讯
本模块可以根据个人需要嵌入到自己的产品中,如果产品功能简单可尝试利用本模块自带的IO 口进行外部连接控制。
同时还可以通过串口与产品中的单片机进行串口通信达到控制效果,如采用这种方式进行控制,用户可以对main.c 函数中的处理函数进行修改,将输出的信息更改为输出识别码,那么在每次识别成功后串口都将打印输出对应的识别码,产品中的单片机就可以对该识别码进行操作以达到控制效果。
4、程序下载说明
本模块程序的下载与STC 系列单片机下载方法一
飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)
致,采用USB 转TTL 下载器或者电脑串口转MAX232下载器进行下载程序,注意连接上模块的G(gnd)、RX(RXD)、TX(TXD)、5V ,其中RX/TX 必须和下载器交叉连接,模块上引出排针的VCC 端口为3.3V 供有需要的用户供电使用,一般情况下该端口不做任何连接。
5、其他说明
本模块除语音识别部分外,其余与普通的单片机操作一样,在程序方面只要保持驱动程序不改动,其余的操作亦和单片机操作一样,模块具备的IO 口属单片机IO 口,本模块配套的程序主要针对语音识别功能的应用,如用户测试完毕,可以将config.h 文件中的定义进行注销,程序将不再输
出提示信息。
剩余的相关单片机操作用户根据自己的需要和应用自行开发应用。
飞音云电子技术支持:751956552@ 网络销售:乐声001(阿里旺旺ID)
备注:使用者可以在了解本程序的情况下进行程序改动,带有
/*text****/文本标志部分可以删除,其余寄存器配置必须在了解模块工作原理后进行修改,只作为进一步感性了解。