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 6, Cloud 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.
Solution design
To achieve our solution, we are going to do the following:
On the view-thread page, we are going to provide a button next to
Reply
namedReply with Audio
to keep things simple- The user is going to record an audio to our server using this interface
- The audio will be saved on our servers temporarily
- The uploaded audio will then be sent to...