Blah.
python3 -m venv venv
To activate on UNIX-based systems: source venv/bin/activate
.
To deactivate: deactivate
.
pip install -r requirements.txt
Authentication is typically done through Application Default Credentials which means you do not have to change the code to authenticate as long as your environment has credentials. You have a few options for setting up authentication:
Use the Google Cloud SDK gcloud auth application-default login
.
Credentials are already set-up. However, you may need to configure your Compute Engine instance with additional scopes
You can create a Service Account key file. This file can be used to authenticate to Google Cloud Platform services from any environment. To use the file, set the GOOGLE_APPLICATION_CREDENTIALS
environment variable to the path to the key file, for example:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
python src/run.py
arecord -f S16_LE -c1 -r16000 filaname.wav