Reader small image

You're reading from  Learning Microsoft Cognitive Services

Product typeBook
Published inMar 2017
Reading LevelIntermediate
PublisherPackt
ISBN-139781786467843
Edition1st Edition
Languages
Right arrow
Author (1)
Leif Larsen
Leif Larsen
author image
Leif Larsen

Leif Larsen is a software engineer based in Norway. After earning a degree in computer engineering, he went on to work with the design and configuration of industrial control systems, for the most part, in the oil and gas industry. Over the last few years, he has worked as a developer, developing and maintaining geographical information systems, working with .NET technology. Today, he is working with a start-up, developing a brand new SaaS product. In his spare time, he develops mobile apps and explores new technologies to keep up with the high-paced tech world. You can find out more about him by checking out his blog, "Leif Larsen", and following him on Twitter (@leif_larsen) and LinkedIn (lhlarsen).
Read more about Leif Larsen

Right arrow

Chapter 10. Connecting the Pieces

The previous chapter focused on the last API umbrella, covering Bing Search APIs. Throughout this chapter, we will connect the pieces. Our Smart-House application can currently utilize several APIs, but mostly individually. We will see how to connect LUIS, image analysis, Bing News Search, and Bing Speech APIs together. We will also look at the next steps that you can take after completing this book.

Completing this chapter will take us through the following topics:

  • Making an application smarter, by connecting several APIs

  • Real-life applications utilizing Microsoft Cognitive Services

  • Next steps

Connecting the pieces


Until now, we have seen all the different APIs, mostly as individual APIs. The whole idea behind the Smart-House application is to utilize several APIs at the same time.

Throughout this chapter, we will add a new intent in LUIS. This intent is for getting the latest news, optionally for different topics.

Further on, we want to actually search for news, using Bing News API. We will do so by allowing the end user to speak a command, converting spoken audio to text, with the Bing Speech API.

When we have some news articles, we want to get the headline, publishing date, and description. In case there is a corresponding image to the article, we want to get a description of the image. We will do this by adding the Computer Vision API.

With all the news article information in place, we want to get that read back to us. We will do this by converting text to spoken audio.

Creating an intent

Let us start by adding our new intent. Head over to https://www.luis.ai, and log on with the...

Real-life applications using Microsoft Cognitive Services


There are some examples of applications that currently utilize Microsoft Cognitive Services. We will look at some of them here.

Uber

Most of you have probably already heard of Uber. For those that have not, here is a short summary:

Uber is an app that was created to match drivers with people looking for rides. People can open the app, and request a ride. Drivers (registered Uber drivers, that is) located nearby can then pick up the person requesting a ride. After a ride, the driver is payed through the app.

To ensure a more secure experience, a photo of the driver is sent to the passenger. This way, passengers can be safe that the driver is who they say they are. This may cause problems, as drivers may not always look like their photo. They may have grown a beard, or shaved off a beard, or similar changes may have occurred.

To account for this, Uber decided to add a new feature. Each driver needs to sign in when they are using the app...

Where to go from here


By now you should know the basics of Microsoft Cognitive Services, enough to get started with building your own applications.

A natural way forward is to play around with the different APIs. The APIs are continuously improved and worked upon. It is worth going through the API documentation, to keep up with changes and to learn more. In addition, Microsoft keeps adding new APIs to the services. Through the writing process of this book, I have seen three new APIs added. Those might be interesting to look into.

Another possibility is to build upon the Smart-House application that we have started on. We have put down some ground work, but there are still a lot of opportunities. Perhaps you can work on improving what we have already got. Maybe you see some opportunities to mix in other APIs, which we have covered.

Reading through this book might have given you some ideas of your own. A great way forward would be to implement them.

Like we have seen, there are many possible areas...

Summary


Through this chapter, we have completed our journey. We created a new intent for news retrieval. We learnt how to deal with an action, triggered from this intent. Based on voice commands, we managed to fetch the latest news, for one topic, and have the Smart-House application read it back to us. Next, we went on to see what kind of real-life applications are utilizing Microsoft Cognitive Services today. Finally, we concluded this chapter by looking at some natural next steps that you can take after completing this book.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Learning Microsoft Cognitive Services
Published in: Mar 2017Publisher: PacktISBN-13: 9781786467843
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime

Author (1)

author image
Leif Larsen

Leif Larsen is a software engineer based in Norway. After earning a degree in computer engineering, he went on to work with the design and configuration of industrial control systems, for the most part, in the oil and gas industry. Over the last few years, he has worked as a developer, developing and maintaining geographical information systems, working with .NET technology. Today, he is working with a start-up, developing a brand new SaaS product. In his spare time, he develops mobile apps and explores new technologies to keep up with the high-paced tech world. You can find out more about him by checking out his blog, "Leif Larsen", and following him on Twitter (@leif_larsen) and LinkedIn (lhlarsen).
Read more about Leif Larsen