Text-to-speech and voice cloning: how synthetic voices work in a product

Updated · 6 min read

How text-to-speech works in a product

A text-to-speech service takes a block of text, a voice and a few settings such as language and speed, and returns an audio file or a stream. Your app sends the request, receives the audio and either plays it at once or stores it for later. The model behind the voice maps letters, words and punctuation to sounds, so the quality depends heavily on the text you send it.

Most products start with a stock voice from a provider. Stock voices are simpler to license, cheaper to run and quicker to ship. Before you choose, compare providers on the points below, and read each provider's current pricing page, because rates and plans change often.

  • Languages and dialects. Test the exact mix your content uses, including Traditional or Simplified Chinese with English words inside.
  • Voice styles. Check whether the voice can sound calm for bedtime stories, clear for instructions or lively for marketing.
  • Streaming. Streamed audio starts sooner, which matters for live answers in a chat or voice assistant.
  • Commercial terms. Confirm that you may sell or publish the audio you generate, and how long the provider keeps your text.
  • Controls. Some providers accept pronunciation hints or markup for pauses. Confirm which controls are supported before you design around them.

How to prepare text so it sounds right

Most bad audio starts with text that was written for the eye, not the ear. Numbers, dates, currency symbols and abbreviations are often read wrongly. Write them out in full in the form you want spoken, and keep a small pronunciation list for brand names, staff names and product names.

Chinese adds its own problems. Some characters have more than one reading, and the right reading depends on the word around it. Test sentences with these characters and, where the provider allows it, add a pronunciation hint. Punctuation also shapes pacing, so split very long paragraphs into shorter ones before you send them.

Voice cloning starts with written consent

Voice cloning records a real person, then trains or configures a model that imitates that voice. The quality depends on how much clean audio you supply, how close the recording conditions are to the final use, and how well the provider's model handles the speaker's accent and pace. A clean recording in a quiet room usually beats a longer noisy one.

Consent is the first step, not an afterthought. Keep a written record that covers the points below, and check each of them before any sample is uploaded.

  • Who the voice belongs to, and that the person agreed to be cloned.
  • What the voice may be used for, such as one audio book, or all app narration.
  • Where the audio may be published, and whether it may be sold.
  • How the person can withdraw consent, and what you do when they do: delete the voice model at the provider and remove cached audio.
  • Never clone a voice belonging to someone who has not agreed, including a family member, colleague or public figure.

Quality checks before audio reaches listeners

Automated checks catch clipping, silence and obviously wrong lengths, but they cannot tell you whether a sentence sounds natural. Listening is still the test. Check a sample from every new voice, language and content type before you release it to users.

Build a short checklist and keep it with the content pipeline. Listen for names, numbers and foreign words, pacing in long passages, and emotional tone that does not match the text. For high-stakes audio, such as medical, financial or legal content, add a human approval step before publication.

  • Check loudness and clipping on the finished file, not only on the raw output.
  • Listen to names, numbers, dates and mixed-language sentences.
  • Keep a list of words that were read wrongly and add them to the pronunciation list.
  • Re-test after the provider updates its voice model, because the sound can change.

Caching audio to control cost and speed

Generating audio costs money and takes time, so most products store the result. A common approach keys each file on the voice, the text, the model and the settings. The same chapter then costs nothing to play again, and a changed sentence is generated fresh.

Store the files in your own cloud storage or a content delivery network, and set a rule for when they are removed. Check the provider's terms on storing and reusing generated audio first, since some terms are stricter for cloned voices. If a consent is withdrawn, the cache must be cleared with the rest of the voice data.

Labelling, misuse and provider rules

Synthetic speech can mislead listeners, and that is the main reason it is regulated. A short disclosure near the audio is a simple default when a listener could reasonably believe a real person is speaking. Rules on AI-generated audio are changing, so check the current law in each market you serve and the policy of each platform where the audio appears.

Providers also set their own rules. Most forbid impersonating people without consent, fraud and political deception. Breaking them can close your account. Keep a takedown process so you can remove a clip quickly if a voice owner, a listener or a platform raises a problem.

How Hundred Seas helps

Hundred Seas is a product studio in Taipei that builds mobile apps, AI agents and custom software. We have built our own audio apps that use narration and voice cloning, so we know where consent records, audio caching and listening checks matter in practice. We choose the voice provider for each product on the languages it needs, its cost and where the data must stay.

Our work starts with a scope step, about one week at a fixed price, that ends in a written plan, a clickable prototype and a firm quote. The build then runs in weekly releases of working software, and a monthly run plan keeps the voice features updated when providers change their models.

Questions

Can I clone my own voice for an app?
Yes, if you are the voice owner and you agree in writing to its use in the app and by the provider. Record clean samples in a quiet room, follow the provider's current sample requirements, and keep a record of what the voice may be used for. Never clone a voice belonging to someone who has not agreed.
Is a stock voice good enough for narration?
For most narration, yes. A good stock voice in the right language reads clearly and usually costs less to run than a cloned voice. Choose a cloned voice when the product depends on one specific person's voice and that person has agreed to it. Test both options on a real chapter before you decide.
Does text-to-speech handle Chinese well?
Quality varies by provider, voice and dialect. Check how each voice handles Traditional and Simplified Chinese, English names inside Chinese sentences and characters that change pronunciation. Listen to a sample of your real content, and ask the provider which pronunciation controls it supports.
Do I need to tell listeners that audio is AI-generated?
It is often a wise choice, and in some markets it may be required. Rules on AI-generated audio are changing, so check the current law in each market you serve and each platform's policy. A short disclosure near the audio is a simple default when listeners could believe a real person is speaking.
Can I store generated audio to save money?
Yes, many products cache audio so that each text and voice pair is generated only once. Check the provider's terms on storing and reusing generated audio. Key the cache on the voice, the text, the model and the settings, so a changed sentence is generated again.

Have a project in mind?

Tell us what you want to build. We reply with a plan, not a sales call.

AboutText-to-speech and voice cloning: how synthetic voices work in a product