Setting Up Required Services
OpenAI
The OpenAI API will be used both for the chat (using ChatGPT) and Speech-to-Text (using Whisper).
- Create an account on OpenAI's website
- Set up a Paid Account
- Create an API token
- Save your token as an environment variable named
OPENAI_API_KEY
:
Using a keys file
If you're unable to save your OpenAI API key as a permanent environment variable, you can add it to a keys file. See Keys file on Installing Dependencies.
Google Cloud
Google Text-to-Speech is used to narrate your tutor, and Google Translate is used to translate your tutor's messages to your own language.
1. Setting up a Google Cloud Project
- Go to the Google Cloud Console
- Click on the project drop-down and then click on the "New Project" button
- In the "New Project" dialog, enter a name for your project
- Click on the "Create" button to create the project
Google Cloud project ID
The SDK installation process (see below) will require your project ID, and not the name you gave it. You can find your project ID on your Google Cloud Dashboard. Choose your project from the dropdown at the top of the screen, and you'll see your project ID under Project Info.
2. Setting up Google Cloud SDK
- Download the Google Cloud SDK client. Follow the installation instructions for your operating system.
- Create your credential file by running:
3. Enable APIs
Check your Google Cloud project
When accessing the links below, make sure the project you created is the one appearing on the dropdown box at the top
- Enable Google Translate API for your project
- Enable Google Text-to-Speech API for your project