Crafting Voices: The Art of Text-to-Speech Customization

Text-to-Speech technologies are evolving rapidly. Today, a simple prompt can generate a voice. Where did we come from and where are we…

Crafting Voices: The Art of Text-to-Speech Customization

Created using Napkin.AI

Text to Speech synthesis technology has evolved significantly over the past few decades. Initially, TTS systems used Unit Selection to take audio snapshots from samples within its corpora and string sounds together to form words and sentences, an experience quite clunky. Once Deep Neural Networks (“DNN”) capabilities emerged, they were applied against these TTS models to smooth over the seemingly concatenated audio samples to sound more human-like. This was the standard until the early 2020s when Neural engines generated audio end-to-end using sequencing models. These Neural models, not only sounded even more human-like (the ongoing pursuit for TTS providers) but added capabilities such as cross-lingual adaptation to train voice models created in one language near “natively” across a portfolio of languages for global reach!

In parallel, adaptation artifacts were employed to tune models and/or apply rules to modify the model’s behavior to address edge-cases that were not addressed as part of the training set. These manifested themselves in the form of Lexicon files that defined words and their phonetic spelling using a phonetic alphabet. In the world of Conversational AI, where a message to a user was deterministic, lexicon files were a quick way to resolve issues such as mispronouncing company names, unique terms of art, or even proprietary naming not commonly known to the public. In fact, often, pronunciation varied among voice personas depending on the underlying training data, making application of lexicons tricky. Moreover, in the world of Generative AI, where the output of an LLM is non-deterministic in nature, the set of possible generated text can very significantly in spelling, thus, making the creation of lexicons cumbersome.

These text-to-speech capabilities shaped the industry and associated use cases for decades, helping in Accessibility, video game avatar creation, automated audio messages, Interactive Voice Response systems, video voiceovers, and much more! All, as I previously mentioned, in the pursuit of human-sounding properties. Seemingly “everyday,” new companies are appearing, claiming human-like expression, but in reality, all AI models are commodities, so I expect a major consolidation over time in these vendors.

Before delving into further analysis of the evolving text-to-speech landscape, its paramount to understand how text to speech models function. Like all AI models, text-to-speech models are created by replicating a human’s voice. Typically, organizations will contract with a talent agency whom employ voice actors and actresses. For example, when Disney produces animated videos, talented individuals act their voice in a studio over a high quality microphone to record the audio. These individuals have impeccable vocal range and acting abilities to imbue their speech with emotion that corresponds with the script and feeling of the characters they are playing or type of language they are reading for.

Within a voice actor or actress’s voice, there are a number of qualities, including volume, speaking rate, prosody, pitch, timbre, and more. Furthermore, each talent represents a unique speaking style, language, locale, and formality. Voices can be trained in specific styles — conversational, podcast, formal, newscast, e-reader, etc — for more specific types of inflection. When building a voice, the talent typically reads a set of scripts that aim to encapsulate their entire vocal range and style. Typically about 300 hours of recordings are required for a high quality voice. That is then matched against a script and put into the Text to Speech model that learns via supervised machine learning to produce an AI representation of their voice. I’ve personally done this on my voice and the results are mind-blowing (I have a unique voice!).

Speech Prosody from Hume.AI

Now, with the advent of Large Language Models (“LLMs”) a new wave of Text to Speech models are emerging, ones which are equivalent to the concept of Large Voice Models (“LVMs”). Large Voice Models, as their equivalent sounding “cousin” implies, are build using a massive corpus of audio and associated text files, scaled significantly higher than a Neural sounding voice.

These models are built by scaling the quantity of training samples for an individual voice talent. This lengthened training set is then put into an encoder-decoder model similar to LLMs to produce an AI voice replica of that individual. This type of voice model is capable a conversational style to replicate human conversational patterns such as introducing filler words (um, etc), pauses, and vocal inflection. The voice can also fluctuate style based on textual context, to empathize more with the user. For example, when claiming “I’m extremely frustrated that my bags got lost,” the voice will interpret anger and reply back with a slower, lower-pitched, tone of voice representative of displaying empathy. This permits a degree of freedom significantly higher than previous generations of TTS models and tackles one of the problems I’ve long had with TTS capabilities, mismatching emotions that cause frustration.

Tuning these models can still involve applying Speech Synthesis Markup Language (SSLM) to modify attributes, but more importantly, introduces a new parameter: Temperature. Similar to LLMs which utilize a combination of temperature and Top-p, LVMs use temperature to control the variation in one’s vocal output. A lower value means a more stable voice that is less responsible to textual context but a higher value yields more vocal fluctuation.

AI Modified Voices: Recently, however, Text to Speech model providers have unveiled new capabilities of Large Voice Models, the ability to perform prompt-to-voice. Take OpenAI’s Playground (or try on OpenAI.fm) depicted below. A designer can simply craft a prompt that details the style of voice and types of situations to handle, accent type, locale, and more. In the example below: “Your voice and personality should be warm and engaging, with a lively and playful tone. If interacting in a non-English language, start by using the standard accent or dialect similar to the user.” All of this prompt was able to steer the voice in a particular direction, building off of a pre-built voice, in this case, OpenAI’s Alloy voice. This is the scenario where one modifies a voice using prompt-to-voice. For Generative scenarios where the text being spoken is non-deterministic, a prompt could include statement such as “Include casual fillers like “uhm,” “well,” “you know,” to sound more human. Add brief pauses with “…” occasionally.”

This form of voice modification is subject to the training data of the voice itself by the underlying talent as well as the interpretation of stylistic changes by the LLM.

OpenAI Playground on Microsoft Azure

AI Generated Voices: Taking this a step further, new emerging text to speech companies are aiming to have a pure prompt-to-voice play whereby someone can input a prompt that describes a voice such as “Old man from Scotland telling a story with a deep voice” (from Resemble AI but competitors include Coqui and ElevenLabs) and a voice will be generated. This is, by definition, a Large Voice Model in the sense of resembling an LLM. What do I mean? Well, this means that the underlying model is trained on a vast range of voices with various languages, locales, accents, ages, genders, and much more to encapsulate a spectrum of voice capabilities. With the prompt, just like an LLM, it points to “billionth” space and creates audio using a profile found in that corner of the model, just like an LLM would generate text.

Resemble AI

A arXiv paper entitled “PromptTTS 2: Describing and Generating Voices with Text Prompt” discusses the limitations of prompt-to-voice generation, including 1) the one-to-many problem, where not all details about voice variability can be described in the text prompt, and 2) the limited availability of text prompt datasets, where vendors and large cost of data labeling are required to write text prompts for speech. The next iteration of PromptTTS seeks to fix those problems with a 44K hour speech dataset to add more sampling variations that correspond with the prompt.

Created using Napkin.AI

In reality, shifting towards a prompt-based paradigm continues to track against the trend of democratization of capabilities and further exemplifying that these models are commodities, only claiming early mover advantages with innovation but fail at end-to-end integration. Their play is go either vertically integrate (in the case of hyperscalers), attach to a hyperscaler, or be a platform play for availability and compete on merits and further customizations. From a pure technology perspective, scaling the voice to address a wide variety of needs and inputs might prove to be a challenge. I fully anticipate that the capabilities will continue to evolve over time in the pursuit of human mimicry. In the meantime, we can continue to let our imagination run wild playing with these capabilities and the art-of-the-possible.


Sam is passionate about empowering people to innovate, understand, and transform the world utilizing ground-breaking Conversational Artificial Intelligence technology. He seamlessly melds business acumen, technological know-how, and creative vision to identify, prioritize, and resolve his client’s most daunting problems to ensure their competitive edge in the marketplace.

Follow me on LinkedIn