How would you like to have a voice conversation in any language of your choice?
This is now possible with AI. ChatGPT and ElevenLabs technology together is extremely powerful. We can now create chatbots that speak in a very human sounding voice and could perform the following:
This is truly an exciting time to be a developer with a significant amount of technology that when combined packs a powerful punch.
Download package
Setup backend
cd chatbot/backend
python3 -m venv venv
source venv/bin/activate
source venv/Scripts/activate
pip3 install --upgrade pip
pip3 install openai python-decouple fastapi "uvicorn[standard]" python-multipart
Or use this alternative method (although this alternative method might not work if using Windows)
pip3 install -r requirements.txt
touch .env
For ElevenLabs, just click on your profile picture to get the key once logged in:
Update your .env file with the following. You can see your .env by typing sudo nano .env or just by clicking on the file if you are in VS Code.
OPEN_AI_ORG=enter-you-key-here
OPEN_AI_KEY=enter-you-key-here
ELEVEN_LABS_API_KEY=enter-you-key-here
uvicorn main:app
Alternatively, you can ensure your server resets every time you make a change by typing:
uvicorn main:app --reload
You can check your server is working by going to Chrome and entering:
Setup frontend
cd ..
cd chatbot/frontend
yarn --exact
yarn build
yarn dev
You can check your dev server is working by going to by going to Chrome and entering: http://localhost:5173/health
yarn start
You can check your live server is working by going to Chrome and entering:
http://localhost:4173/healthYou are now ready to learn Spanish
Your bot is ready and you can now test it out using Google Chrome