Integrating Cloud Speech API with SmartExchange

Now that we have seen what can be done using Cloud Speech API, let's actually integrate this into SmartExchange. We will allow the users to post an audio response to a thread by recoding using WebRTC. This audio sample will then be sent to the Cloud Speech API to get the text. In this chapter, we are going to only print the text and let the users view/hear the audio sample. This example can be further extended, which I will talk about in Chapter 6Cloud Natural Language The final output of the uploaded audio and its contents will look as shown here:

So, let's get started with the implementation. ...

Get Google Cloud AI Services Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.