Book Image

Smart Internet of Things Projects

By : Agus Kurniawan
Book Image

Smart Internet of Things Projects

By: Agus Kurniawan

Overview of this book

Internet of Things (IoT) is a groundbreaking technology that involves connecting numerous physical devices to the Internet and controlling them. Creating basic IoT projects is common, but imagine building smart IoT projects that can extract data from physical devices, thereby making decisions by themselves. Our book overcomes the challenge of analyzing data from physical devices and accomplishes all that your imagination can dream up by teaching you how to build smart IoT projects. Basic statistics and various applied algorithms in data science and machine learning are introduced to accelerate your knowledge of how to integrate a decision system into a physical device. This book contains IoT projects such as building a smart temperature controller, creating your own vision machine project, building an autonomous mobile robot car, controlling IoT projects through voice commands, building IoT applications utilizing cloud technology and data science, and many more. We will also leverage a small yet powerful IoT chip, Raspberry Pi with Arduino, in order to integrate a smart decision-making system in the IoT projects.
Table of Contents (13 chapters)
Smart Internet of Things Projects
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Make Raspberry Pi speak


On previous section, we already learned how to work with voice modules on IoT board, Arduino. In this section, we will learn how to work with voice processing in software. It means we use a software to process voice.

Raspberry Pi board will be used for example to show how to work with voice processing. I use Raspberry Pi 3 board with Raspbian Jessie OS. You can use the latest Raspbian OS.

Setting up

Some Raspberry Pi models, for instance, Raspberry Pi 3, provide audio output via audio jack. You can see it in the following figure:

You can connect headphone, earphone or external speaker into Raspberry Pi board. For testing, I use extern speaker using JBL speaker.

In order to work with external speaker, we use configure our Raspberry Pi. You can set it via rasp-config on terminal. Type this command.

$ sudo raspi-config

Then, you should see the rasp-config form. Select 9 Advanced Options:

After that, you can select A9 Audio to configure Raspberry Pi audio.

Then, you should...