Train a voice from writing samples
train_styleTrain a personalized writing voice from your own samples, measuring sentence rhythm, punctuation habits, and phrasing; add more samples to refine the profile.
Instructions
Analyze one or more of the user's own writing samples (emails, posts, essays, memos: real finished text they wrote or approved) and persist a trained voice profile under that name. Measures sentence length and variance, paragraph rhythm, contraction rate, em-dash and semicolon habits, fragment use, structural entropy (sentence-opener variety and punctuation-mark variety), and recurring phrasing. Call again with the same name and new samples to add more training data to that voice; the new samples blend into its existing measurements rather than replacing them. If the voice may have been renamed since it was created, pass its id (from list_styles) instead so the right voice is targeted regardless of its current name. This never fabricates a voice from a description; it only learns from real text the user supplies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Deprecated alias for styleId. | |
| name | Yes | Name for this voice, e.g. the user's name or a project name. | |
| samples | Yes | One or more raw text samples of the user's own writing, at least a few paragraphs each for a reliable read. | |
| styleId | No | Id of an existing trained voice to train further, from list_styles. Use this to precisely target a voice you want to add more samples to, especially if it's been renamed. Omitted: falls back to matching an existing voice by name (case/whitespace-insensitive), or creating a new one if none matches. |