https://discord.gg/botpress logo
Voice Chat
# 🤝help
m
I want to build a chatbot and connect it to my website. The idea is simple: If someone sends text → the bot replies with text. If someone sends voice → the bot replies with voice. The text flow is straightforward, but I need guidance on the voice flow: How can I implement this using OpenAI (for speech-to-text) and ElevenLabs (for text-to-speech) integrations? Is it possible for a user to record and send a voice message directly to the chatbot through the website? Any insights, best practices, or examples would be really helpful. Thanks!
l
Yes very much possible, I have used this on whatsapp + botpress, so web chat + botpress should also be possible connecting to elevenlabs -> follow the documentation of elevenlabs STT TTS https://cdn.discordapp.com/attachments/1411763889863000255/1412091891419447326/image.png?ex=68b7088e&is=68b5b70e&hm=f1a901db4094f4e487dfefd8ddd008815ecaf8a489cf5286edbbece594c8d397&
m
But in the photo the chatbot replies in text, I need it to reply with a voice message (text to speech), is it possible?
l
Yes it should be - send the text output to elevenlabs reply wih the audio received from elevenlabs
t
i have a simillar doubt i used eleven labs api to convert the text received to the audio url then how i use the audio url in worflow to send the audio send message
m
I think you should send the URL in the "Audio" card
p
is it working? i've integrated elevenlabs, but still wondering how to enable the voice.
5 Views