Convert text to speech with OpenAI

Having various types of messages in a bot conversation can significantly improve user engagement. You can convert text to audio and send it as an audio file message in a bot conversation. This can be done using the bot variables and OpenAI text-to-speech integration.

Step 1. Add and set up Open AI integration:

Navigate to the organization integrations section:

28074.en-us_hu8cbe15767ef8a2377dab2fe84f0a256b_82737_900x0_resize_box_3.png

Add the Open AI integration:

28075.en-us_hu2a41d04a7acd2134f0b52e22ee95692a_357857_800x0_resize_box_3.png

Given the settings are correct, the status of the integration will become Active.

Step 2. Add bot variable of type Text to Speech:

Screenshot2024-05-11at21.17.01.png
In our example, we use another variable text for the conversion, so you will need to change it according to your bot structure.

Select the integration type: OpenAI Select the previously configured integration.

Step 3. Add a chat text of type Audio File to render the audio

Screenshot-2023-07-28-at-23.26.44.png

Enable custom file URL and use the previously created variable, and adjust other settings as needed.

Edit this page

Categories
Tags
See also