簡易檢索 / 詳目顯示

研究生: 吳雲漢
Yun-Han Wu
論文名稱: 一個聲控智慧家庭系統之設計
Design of a Voice Controlled Smart Home System
指導教授: 吳傳嘉
Chwan-Chia Wu
口試委員: 張俊明
Chun-Ming Chang
黎碧煌
Bih-Hwang Lee
學位類別: 碩士
Master
系所名稱: 電資學院 - 電機工程系
Department of Electrical Engineering
論文出版年: 2016
畢業學年度: 104
語文別: 中文
論文頁數: 115
中文關鍵詞: 智慧家庭聲控AlexaSkillKitAlexaVoiceService
外文關鍵詞: Smat Home, Voice control, Alexa Skill Kit, Alexa Voice Service
相關次數: 點閱:271下載:1
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 隨著科技的進步,具有連網功能的裝置數量不斷上升,至今已逐漸邁向物聯網時代。物聯網在人類生活上的應用,最具代表的應用就是智慧家庭系統。
    現今的智慧家庭系統(如Nest、Samsung SmartThings)均提供可控制智慧家庭的手機應用程式,使用此手機應用程式可隨時讀取家中智慧家庭裝置的狀態;也可透過此手機應用程式控制智慧家庭裝置。然而在科技的進步下,人機互動的方式已從過去常用的觸控發展出新的互動方式─聲控。
    近年來越來越多有關聲控的應用,反映了聲控在生活中的特定時機和環境可以大幅增加人類生活的方便性。目前市面上的語音助理主要有AmazonAlexa、Apple Siri、Google Now 和Microsoft Cortana,其中僅有Amazon Alexa開放語音控制API,讓開發者可在裝置或應用程式上實作Alexa 語音服務,也可自行開發語音服務。基於以上理由,本研究選用Amazon Alexa 語音服務來聲控智慧家庭系統。
    本研使用Alexa 技術套件─Alexa Voice Service,在手機應用程式上實作Alexa 語音功能;使用Alexa 技術套件─Alexa Skill Kit 建立控制智慧家庭系統的Alexa Skill,所連接的兩個智慧家庭系統分別為─Nest 智慧家庭系統、EE610智慧家庭系統。Nest Skill 提供使用者透過Alexa 語音服務控制Nest 智慧家庭裝置;EE610 Skill 有兩項功能:一、提供使用者透過Alexa 語音服務控制EE610 Thermostat;二、在EE610 Skill 手機應用程式上使用EE610 Skill 讓使用者一邊觀看Onvif IP Camera 即時監控影像,一邊控制Onvif IP Camera。本研究實作整個Alexa 聲控系統,控制多個智慧家庭裝置,為生活帶來更大的方便性。


    As technology advances, the number of devices with networking capabilities increased in a very fast speed, and it has been gradually moving towards the age of Internet of things. As of Internet of things’ applications in human life, Smart Home system is the most distinctive representative. Companies such as Nest, Samsung develope smart home systems and smart home apps. Users can use these apps to read smart home devices’ status at any time; also user can set the status of Smart Home device through this app. However, in the progress of science and technology, human-machine interface control is no longer confined to touch control, but evolves to a new human-machine interface control ─ Voice Control. Nowadays, a variety of voice-controlled applications reflect that voice-controlled significantly enhance the convenience of human life under specific conditions or environment. Currently on the market, there are mainly 4 voice assistants: Amazon Alexa, Apple Siri, Google Now and Microsoft Cortana, which only Amazon Alexa has opened voice API. Developers can implement Alexa services on devices or applications, also, developer can create their own voice services. For the above reasons, this research choose the Amazon Alexa services to control smart home systems.
    This research use Alexa Voice Service to intergrate Alexa-capabilities into mobile application; use Alexa Skill Kit to create Alexa skill to control Smart Home systems which are Nest smart home system and EE610 smart home system. Nest skill allows users to use their voice to control Nest smart home devices via Alexa. As for, EE610 skill, it has two functions: one is to allow users to control EE610 Thermostat via Alexa. The other one is that Using EE610 Skill on EE610 Skill App will allow users to watch Onvif IP Camera real time streaming and pan, tilt, zooming the camera at the same time. This research implements Alexa voice-controlled system, controling multiple smart home systems, and brings convience to life.

    摘要 I ABSTRACT II 誌謝 III 目 錄 IV 圖索引 VI 第一章 緒論 1 1.1 研究背景 1 1.2 研究動機與目的 2 1.3 研究內容 5 1.4 章節架構 5 第二章 系統軟體架構介紹 6 2.1 Android簡介 6 2.1.1 Android系統架構 6 2.1.2 Android特色 8 2.2開發環境 11 2.2.1 Java 11 2.2.2 Android Studio 12 2.2.3 JavaScript 13 2.3 Alexa語音助理 14 2.3.1 Alexa服務系統架構 15 2.3.2 Alexa安全認證 15 2.3.3 Skill 19 2.3.4 Amazon Alexa App 20 2.3.5 AWS Lambda 21 2.3.6 Alexa技術套件─Alexa Voice Service 21 2.3.7 Alexa技術套件─Alexa Skill Kit 22 2.3.8 Smart Home Skill API 24 2.4 Nest智慧家電系統 25 2.4.1 Nest系統架構 25 2.4.2 Nest安全認證 26 2.4.3 Nest智慧家電 26 2.5 Onvif監控規範標準簡介 28 第三章 系統設計 30 3.1系統架構 30 3.2 Alexa Voice Service應用程式系統設計 32 3.2.1 Alexa Voice Service應用程式規範 32 3.2.2 Alexa Voice Service應用程式流程圖 35 3.3 Alexa Skill Kit語音服務系統設計 36 3.3.1 Alexa Skill Kit語音服務設計規範 37 3.3.2 Alexa Skill Kit語音服務運作流程 44 第四章 Alexa Voice Service 實作 51 4.1註冊Alexa Voice Service產品 51 4.1.1應用程式類型資訊 52 4.1.2安全用戶資料 52 4.2安裝AlexaAndroid Library 52 4.2.1建立專案、安裝AlexaAndroid Library 53 4.2.2參數設定 54 4.2.3測試Login with Amazon認證服務 55 4.3 Alexa Voice Service手機應用程式實作流程 57 4.4 Nest 官方建立語音服務來控制Nest device 60 4.4.1使用Alexa之認證與授權 60 4.4.2控制Nest learning thermostat 62 第五章 Alexa Skill Kit實作 69 5.1 Nest Skill實作 69 5.1.1控制Nest智慧家庭裝置 69 5.1.2 Nest Skill語音服務規範 84 5.1.3 Nest Skill的Skill adapter設計 87 5.1.4 Nest Skill運作流程 89 5.1.5與Nest官方的Alexa Skill比較 92 5.2 EE610 Skill實作 93 5.2.1控制EE610 Server智慧家電裝置 93 5.2.2 EE610 Skill語音服務規範 98 5.2.3 EE610 Skill adapter設計 102 5.2.4 EE610 Skill手機應用程式設計 103 5.2.5 EE610 Skill運作流程 106 第六章 結論與未來展望 110 參考文獻 112 附錄一 取得Android App Signature 116

    1. Internet of Things –From Research and Innovation to Market Deployment, in Communications, O. Vermesan and P. Friess, Editors. 2014. p. 9.
    2. About the Nest service. Available from: https://developers.nest.com/documentation/cloud/architecture-overview/.
    3. 2016 Internet Trends, 2016: Kleiner Perkins Caufield Byers(KPCB). pp. 111-131.
    4. Intelligent Voice Assistants – Q1 2016 User Adoption Survey Results, 2016: MindMeld. pp. 14-15.
    5. Rudzionis, V., R. Maskeliunas, and K. Driaunys. Voice controlled environment for the assistive tools and living space control. in Computer Science and Information Systems (FedCSIS), 2012 Federated Conference on. 2012.
    6. Aripin, N.b. and M.B. Othman. Voice control of home appliances using Android. in Electrical Power, Electronics, Communications, Controls and Informatics Seminar (EECCIS), 2014. 2014.
    7. Manssor, S.A.F., A.A. Osman, and S.D. Awadalkareem. Controlling home devices for handicapped people via voice command techniques. in Computing, Control, Networking, Electronics and Embedded Systems Engineering (ICCNEEE), 2015 International Conference on. 2015.
    8. Mittal, Y., et al. A voice-controlled multi-functional Smart Home Automation System. in 2015 Annual IEEE India Conference (INDICON). 2015.
    9. Mishra, A., et al. A voice-controlled personal assistant robot. in Industrial Instrumentation and Control (ICIC), 2015 International Conference on. 2015.
    10. Jung, S.W., et al. A study on robust control of mobile robot by voice command. in Control, Automation and Systems (ICCAS), 2013 13th International Conference on. 2013.
    11. Kumar, K., et al. Voice-controlled object tracking smart robot. in Signal Processing, Computing and Control (ISPCC), 2015 International Conference on. 2015.
    12. Shim, B.K., et al. An intelligent control of mobile robot based on voice command. in Control, Automation and Systems (ICCAS), 2012 12th International Conference on. 2012.
    13. Dubey, P., et al. Development of a wireless voice control system for rehabilitative devices. in Circuit, Power and Computing Technologies (ICCPCT), 2014 International Conference on. 2014.
    14. Fanfeng, Z. Application Research of Voice Control in Reading Assistive Device for Visually Impaired Persons. in 2010 International Conference on Multimedia Information Networking and Security. 2010.
    15. Jeet, V., H.S. Dhillon, and S. Bhatia. Radio Frequency Home Appliance Control Based on Head Tracking and Voice Control for Disabled Person. in Communication Systems and Network Technologies (CSNT), 2015 Fifth International Conference on. 2015.
    16. Brady, P., Anatomy & Physiology of an Android, 2008: Google.
    17. Android. Available from: https://zh.wikipedia.org/wiki/Android.
    18. Java. Available from: https://zh.wikipedia.org/wiki/Java.
    19. Android Studio. Available from: https://zh.wikipedia.org/wiki/Android_Studio.
    20. JavaScript. Available from: https://zh.wikipedia.org/wiki/JavaScript.
    21. Amazon Echo Available from: https://www.amazon.com/Amazon-Echo-Bluetooth-Speaker-with-WiFi-Alexa/dp/B00X4WHP5E.
    22. Login with Amazon. Available from: http://login.amazon.com/.
    23. OAuth 2.0. Available from: http://oauth.net/2/.
    24. Alexa Skills Kit Glossary. Available from: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-skills-kit-glossary.
    25. AWS Lambda Documentation. Available from: https://aws.amazon.com/tw/documentation/lambda/.
    26. Alexa Voice Service. Available from: https://developer.amazon.com/AVS.
    27. Alexa Skill Kit. Available from: https://developer.amazon.com/ask.
    28. Alexa Skills Kit Custom Interaction Model Reference. Available from: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-skills-kit-interaction-model-reference.
    29. Linking an Alexa User with a User in Your System. Available from: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/linking-an-alexa-user-with-a-user-in-your-system.
    30. Smart Home Skill API Available from: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/content/smart-home.
    31. Nest Labs. Available from: https://en.wikipedia.org/wiki/Nest_Labs.
    32. Nesr architecture overview. Available from: https://developers.nest.com/documentation/cloud/architecture-overview.
    33. Nest authorization overview. Available from: https://developers.nest.com/documentation/cloud/authorization-overview.
    34. Structure guide. Available from: https://developers.nest.com/documentation/cloud/structure-guide/.
    35. ONVIF. Available from: https://en.wikipedia.org/wiki/ONVIF.
    36. Getting Started with the Alexa Voice Service. Available from: https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/getting-started-with-the-alexa-voice-service.
    37. Android App Signatures and API Keys. Available from: https://developer.amazon.com/appsandservices/apis/engage/login-with-amazon/docs/android_app_signatures.html.
    38. Getting Started with the Alexa Skills Kit. Available from: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/getting-started-guide.
    39. Choosing the Invocation Name for a Custom Skill. Available from: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/choosing-the-invocation-name-for-an-alexa-skill.
    40. Defining the Voice Interface. Available from: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/defining-the-voice-interface.
    41. Creating an AWS Lambda Function for a Custom Skill. Available from: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/developing-an-alexa-skill-as-a-lambda-function.
    42. Authorization Code Grant. Available from: https://developer.amazon.com/appsandservices/apis/engage/login-with-amazon/docs/authorization_code_grant.html.
    43. Blaschko, W. AlexaAndroid Library. Available from: https://github.com/willblaschko/AlexaAndroid.
    44. AudioRecord. Available from: https://developer.android.com/reference/android/media/AudioRecord.html.
    45. SpeechRecognizer Interface. Available from: https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/reference/speechrecognizer.
    46. Learn how to control your Nest Thermostat with Amazon Alexa on Echo and Fire TV. Available from: https://nest.com/support/article/Learn-how-to-control-your-Nest-Thermostat-with-Amazon-Alexa-on-Echo-and-Fire-TV.
    47. Nest products. Available from: https://developers.nest.com/documentation/cloud/brandguide-products/.
    48. Permissions overview. Available from: https://developers.nest.com/documentation/cloud/permissions-overview/.
    49. Data model overview. Available from: https://developers.nest.com/documentation/cloud/api-data-model-overview/.
    50. REST quick guide. Available from: https://developers.nest.com/documentation/cloud/rest-quick-guide.
    51. 蕭冠萌, On the Control of Onvif Compatible IP Camera via Android App, in 國立台灣科技大學電機工程學系碩士論文2016.
    52. 戴浩仲, Design of a Smart Thermostat, in 國立台灣科技大學電機工程學系碩士論文2016.

    QR CODE