Voice cloning in Amazon Polly is now usually out there as a gated launch. Give Amazon Polly a couple of minutes of audio recordings from a speaker who has agreed to have their voice cloned, and Amazon Polly builds your personal cloned voice in that speaker’s voice. The cloned voices run on the Amazon Polly generative engine, which delivers related naturalness and accuracy as the remainder of the generative voices. Amazon Polly voice cloning launches with seven languages: English, Spanish, German, French, Italian, Portuguese, and Hindi. Every cloned voice speaks the language it was recorded in. The cloned voices are routinely encrypted and access-controlled: solely you may entry your cloned voices.
Amazon Polly voice cloning is out there in all of the AWS Areas supported by the Amazon Polly generative engine, together with the AWS GovCloud (US) Area. Entry is already enabled for choose Amazon Polly clients. Others can attain out to their AWS account crew or apply for entry to get entry.
With this new function addition, you may construct the cloning lifecycle into AWS functions. Constructing a cloned voice is free for Amazon Polly clients, and Amazon Polly costs for cloned voice utilization on a pay-as-you-go foundation, see Amazon Polly Pricing web page for particulars.
Hear it for your self
Press play: the primary few seconds are an actual recording of the speaker, after which their cloned voice takes over with phrases they by no means recorded.
- From recordings to TTS voice. A couple of minutes of our science lead Trevor’s supply audio, and the ensuing generative voice.
- Recorded: “Hey, I’m Trevor, from Science.” Cloned voice: “That first sentence was my actual voice. That is my cloned voice, created from a couple of minutes of my recordings. It could possibly learn any textual content you give it.”
- Recorded: “Hey, I’m Trevor, from Science.” Cloned voice: “That first sentence was my actual voice. That is my cloned voice, created from a couple of minutes of my recordings. It could possibly learn any textual content you give it.”
- Helps seven languages. Hear Jonas, one of many authors, talking German in his recording after which in his cloned voice:
- Recorded: “Hallo, ich bin Jonas. Das ist meine echte Stimme.” (Hello, I’m Jonas. That is my actual voice.) Cloned voice: “Und das ist meine geklonte Stimme! Gleiche Stimme, neue Worte: Diesen Satz habe ich geschrieben, aber nie aufgenommen.” (And that is my cloned voice! Identical voice, new phrases: I wrote this sentence, however by no means recorded it.)
- Recorded: “Hallo, ich bin Jonas. Das ist meine echte Stimme.” (Hello, I’m Jonas. That is my actual voice.) Cloned voice: “Und das ist meine geklonte Stimme! Gleiche Stimme, neue Worte: Diesen Satz habe ich geschrieben, aber nie aufgenommen.” (And that is my cloned voice! Identical voice, new phrases: I wrote this sentence, however by no means recorded it.)
- Use in a wide range of functions. Right here’s Trevor in a brand new job he hasn’t had: a non-player character in a sport.
- “Who’s that crossing my bridge? Oh, it’s you once more. Identical deal as final time: reply my riddle, or hand over the sandwich.”
- “Who’s that crossing my bridge? Oh, it’s you once more. Identical deal as final time: reply my riddle, or hand over the sandwich.”
- Develop your voice library with voice cloning. Hear this audio pattern from AWS Chief Evangelist Jeff Barr: an actual recording, then his cloned voice.
- Recorded: “Hello, I’m Jeff, and that is how I actually sound.” Cloned voice: “And that is how my cloned voice sounds, studying a sentence I by no means recorded.”
- Recorded: “Hello, I’m Jeff, and that is how I actually sound.” Cloned voice: “And that is how my cloned voice sounds, studying a sentence I by no means recorded.”
- Hannah: an actual recording, then her cloned voice on a assist line.
- Recorded: “Hey, I’m Hannah. That is my actual voice.” Cloned voice: “Thanks for calling AnyCompany. Your order 4471 9902 ships right now and will arrive on Thursday between 9 AM and 1 PM. Your affirmation code is Ok-7-Q-2-X-9.”
- Recorded: “Hey, I’m Hannah. That is my actual voice.” Cloned voice: “Thanks for calling AnyCompany. Your order 4471 9902 ships right now and will arrive on Thursday between 9 AM and 1 PM. Your affirmation code is Ok-7-Q-2-X-9.”
- Joely: an actual recording, then her cloned voice narrating a lesson.
- Recorded: “Hello, I’m Joely, and that is how I actually sound.” Cloned voice: “On this module, we’ll have a look at how a neural community learns. First, it makes a guess. Then it measures how far off that guess was, and adjusts, a bit at a time.”
- Recorded: “Hello, I’m Joely, and that is how I actually sound.” Cloned voice: “On this module, we’ll have a look at how a neural community learns. First, it makes a guess. Then it measures how far off that guess was, and adjusts, a bit at a time.”
What you may construct
A constant model voice throughout channels
Set up one recognizable voice and use it throughout your interactive voice response (IVR) system, cascaded voice brokers, cell app, in-store bulletins, promoting, and linked units. Quite than counting on a generic inventory voice or re-booking a recording session every time a script adjustments, you may generate on-brand audio on demand, with a constant sound in each channel.
Contact facilities
Ship a particular, on-brand voice throughout self-service flows, and replace prompts as presents and insurance policies change and not using a new studio session. You may create prompts from supply textual content, check them earlier than rollout, and use the identical voice throughout greeting, routing, and notification experiences.
Media and content material at scale
Creators, publishers, and studios can create audiobooks, programs, podcasts, sport characters, and movies in a number of customized voices to boost the listening expertise, and produce subsequent chapters or updates shortly.
Localization with a constant persona
Preserve a recognizable voice id throughout a content material library, so narration stays coherent throughout titles and updates. Every cloned voice speaks solely the language it was recorded in. For multilingual experiences, create and overview accredited voices per supported language.
Accessibility and personalization
Supply a pure, human-sounding voice for studying experiences, assistive instruments, and personalised interactions. You affirm the speaker’s consent every time you create a voice.
How voice cloning works
With voice cloning, you may construct a customized Amazon Polly voice from recordings of a single speaker after which synthesize speech in that voice via the Amazon Polly generative engine. The voice strikes via 4 steps, from recording the speaker to utilizing the completed voice:
A cloned voice goes via 4 steps:
- Report. You report one speaker (see the next recording ideas). You may ship the recordings instantly within the
CreateVoicerequest or add them on the console. It’s also possible to retailer them in an Amazon Easy Storage Service (Amazon S3) bucket within the AWS Area the place you need the voice and level Amazon Polly to them. - Create. You name
CreateVoicewith 1-10 recordings, the language they’re spoken in, andTermsAccepted=True, your affirmation that you’ve the speaker’s consent. Amazon Polly returns a voice ID (vc-…) straight away and builds the voice within the background. - Wait. Creation is asynchronous and sometimes takes 5-10 minutes. Throughout that point, Amazon Polly additionally checks the standard of your text-to-speech (TTS) voice for speaker similarity. You name
GetVoicetill the standing adjustments frompendingtoenergeticorfailed. - Use. You go the voice ID to
SynthesizeSpeechfor real-time audio or toStartSpeechSynthesisTaskfor long-form audio written to S3, withEngine="generative", the identical approach you name the opposite generative voices in Amazon Polly. If you not want the voice, you nameDeleteVoice.
Consent and management
A cloned voice is made out of one particular person’s recordings. You affirm that you’ve the speaker’s consent for all recordings and that you just management who can use the voice and when it’s deleted.
- You affirm consent for every voice you create. If you create a voice, on the console or with
TermsAccepted=Truewithin the API, you affirm that you’ve obtained all rights and consents essential to create and use the cloned voice. Your use of voice cloning is topic to the AWS Service Phrases, the Biometric Discover and Consent Phrases, the AWS Accountable AI Coverage, and the AWS Acceptable Use Coverage. - Generated speech carries a watermark. Amazon Polly provides a watermark to text-to-speech audio generated with the cloned voice.
- Solely your account can use it. A cloned voice is scoped to the AWS account that created it, and also you management entry with AWS Identification and Entry Administration (IAM). You may encrypt voices with your personal AWS Key Administration Service (AWS KMS) key and tag them.
- You determine when it goes away. Delete a voice with one
DeleteVoicename or on the console, as soon as it’s energetic or its creation has failed. - Amazon Polly doesn’t retain a replica of your voice recordings as soon as the voice is created and doesn’t use them to coach Amazon Polly fashions. It retains solely the voice information it must synthesize speech, and shops it encrypted. You should utilize your personal AWS KMS key for that encryption, and
DeleteVoiceremoves the information instantly.
We suggest that you just:
- Preserve a report of every speaker’s consent.
- Delete the voice if the speaker withdraws consent.
- Inform listeners once they’re listening to an artificial voice the place that’s acceptable.
- Grant voice permissions solely to the folks and programs that want them.
For particulars on supposed makes use of and limitations, see the Amazon Polly AI Service Card and the AWS Accountable Use of AI steering.
Finest practices for recordings
Your cloned voice learns from the recording, together with the components you’d fairly it didn’t: the laptop computer fan, the room echo, the assembly app’s noise filter.
- Report two to 10 minutes of pure speech, break up into takes of as much as a minute. You may ship as much as 10 recordings per voice, and as much as quarter-hour of audio in whole. High quality issues greater than size: extra audio won’t change how the voice sounds.
- One speaker, a quiet room, the identical distance from the mic. Use a USB microphone, or a telephone app that may report WAV. Report in mono WAV, 16-bit, at 24 kHz from the beginning, so there’s nothing to transform later. Amazon Polly accepts different audio codecs, however we suggest WAV. See the Amazon Polly Developer Information for supported codecs and limits.
- Keep away from utilizing assembly apps and browser recorders. Their echo cancellation and noise suppression change the voice, and the clone learns these adjustments too.
- Report each take within the model you need the voice to have. The cloned voice takes its model from the recordings and might’t mix a number of, so upbeat, unhappy, and offended takes gained’t offer you a voice that may do all three.
- Report within the language the voice ought to converse. Voice cloning is examined with recordings in US English, German, US Spanish, French, Italian, Brazilian Portuguese, and Hindi. Recordings in different accents of those languages, equivalent to British English or Canadian French, additionally work however are much less examined, so test the voice with your personal content material.
Getting began
On the console: as soon as voice cloning is enabled to your account (see Availability), develop the left panel and select Voice cloning, add as much as 10 recordings or choose them from Amazon S3, affirm the phrases, and select Create. Every add may be as much as 5 MB. When the voice is prepared, attempt it out on its particulars web page.
In code, you want:
- The newest model of boto3 (
pip set up --upgrade boto3). - IAM permissions for
polly:CreateVoice,polly:GetVoice,polly:DescribeVoices,polly:SynthesizeSpeechandpolly:DeleteVoice. For long-form audio, additionallypolly:StartSpeechSynthesisTask,polly:GetSpeechSynthesisTaskands3:PutObjecton the output bucket. - For the next Amazon S3 instance: your recordings in a bucket within the Area the place you create the voice, with
s3:GetObjectpermission for the IAM position or consumer that callsCreateVoice.
If Python experiences that the Polly object has no attribute create_voice, improve boto3.
For lengthy texts equivalent to audiobook chapters or course modules, use an asynchronous synthesis activity that writes the audio to S3:
For extra end-to-end Speech AI functions you may construct with Amazon Polly, together with the voice cloning function, equivalent to cascaded voice brokers and dwell speech translators, go to the Amazon Polly GitHub repo.
Manufacturing issues
Create voices forward of time
Voice creation takes minutes, so deal with it as a provisioning step, not a part of a consumer request. A small workflow (for instance, AWS Step Capabilities or a job queue) can name CreateVoice, test GetVoice each 30 seconds till the voice is energetic, after which retailer the voice ID in your configuration. CreateVoice and DeleteVoice share a restrict of 1 request per second, so queue bulk creations and deletions.
Preserve a listing
DescribeVoices lists your cloned voices alongside the voices constructed into Amazon Polly. Cloned voices have Origin set to buyer. Retailer the voice ID, Area, language, consent reference, and proprietor for every voice, and provides every voice a singular Identify. If a CreateVoice name instances out or returns a server error, the voice may exist already, and the SDK’s automated retries can create a second one. Verify DescribeVoices for that title earlier than you attempt once more.
Plan for errors
CreateVoice returns ThrottlingException while you exceed the 1-request-per-second restrict it shares with DeleteVoice, and ServiceQuotaExceededException when the account has reached its cloned-voice quota in that Area. Synthesizing with, or deleting, a voice that’s nonetheless being created returns ConflictException. If a voice makes use of your personal KMS key, callers with out entry to the important thing get an access-denied error. When creation fails, StatusReason offers solely a normal message, so test the recordings towards the previous recording greatest practices, then delete the failed voice and create a brand new one.
Scope permissions to voices
Cloned voices are IAM sources, so that you can provide the position that serves visitors permission to synthesize with one voice of selection. If the voice makes use of your personal KMS key, that position additionally wants entry to the important thing. Preserve polly:CreateVoice and polly:DeleteVoice for a separate provisioning position. Right here’s an instance coverage for the serving position:
With tags, you may write the identical rule as soon as for a complete group of voices utilizing aws:ResourceTag situations. Overview your present insurance policies too: an announcement that permits polly:SynthesizeSpeech on all sources ("Useful resource": "*") additionally covers each cloned voice within the account.
Plan for quotas and Areas
Every account has an preliminary quota of 10 cloned voices per Area. To request a rise, contact your account crew or AWS Help. A voice exists solely within the account and Area the place you created it. To serve one other Area or account, create the voice once more in that Area from the identical recordings, and ensure the speaker’s consent covers each copy.
Check together with your actual scripts
Earlier than a voice goes dwell, take heed to it studying your personal content material: product names, numbers, addresses, and the longest sentences you’ve gotten. The identical textual content can come out barely in another way from one request to the subsequent. For mounted prompts equivalent to phone-line greetings, generate the audio as soon as, approve it with the speaker and your model crew, and serve the saved file. If a reputation or time period comes out mistaken, spell it in another way within the textual content or use a Speech Synthesis Markup Language (SSML) tag. Phoneme tags work with cloned voices in English, French, Italian, German, and Spanish. See Supported SSML tags.
Issues to know
| Availability | Entry is enabled per AWS account. In case you see Voice cloning within the Amazon Polly console (develop the left panel and see if Voice cloning is listed), it’s enabled to your account. If not, you may attain out to your AWS account crew or apply for entry to request entry. Supported AWS Areas are the identical because the generative engine: US East (N. Virginia), US West (Oregon), Europe (Frankfurt), Europe (Zurich), Europe (London), Asia Pacific (Sydney), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Tokyo), Canada (Central), and AWS GovCloud (US-West). A cloned voice lives within the AWS Area the place you created it. |
| Languages | English, German, Spanish, French, Italian, Portuguese, and Hindi. Examined recording locales: US English (en-US), German (de-DE), US Spanish (es-US), French (fr-FR), Italian (it-IT), Brazilian Portuguese (pt-BR), and Hindi (hi-IN). Different accents of those languages additionally work however are much less examined. Every voice speaks the language it was recorded in. |
| Recordings | 1-10 recordings per voice, as much as quarter-hour in whole. WAV is advisable: mono, 16-bit, at 24 kHz or 44.1/48 kHz. Amazon Polly accepts different audio codecs too. Console uploads are restricted to five MB per file. For bigger information, use Amazon S3. |
| Information dealing with | Amazon Polly deletes its copy of your recordings as soon as the voice is created and doesn’t use them to coach Amazon Polly fashions. It retains solely the voice information wanted for synthesis, saved encrypted (you need to use your personal AWS KMS key), till you name DeleteVoice. |
| Creation time | Usually takes 5-10 minutes to construct a TTS voice, asynchronous. |
| Synthesis latency | Identical as Generative voices in Amazon Polly. |
| Quotas | 10 cloned voices per account per AWS Area initially. To request a rise, contact AWS Help. CreateVoice and DeleteVoice share a restrict of 1 request per second. |
| Synthesis | Cloned voices observe the Amazon Polly quotas for generative voices, together with the textual content limits per request and per synthesis activity. See Amazon Polly quotas. |
| Pricing | Making a cloned voice is free. Amazon Polly costs for cloned voice utilization on a pay-as-you-go foundation. See Amazon Polly pricing. |
| APIs | CreateVoice, GetVoice, DeleteVoice and DescribeVoices to handle voices. SynthesizeSpeech and StartSpeechSynthesisTask with Engine="generative" to make use of them. See the Amazon Polly API reference. |
Conclusion
Voice cloning in Amazon Polly offers your software a voice folks acknowledge: recorded as soon as, with the speaker’s consent, and able to use via the Amazon Polly APIs. To get began on the console, make certain Voice cloning is enabled to your account, put together a recording and the required consent, open the Amazon Polly console, and create your first cloned voice. In case you are a brand new buyer and want to allow voice cloning, attain out to your AWS account crew or apply for entry to get entry.
For the developer information, check with the Amazon Polly documentation. For pricing, see the Amazon Polly Pricing Web page. For extra speech AI use instances you may construct with Amazon Polly, together with voice cloning, try the GitHub repo.
We will’t wait to listen to what you construct.
Due to Trevor Wooden, Jonas Rohnke, Suyin Wang, Hannah Barrett, Nikie Xiong, Jeff Barr, and Joely Huang for lending us their voices.
In regards to the authors


