8000 GitHub - Gordon-BP/Botpress-Voice-Demo: This simple project is a template showing how you can integrated 3rd party services to bring speech to Botpress bots.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This simple project is a template showing how you can integrated 3rd party services to bring speech to Botpress bots.

Notifications You must be signed in to change notification settings

Gordon-BP/Botpress-Voice-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Botpress Voice React Project

Talk to your Botpress bot, and give it a voice to talk back! This simple project is a template showing how you can integrated 3rd party services to bring speech to Botpress bots. All of the services used have very generous free tiers, so this project is free to spin up.

Services Used:

  • Botpress Cloud for the chatbot itself. Botpress is a cloud-hosted, GPT-native platform for quickly building chatbots.
  • Cloudflare AI Workers for speech-to-text. Cloudflare AI Workers offer inference APIs for popular large language models. They have a very generous free tier, too!
  • Elevnlabs for text-to-speech. They provide great-sounding voices and have a generous free tier.

This project uses Node.js and React.

Quickstart

1. Clone this repo

git clone github.com/

2. Make a new .env

Copy .env.example and rename it to .env.

3. Publish your Botpress Bot and get its info

You need your bot's BotID and ClientID. The easiest way to get this is to publish your bot, then go to the Admin panel > Integrations > Webchat > Configurable

Botpress Webchat configurable

4. Add your botId and clientId into the app

Open Chatbot.tsx and add your botId and clientId to lines 25 and 28, respectively. If you have custom CSS, you can add its link to line 34. The botpress styler makes it easy to generate a CSS for your bot!

5. Get your Cloudflare Account ID and API Key

Your cloudflare account id is visible in the sidebar when you visit your cloudflare dashboard. alt text

For your API key, click the 'manage API tokens' and then make a new API key.

alt text

Save these to the appropriate lines in your new .env file from step 2.

6. Get your Elevenlabs API Key and Voice

After signing up for elevenlabs, you can visit their voice library to find a voice you like. After adding it to your account, you can find the voice ID by hovering over the icon in the top right corner.

alt text

To get your elevenlabs API key, go to your profile and click on API keys. You can find your API key there.

alt text

Save these to the appropriate lines in your new .env file from step 2.

7. Run the project

npm run start

About

This simple project is a template showing how you can integrated 3rd party services to bring speech to Botpress bots.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0