Custom Voice Generation from Text Descriptions: A Practical Guide
This guide explains how to turn natural-language voice descriptions into reproducible custom speech for customer service, education, broadcasting, and multi-role dialogue. It covers why descriptions complement numeric sliders, which voice dimensions to specify, how to parse and validate descriptions, how to map them to synthesis controls, and how to manage quality, safety, versioning, and rollout.
Voice interaction is moving from “choose a fixed voice” to “generate a voice for a scenario.” Preset libraries provide stability, but they struggle to satisfy brand tone, dialect preferences, speaking rate, and emotional intensity at the same time. Roughly four sliders are intuitive, but they offer few dimensions and limited combinations. They also make it difficult to encode compound requirements such as “slightly smiling, a little slow, low-pitched but not gloomy.” Text descriptions turn these requirements into natural-language constraints, which a speech synthesis system then maps to acoustic and prosodic parameters. This approach suits customer service, education, announcements, and multi-role dialogue—scenarios that need quick auditioning.
Why control shifts from sliders to descriptions
Sliders are good for adjusting a single, quantifiable axis, such as overall speaking rate, energy level, or formality. They are interpretable and easy to A/B test. Their weakness is that axes often affect one another: increasing “warmth” may also raise pitch or reduce clarity, yet the user cannot separately specify “warm but with clear articulation.” Text descriptions do not replace numeric controls; they add combination semantics that sliders cannot express.
A more robust engineering approach is to keep both layers of control. Global hard parameters such as speaking-rate multiplier, volume, and sample rate remain numeric. Style, accent tendency, emotion, and role feel are assigned to description text. Descriptions provide direction; numeric values provide boundaries. This avoids both the irreproducibility of pure natural language and a UI filled with a dozen knobs that users do not understand. Random generation can serve as an exploration entry point: when users have no clear idea, the system samples a set of descriptions within a safe style space and then allows manual editing and resynthesis. Random results must be saveable and replayable; each click must not create an untraceable new voice.
What dimensions a description should specify
A usable voice description should consistently cover the following categories. When an item is missing, use a default value instead of letting the model improvise.
- Pitch and timbre: low, medium, or bright; thick or clean. Avoid vague terms such as “pleasant.”
- Speaking rate and rhythm: overall slow or fast, length of pauses between sentences, and suitability for long-form announcements.
- Tone and emotion: calm, cheerful, serious, or soothing. Use “slight” or “moderate” for intensity rather than extreme adjectives.
- Formality and role: customer-service explanation, teacher instruction, news broadcast, or companion dialogue. These determine wording rhythm and stress habits.
- Accent and dialect tendency: state only a “tendency” and keep it within languages the system supports. Do not request imitation of a specific real person.
- Clarity priorities: improve consonant clarity in noisy environments, or slow down key numbers for vision-impaired announcements.
An example description could read: “Medium-low pitch, slightly slow speaking rate, cheerful but not overly excited, clear articulation, suitable for one-on-one explanation, with a slight regional accent tendency.” This kind of sentence is easier to constrain and decode than “make a voice with personality.”
From description to playable audio
A typical pipeline has five steps and does not depend on any vendor-specific interface name.
- Parse the description: extract slots such as pitch, speaking rate, emotion, formality, and accent tendency. Mark unrecognized terms as ignored or ask for clarification.
- Validate: check whether the language is supported and whether the request includes imitation of a real person, discriminatory content, or harassment. If it fails, reject it and return the reason.
- Map: convert slots into synthesis controls such as speaking-rate multiplier, pitch shift, energy, and pause strategy. The mapping table should be versioned so that the same description produces similar results under the same model version.
- Synthesize and post-process: after waveform generation, apply loudness normalization, clipping limiting, and silence trimming. Insert fixed prompts if a scenario requires them.
- Persist: save the original description, parsed result, model and mapping versions, random seed, and audition samples for rollback and audit.
The following pseudocode illustrates responsibilities only; it is not a real callable interface:
profile = parse_voice_description(text)validate(profile, language, policy)controls = map_to_controls(profile, mapping_version)audio = synthesize(script, controls, model_version, seed)audio = normalize_loudness(audio)save(profile, controls, seed, audio_uri)
Audition scripts should cover numbers, place names, long sentences, and questions rather than only a single “Hello.” Synthesize at least three different scripts for the same description so that the model is not merely good on one fixed sentence.
How to write stable prompts
Descriptions should be short, specific, and testable. Limit them to a short length, on the order of one to two hundred characters, and disallow contradictory requirements such as “extremely fast” and “long pause after every sentence.” Separate mandatory items from optional style: mandatory items become hard constraints, while style items become soft constraints. When soft constraints conflict, prioritize intelligibility first, then emotion and accent.
“Surprise me” should not be applied directly to a production voice. A better use is to generate three to five candidate descriptions, show the parsed slots for human selection, and then proceed to synthesis. Candidates should differ perceptibly in pitch or speaking rate; otherwise, randomness carries no information. After selection, freeze the seed and mapping version. The business side should reference only the voice identifier rather than rewriting a long description on every request, which reduces drift.
For multilingual scenarios, explicitly declare the target language and whether the accent tendency matches it. The description language and the synthesis language can differ, but the parser must clearly identify the target language. Do not apply the prosodic habits of one language to another. Numbers, units, and proper names should go through text normalization rather than relying on the voice description to correct pronunciation.
Quality, safety, and launch boundaries
Evaluation should cover at least four result categories: intelligibility, style conformity, stability, and listening comfort. Intelligibility can be checked with word errors on standard scripts or sampled manual transcription. Style conformity can be scored by annotators against description slots. Stability requires loudness and speaking-rate variation across repeated synthesis with the same configuration to remain within an acceptable range. Comfort focuses on sibilance, electrical noise, unnatural pauses, and sudden pitch jumps. Without a public, reproducible listening test set, do not claim that a certain metric has been achieved.
For safety, custom voices can easily be used to imitate others or create misleading announcements. Uploading or describing a specific real person’s voice should be prohibited. High-fidelity cloning capability should be discussed only in a separate authorized process; the capability described here is limited to “stylized synthesis,” not “voice cloning.” For customer service and public-sector scenarios, retain a label such as “This content is voiced by synthetic speech.” Logs should store descriptions and voice identifiers, but raw biometric features that can restore speaker identity should not be retained long-term unless there is explicit authorization and a retention period.
During gray release, first open the creation entry to internal accounts and limit daily generation counts and candidate counts. Old slider configurations can be migrated to description templates so that existing business does not have to rebuild voices. The rollback strategy should be simple: production binds only to published voice identifiers; a description change creates a new identifier and does not overwrite a version in use.
For cloud deployment, audio samples can be placed in object storage, synthesis tasks can go through an asynchronous queue, and failures and latency should feed into logs, monitoring, and alerting. If an enterprise already uses Baidu AI Cloud, capacity and permission design should follow general speech synthesis, storage, and observability capabilities rather than treating unpublished parameters as established interfaces. Whether a feature is available to end users depends on the actual release notes; entry strings in a test package are not evidence of a launched capability.
Conclusion
Text descriptions are good at expressing compound listening impressions, while numeric parameters are good at locking boundaries. By parsing descriptions into versioned slots, adding policy validation, and fixing seeds and audition sets, custom voice generation can move from demo to an operational configuration. Sliders do not need to be abandoned; they remain the easiest fine-tuning method for regression. Combining both approaches balances expressiveness and stability.
