> ## Documentation Index
> Fetch the complete documentation index at: https://magicads.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Voiceover Setup

> Enhance your Davinci AI platform with advanced Text to Speech generation capabilities. This guide walks you through setting up and leveraging AI Voiceover feature to synthesize text to speech.

## Introduction

Davinci AI’s AI Voiceover features unlocks advanced text to speech generation capabilities for your platform. With access to cutting edge solutions for 5 different AI Vendors, you can synthesize text to speech in thousands of different voices and in more than 140 different languages and dialects.

### List of Text to Speech vendors

<Card title="Supported AI vendors">
  * Google Cloud Platfrom - Text to Speech Service
  * Microsoft Azure - Text to Speech Service
  * Amazon Web Services - Text to Speech Service
  * IBM Cloud - Text to Speech Service
  * Elevenlabs - Text to Speech Service
</Card>

## Setup AI Voiceover

To be able to use AI Voicover feature, follow these steps to setup integration.

<Steps>
  <Step title="Step 1: Configure AI Vendors">
    Star with configuration of preferred cloud vendors. AI Voiceover supports **GCP**, **Azure**, **AWS**, **Elevenlabs**, **IBM** vendors. <br />
    You can configure and enable any comination of these vendors.
    <Note>You can activate only 1 vendor or all of them at the same time as needed</Note>
    <Warning>Please note that only the Voices and Languages of the activated vendor(s) will be available for your users.</Warning>

    ### Configure preferred AI Voiceover Vendors

    Use each link to get a detailed step by step guide for setting up each vendor

    <CardGroup cols={2}>
      <Card title="Google Cloud Platform" horizontal href="/integrations/ai/google">
        Setup TTS feature of GCP
      </Card>

      <Card title="Microsoft Azure" horizontal href="/integrations/ai/azure">
        Setup TTS feature of Azure
      </Card>

      <Card title="Amazon Web Services" horizontal href="/integrations/ai/aws">
        Setup TTS feature of AWS
      </Card>

      <Card title="Elevenlabs" horizontal href="/integrations/ai/elevenlabs">
        Setup TTS feature of Elevenlabs
      </Card>

      <Card title="IBM Watson" horizontal href="/extensions/ibm">
        Setup TTS feature of IBM `(Extension)`
      </Card>

      <Card title="Speechify" horizontal href="/extensions/speechify-tts">
        Setup TTS feature of Speechify `(Extension)`
      </Card>
    </CardGroup>
  </Step>

  <Step title="Step 2: Configure FFMPEG Codec">
    As most shared hostings providers do not allow you to run **ffmpeg codec**, script comes with one included. Follow these steps to configure it accordingly:
    <Note>FFPEG codec is needed to merge end results into a single audio file, or to add background music into an audio file etc</Note>

    1. Make sure you have php `shell_exec` command enabled in your hosting.
       <Warning>As stated in the [requirements](/requirements) section, it is an important feature that must be enabled in your php settings</Warning>
    2. In the root directory of your domain, go to **vendor** -> **ffmpeg** folder.
    3. Right click on the **ffmpeg** codec there and select **Change Permission**

    <img src="https://mintcdn.com/magicads/sOSxKmkB3A1LT8Q_/images/core/voiceover/ffmpeg-1.png?fit=max&auto=format&n=sOSxKmkB3A1LT8Q_&q=85&s=bf9c162002dd407b60c288998dcf21ed" width="368" height="356" data-path="images/core/voiceover/ffmpeg-1.png" />

    4. Change file permission of ffmpeg to be executable by anyone

    <img src="https://mintcdn.com/magicads/sOSxKmkB3A1LT8Q_/images/core/voiceover/ffmpeg-2.png?fit=max&auto=format&n=sOSxKmkB3A1LT8Q_&q=85&s=2b1cf6913df65c7c862544297d8dbe2f" width="963" height="504" data-path="images/core/voiceover/ffmpeg-2.png" />

    5. This completes the configuration of ffmpeg codec.
  </Step>

  <Step title="Step 3: Configure AI Voicever feature">
    Next, enable the AI Voiceover feature itself.

    1. Login to Davinci AI using your admin credentials.
    2. In **Admin Panel**, navigate to **AI Settings** -> **General AI Settings** tab.
    3. Under **AI Voiceover Settings** section

    <img src="https://mintcdn.com/magicads/sOSxKmkB3A1LT8Q_/images/core/voiceover/voiceover-1.png?fit=max&auto=format&n=sOSxKmkB3A1LT8Q_&q=85&s=c149698f171e35b19ec797db7dd9e554" width="1097" height="411" data-path="images/core/voiceover/voiceover-1.png" />

    * Turn on the **AI Voiceover Feature** Checkbox
    * Enable/Disable **SSML Effects**, these are additional voice effect features
      <Note>Please note that not all vendors support each and every SSML effect. SSML effects change dynamically based on the selected voice automatically</Note>
    * Set **Default Storage for AI Voiceovers** for storing your end results in different storage options. Make sure you configure those cloud storage options first before selecting them.
    * Set **Default Language** for all new users that are yet to register. Users can change it afterwards to their preferred ones via **My Accounts** -> **Set Defaults** page.
    * Set **Default Voice** for all new users that are yet to register. Users can change it afterwards to their preferred ones via **My Accounts** -> **Set Defaults** page.
    * Set **Maximum Total Characters Synthesize Limit** for all of your users, both Free Tier and Subscribers.
      <Note>Maximum supported characters per single synthesize task can be up to 100000 characters. Each voice (textarea) has a limitation of up to 5000 characters, and you can combine up to 20 voices in a single task (20 voices x 5000 textarea limit = 100000).</Note>
    * Set **Maximum Concurrent Voices Limit** for all your users, both Free Tier and Subscribers.
      <Note>You can mix up to 20 different voices in a single synthesize task. Each voice can synthesize up to 5000 characters, total characters can not exceed the limit set by Maximum Characters Synthesize Limit field.</Note>

    4. Once you are done with configurations, click on **Save** button.
  </Step>

  <Step title="Step 4: List allowed Vendors for AI Voiceover">
    Davinci AI allows you to dynamically configure which TTS vendors you want to give access to your users. For example you can allow only 1 vendor for your Free Tier users, but enable all for Subscribers. This gives you sophisticated flexibility in feature and cost control.

    ### List for Free Tier users

    1. In **Admin Panel**, navigate to **AI Settings** -> **Free Trial Features** tab.
    2. Under **AI Voiceover Vendors Access** dropdown list, select which TTS vendors you want your Free Tier users to have access to. Make sure you have configured those vendors properly first.

    <img src="https://mintcdn.com/magicads/DO-ZSxDPJY87YYah/images/core/voiceover/voiceover-2.png?fit=max&auto=format&n=DO-ZSxDPJY87YYah&q=85&s=b50b708d600baf133b7c89e1e588ef46" width="531" height="99" data-path="images/core/voiceover/voiceover-2.png" />

    3. Once you are done with configurations, click on **Save** button.

    ### List for Subscrbers

    1. In **Admin Panel**, navigate to **Finance Management** -> **Subscription Plans** tab.
    2. Click on **Create New Subscription Plan** button, or **Edit** your existing ones.
    3. Under **Supported AI Voiceover Vendors** dropdown, select all the vendors that you want your Subscribers to have access to.

    <img src="https://mintcdn.com/magicads/DO-ZSxDPJY87YYah/images/core/voiceover/voiceover-3.png?fit=max&auto=format&n=DO-ZSxDPJY87YYah&q=85&s=940d957bd83ebab35000d0083abbc137" width="475" height="96" data-path="images/core/voiceover/voiceover-3.png" />

    4. After you are done with further configurations, click on **Save** button.
       <Warning>Please note that Subscription plans are only available for Extneded License users</Warning>
  </Step>
</Steps>

<Check>
  Congratulations! You have successfully completed the AI Voiceover setup process.
</Check>

## How to Use AI Voiceover

After you have configured your respective cloud vendors, these intructions explain you how to synthesize text into audio in various formats.
