Alexa Skills Projects
eBook - ePub

Alexa Skills Projects

Build exciting projects with Amazon Alexa and integrate it with Internet of Things

Madhur Bhargava

Compartir libro
  1. 250 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Alexa Skills Projects

Build exciting projects with Amazon Alexa and integrate it with Internet of Things

Madhur Bhargava

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

Get up and running with the fundamentals of Amazon Alexa and build exciting IoT projectsAbout This Book• Gain hands-on experience of working with Amazon Echo and Alexa• Build exciting IoT projects using Amazon Echo• Learn about voice-enabled smart devicesWho This Book Is ForAlexa Skills Projects is for individuals who want to have a deep understanding of the underlying technology that drives Amazon Echo and Alexa, and how it can be integrated with the Internet of Things to develop hands-on projects.What You Will Learn• Understand how Amazon Echo is already being used in various domains• Discover how an Alexa Skill is architected• Get a clear understanding of how some of the most popular Alexa Skills work• Design Alexa Skills for specific purposes and interact with Amazon Echo to execute them• Gain experience of programming for Amazon Echo• Explore future applications of Amazon Echo and other voice-activated devicesIn DetailAmazon Echo is a smart speaker developed by Amazon, which connects to Amazon's Alexa Voice Service and is entirely controlled by voice commands. Amazon Echo is currently being used for a variety of purposes such as home automation, asking generic queries, and even ordering a cab or pizza.Alexa Skills Projects starts with a basic introduction to Amazon Alexa and Echo. You will then deep dive into Alexa Programming concepts such as Intents, Slots, Lambdas and maintaining your skill's state using DynamoDB. You will get a clear understanding of how some of the most popular Alexa Skills work, and gain experience of working with real-world Amazon Echo applications. In the concluding chapters, you will explore the future of voice-enabled applications and their coverage with respect to the Internet of Things.By the end of the book, you will have learned to design Alexa Skills for specific purposes and interact with Amazon Echo to execute these skills.Style and approachA practical guide filled with real world examples that will help you understand the process of creating Alexa Skills from scratch and it's real world applications.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Alexa Skills Projects un PDF/ePUB en línea?
Sí, puedes acceder a Alexa Skills Projects de Madhur Bhargava en formato PDF o ePUB, así como a otros libros populares de Computer Science y Hardware. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2018
ISBN
9781788997584
Edición
1
Categoría
Hardware

Home Automation with Alexa

"Communication must be HOT. That's Honest, Open, and Two-Way."
– Dan Oswald
As we progress through this book, the skills we create are evolving too. We started with a simple Hello World Skill and went on to create an SMS sender, a trivia game, a skill that talks about cryptocurrencies, and in this chapter, we will be working on Ambience Manager, which can tell us the ambience parameters, such as the temperature and humidity, of our homes.
We will be designing this skill by covering the following topics:
  • Introduction to Home Automation and Ambient Sensors
  • Designing the Ambience Manager Skill
  • Developing the Mobile App
  • Developing the Ambience Manager Skill
This chapter will be covering a lot of ground since our Ambience Manager Skill will be communicating with an ambient sensor, hence it will also involve the details regarding the ambient sensor as well as a mobile app, which will help us in uploading the temperature data to the cloud.

Introduction to Home Automation and Ambient Sensors

For introductory purposes, home automation is a concept whereby a user can control standard home fixtures such as lights, music systems, televisions, and even climate, using an array of intelligent sensors rather than the traditional flipping of switches for each individual fixture. Home automation intends to keep the physical interaction of the user with the actual hardware as minimal as possible. In the recent present and the not-so-distant past, the concept of home automation was built on top of mobile operating systems (mostly Android or iOS), where the user was able to control the whole house using just a mobile device or a tablet rather than interacting with the switches of each individual device present in the house.
With the advent of Interactive Voice Assistants, the concept of home automation has transcended to the level where a user can control a home with just their voice. The actual concept of home automation is very broad and a complete solution will include a wide array of sensors. In this chapter, we will demonstrate the concept of home automation with respect to Voice-Based Personal Assistants using a key feature provided in almost every automated home, which is the gathering of information regarding climate/ambience (temperature, humidity, and so on). We will create a solution that includes an ambient sensor, a mobile app, and Alexa, from which a user can get the ambience details of their house by just asking Alexa.
Ambience monitoring solutions are not only used for home automation, but also in various warehouses (where it is imperative that the products are maintained at a certain temperature/humidity) due to the fact that they can transmit ambience data over long ranges, both over Wi-Fi and/or Bluetooth (BLE). However, those solutions are also more expensive and difficult to procure. Hence, for our needs, we will be using a popular sensor-prototyping solution called CC2650STK (popularly known as SensorTag) manufactured by Texas Instruments, that is small, easily available, perfectly fits with the home automation concept, and can be easily purchased from hobby/electronics stores or online from the Texas Instruments Inc. (TI) website, or Amazon, for a mere US$45-50.
For more information, please refer to: http://www.ti.com/tool/CC2650STK
The CC2650STK, or the SensorTag, is even smaller than a credit card, operates on a single coin cell battery, and includes 10 low-power, tiny MEMS sensors:
  • Light
  • Digital microphone
  • Magnetic sensor
  • Humidity
  • Magnetometer
  • Pressure
  • Accelerometer
  • Gyroscope
  • Ambient temperature
  • Object temperature
All these sensors are assembled in a small package, the details of which are shown in the following diagram:
Figure 6.1: Elements of a CC2650STK
This sensor kit/SensorTag can sense a lot more than temperature, however, for the purpose of prototyping our skill, we'll just limit ourselves to interrogating the ambient temperature sensor.
The overall system that we will eventually develop will also include a mobile app, which will interact with the CC2650STK SensorTag over BLE and will upload the temperature readings to the Firebase backend.
At the production level, we won't need the mobile app at all, as most practical sensors are fully capable and configured to upload data to backends over Wi-Fi. However, since we are prototyping, we are resorting to this solution.
Those readings can then be fetched from the Firebase backend by the Lambda and presented to the user when the user prompts Alexa for them.

Designing the Ambience Manager Skill

Our Ambience Manager Skill w...

Índice