Install Google Cloud SDK

Download the Google Cloud SDK, and install it.

Open up a terminal and run gcloud init

Log into the browser window that pops up

And grant permissions

After you're authenticated, the SDK will ask you to pick the project you want to work on

You'll next be asked to pick a region, for this kinda project it doesn't matter where you pick so go with whatever is close to you.

Finally, you're configured!

Configure Software

Fork/clone the repository to your local computer, and go to that directory in your terminal

Edit your local copy of app.yaml in the repo, change the cloud storage bucket to match the name you made earlier. For session secret key generate a random hex string. It's used to authenticate the session, and has nothing to do with the bucket authentication.

Edit static/scripts/app.js and find the wantedWords and fillerWords arrays and change them to whatever words you want to prompt for

Finally, run pip install -t lib -r requirements.txt

Local Deploy & Test

Before you upload up to GCP you can run the project locally! Run from within the project folder

Due to my kinda messed up Python2/3 setup, I had to manually run but either way, install the components

Install the extensions as prompted, and if necessary, rerun the appserver script, and permit Python2 access to the network

Open up a browser and visit http://localhost:8080/ to see the server setup, you should have an instance running

Click on default to load the should look like this!

Deploy & Test

From the directory, in terminal, run gcloud app deploy. The first time you run it you'll be asked to setup the region

Select your local region

Type Y to continue the deployment!

Finally, visit the URL in question or just type gcloud app browse

The site is now live!

Check Recordings

After you use the open recording app, visit the output bucket you made, you should see many ogg files one for each utterance

This guide was first published on Aug 05, 2019. It was last updated on Mar 08, 2024.

This page (Speech Recorder Setup) was last updated on Mar 08, 2024.

Text editor powered by tinymce.