Skip to main content

Text to Speech

Set Up via Microsoft Azure

1. Sign up for Azure services

  • Register for a Microsoft Azure account or sign into your existing one.
  • Log into your account and create a new Speech Service if you do not already have one. It may take a minute for your account to fully populate with the default resource group to use.
  • Click Keys and Endpoint in the left hand Resource Management menu to view the Location/Region for this resource.
  • Click the copy icon next to KEY 1 to copy the API Key credential for this resource.

2. Configure Microsoft Azure API and Key under Tools > ClassifAI > Language Processing > Text to Speech > Settings

  • Select Microsoft Azure AI Speech in the provider dropdown.
  • In the Endpoint URL field, enter the following URL, replacing LOCATION with the Location/Region you found above: https://LOCATION.tts.speech.microsoft.com/.
  • In the API Key field, enter your KEY 1 copied from above.
  • Click Save Settings.
  • If connected successfully, a new dropdown with the label "Voices" will be displayed.
  • Select a voice as per your choice.
  • Select a post type that should use this service.

3. Using the Text to Speech service

  • Assuming the post type selected is "post", create a new post and publish it.
  • After a few seconds, a "Preview" button will appear under the ClassifAI settings panel.
  • Click the button to preview the generated speech audio for the post.
  • View the post on the front-end and see a read-to-me feature has been added

Set Up via OpenAI

1. Sign up for OpenAI

  • Sign up for an OpenAI account or sign into your existing one.
  • If creating a new account, complete the verification process (requires confirming your email and phone number).
  • Log into your account and go to the API key page.
  • Click Create new secret key and copy the key that is shown.

2. Configure OpenAI API Keys under Tools > ClassifAI > Language Processing > Text to Speech > Settings

  • Select OpenAI Text to Speech in the provider dropdown.
  • Enter your API Key copied from the above step into the API Key field.

3. Using the Text to Speech service

  • Assuming the post type selected is "post", create a new post and publish it.
  • After a few seconds, a "Preview" button will appear under the ClassifAI settings panel.
  • Click the button to preview the generated speech audio for the post.
  • View the post on the front-end and see a read-to-me feature has been added

Set Up via Amazon Polly

1. Sign up for AWS (Amazon Web Services)

  • Register for a AWS account or sign into your existing one.
  • Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/
  • Create IAM User (If you don't have any IAM user)
    • In the navigation pane, choose Users and then click Create user
    • On the Specify user details page, under User details, in User name, enter the name for the new user.
    • Click Next
    • On the Set permissions page, under Permissions options, select Attach policies directly
    • Under Permissions policies, search for the policy polly and select AmazonPollyFullAccess Policy
    • Click Next
    • On the Review and create page, Review all of the choices you made up to this point. When you are ready to proceed, Click Create user.
  • In the navigation pane, choose Users
  • Choose the name of the user for which you want to create access keys, and then choose the Security credentials tab.
  • In the Access keys section, click Create access key.
  • On the Access key best practices & alternatives page, select Application running outside AWS
  • Click Next
  • On the Retrieve access key page, choose Show to reveal the value of your user's secret access key.
  • Copy and save the credentials in a secure location on your computer or click "Download .csv file" to save the access key ID and secret access key to a .csv file.

2. Configure AWS credentials under Tools > ClassifAI > Language Processing > Text to Speech > Settings

  • Select Amazon Polly in the provider dropdown.
  • In the AWS access key field, enter the Access key copied from above.
  • In the AWS secret access key field, enter your Secret access key copied from above.
  • In the AWS Region field, enter your AWS region value eg: us-east-1
  • Click Save Settings.
  • If connected successfully, a new dropdown with the label "Voices" will be displayed.
  • Select a voice and voice engine as per your choice.
  • Select a post type that should use this service.

3. Using the Text to Speech service

  • Assuming the post type selected is "post", create a new post and publish it.
  • After a few seconds, a "Preview" button will appear under the ClassifAI settings panel.
  • Click the button to preview the generated speech audio for the post.
  • View the post on the front-end and see a read-to-me feature has been added

Ready to Get Started?

ClassifAI is a Free WordPress plugin that connects to your choice of AI platforms.