Uploading a video and exporting the speech into a text file with Google's ML API and correcting the grammar with openAI api.
If you want to run this locally:
-
Set Up a Google Cloud Account: https://console.cloud.google.com/freetrial
-
Create a new Google Cloud Project:
Go to the Cloud Console.
Click the project selector in the upper-left corner and select New Project.
Give the project a name and click Create.
Click the project selector again and select your new project. -
What you need on your local machine:
Google Cloud SDK i.e. gcloud command-line tool: https://cloud.google.com/sdk/docs/install
Python3 ffmpegsudo apt install ffmpeg
OpenAI account and an API-key: https://beta.openai.com/account/api-keys
Store the api-key in to an environment variable:export OPENAI_API_KEY="your-api-key" -
Copy the video you want to get speech out of into the root directory
-
Run install.sh to install all the dependencies and prepare your google cloud account for this project. Answer all the prompts.
bash install.sh -
Then run the project
bash run.sh
