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](https://academy.quriobot.com/response-connections-integrations/open-ai-integration/convert-text-to-speech-with-open-ai/28163.en-us_hue3690f2b888974f1d9c9076a417c76e3_130789_20x0_resize_box_3.png)
Add the Open AI integration:
![28075.en-us_hu2a41d04a7acd2134f0b52e22ee95692a_357857_800x0_resize_box_3.png](https://academy.quriobot.com/response-connections-integrations/open-ai-integration/convert-text-to-speech-with-open-ai/28164.en-us_hu2fe3854d7e83f8e1bd7ecee9b6c8fb36_131966_20x0_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:
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](https://academy.quriobot.com/response-connections-integrations/open-ai-integration/convert-text-to-speech-with-open-ai/28168.en-us_hu83891dba3aa3a9d6a3d0858c30b6e3c3_184340_20x0_resize_box_3.png)
Enable custom file URL and use the previously created variable, and adjust other settings as needed.