flat-fuchsia•16mo ago
How can i use voice from Eleven Labs for every Voice Outpout.
I created a bot using a voice from Eleven Labs, I am able to translate a single text, but I don't know how to translate every AI response using that voice. I'm using the Eleven lab function and it works very wll for one text
1 Reply
To use a voice from Eleven Labs for every Voice Output in your Voiceflow project, you need to set the custom Text-to-Speech (TTS) for each block where the bot responds. Here's how you can do it:
1. Create your Eleven Labs function: First, ensure that you have created a function that uses the Eleven Labs API to convert text to speech. This function should take a string of text as input and return the audio file or stream that represents the spoken version of that text.
2. Use the function in Voice Out blocks: In your Voiceflow project, for every Voice Out block where the bot responds, you need to use this function to convert the response text to speech.
3. Set the response: In the Voice Out block, instead of typing the response text directly, call your Eleven Labs function with the response text as the argument. The function will convert the text to speech using the Eleven Labs voice, and the audio will be used as the bot's response.
Remember, you need to do this for every Voice Out block in your project to ensure that all bot responses use the Eleven Labs voice.
Please note that this requires some coding knowledge and familiarity with APIs. If you're not comfortable with this, you might want to consider using a built-in voice that's available in Voiceflow, or getting help from someone with more technical expertise.
For more information on how to use custom TTS with Voiceflow, you can refer to the Voiceflow documentation here.