Skip to content

Latest commit

 

History

History

translation-chatbot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Translatorbot

This app listens for user speech, then translates that speech to Spanish and speaks the translation back to the user using text-to-speech. It's probably most useful with multiple users talking to each other, along with some manual track subscription management in the Daily call.

See a quick video walkthrough of the code here: https://www.loom.com/share/59fdddf129534dc2be4dde3cc6ebe8de

Get started

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

cp env.example .env # and add your credentials

Run the server

python server.py

Then, visit http://localhost:7860/start in your browser to start a translatorbot session.

Build and test the Docker image

docker build -t chatbot .
docker run --env-file .env -p 7860:7860 chatbot