Before you run speaker.py, you'll have to run this in your terminal: export GOOGLE_APPLICATION_CREDENTIALS="path/to/file" ex: export GOOGLE_APPLICATION_CREDENTIALS="/Users/sunjana/Downloads/creds.json"