Speech recognition technology is a hotspot in the field of information technology in recent years,and has made remarkable progress.Applying speech recognition technology to the field of smart home is an important direction for the development of smart home in the future.At the same time,with the popularity of smart phones and their more and more powerful functions,it is foreseeable that smart phones will become the mainstream control terminals of smart home systems in the future.Android is one of the most popular platforms for smartphones because of its openness,rich hardware resources,excellent configuration,free development,and seamless integration with Google applications.The application of Android-based mobile phone to smart home control system will add more convenient and better user experience.This thesis deeply studies the theoretical knowledge of speech recognition principle,speech recognition algorithm,speech cloud technology,Android technology,BLE technology and OSAL operating system.Through the research on the mobile micro-grid system,the overall design of the system is proposed in combination with the subject.The data transmission format of the network is customized,and the hardware design of the system is given.The temperature and humidity sensor driver and the infrared transmission subroutine are written.Then in the IAR Embedded Workbench development environment,the design of the slave BLE module is completed based on the BLE-CC254X-1.3.2 Bluetooth protocol stack,and the Bluetooth connection and data exchange are realized by the OSAL operating system event-driven mechanism.At the same time,the Android development environment is built.The Baidu speech recognition SDK(Android version)is obtained through a series of registration and configuration on the Baidu development platform.By calling the API provided by the Android SDK,the mobile app is created using the Eclipse tool and the Java language.The Bluetooth search interface,voice control interface and command query interface are completed,and the functions of the mobile terminal such as peripheral device scan connection,data exchange,online voice recognition,data storage and query are also completed.At the end of the paper,the system is tested on the function of online speech recognition,the function of voice control LED lamp and the upload and display function of temperature and humidity.The stability test of Bluetooth communication is tested as well.Test results are given and detailed analysis is performed.This paper combines voice cloud technology,Android technology and BLE technology to realize the design of Android mobile phone voice control home system.The system has the characteristics of low cost,low power consumption and strong flexibility of mobile application software.At the same time,because of the use of voice cloud technology,the success rate of speech recognition is high,and the control effect is good. |