Testing the app

To test the app, from the root of the application folder, run this:

$ npm run devor$ yarn dev

This will launch our application. From the home page, click on Create Thread and create a new thread named Audio API Test, or any name you like. Once we create a new thread and navigate to the view thread page, we should see the new reply section, as shown here:

When we click on Reply with Audio, we should see a popup where we can record an audio file, and then preview it and download it. Once we click on the record button, we should see the browser asking for user permissions to capture audio, if we have not already done so:

Once ...

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.