bmount / ai-language-tutor

Interactive, spoken language learning exercises. ScaleAI Hackathon project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI Language Learning Tutor [ScaleAI Hackathon]

This is an application for interactive language learning. It's something I've wanted for a while, especially since my free time to learn languages does not have any time zone overlap with any available instructors in Europe.

The main idea is to be a conversation partner who is able to make corrections and explain things. Here is what it looks like so far (click through for video):

AI Language Tutor interaction

Setup

We rely on 2 external services that require authentication (and likely a modest payment):

  1. OpenAI's GPT API.
  2. Google Cloud's text-to-voice synthesis.

Authentication to OpenAI is handled by setting the environment variable OPENAI_API_KEY to your API key. Expect to incur order of $0.01 in charges per interaction.

Authentication and authorization to Google is covered in the script tts-setup.sh (where 'tts' is short for 'text to speech'.) GCP also requires a Google account of some kind.

Building and Running

Typing make from the project root should download and build everything and start the server. It will also set up a service account that will be used for GCP text-to-speech. (Or, at least, any missing pieces -- compilers or cloud accounts etc -- should be explained if any step fails.)

License: MIT

Screenshot

Screenshot

About

Interactive, spoken language learning exercises. ScaleAI Hackathon project.


Languages

Language:Python 44.7%Language:HTML 23.9%Language:JavaScript 23.6%Language:Go 5.5%Language:Shell 1.5%Language:Makefile 0.8%