Create Story
Creates a story based on the content provided in a text file (.txt) or Word document (.docx)
The Story Creation Process
When you submit a story creation request, our system begins a multi-stage workflow:Document Processing
Voice Selection
/story/{task_id} endpoint with the task_id provided in your initial response.
Supported Document Formats
Our story creation service accepts two popular document formats to accommodate your workflow:| Document Type | Supported Formats |
|---|---|
| Text Files | .txt |
| Word Documents | .docx |
Language Configuration
Specifying the correct source language is crucial for successful story creation. To find the appropriate language identifier:- Query the
/source-languagesendpoint for a complete list of supported languages. - Pass the locale tag (e.g.
"en-us") in your request. Numeric language IDs still work but are deprecated.
Creating Your First Story
Let’s look at how to initiate a story creation task with Python:Monitoring Your Story Creation Progress
After submission, your content enters our processing pipeline. The time required depends on the length and complexity of your document. You can check progress by polling the status endpoint:Best Practices for Optimal Results
To get the most from our story creation service, consider these professional tips:- Document Quality: Ensure your document is well-formatted with proper grammar and punctuation for better narration results.
- Voice Selection: Choose a narrator voice that matches the tone and style of your story content.
- Language Accuracy: Double-check that your source language is correctly specified to ensure proper pronunciation and pacing.
- Content Length: While our system can handle documents of various lengths, consider breaking very long works into logical segments for optimal processing.
- File Format: Use .docx format when you need to preserve complex formatting, and .txt for simpler text-based stories.
Practical Applications
Our story creation functionality opens exciting possibilities across industries:- Education: Transform educational content into engaging audio lessons for diverse learning styles.
- Publishing: Quickly create audio versions of books, articles, and short stories.
- Content Creation: Convert blog posts and articles into narrated content for podcasts or audio platforms.
- Accessibility: Make written content accessible to visually impaired audiences or those who prefer audio content.
- Entertainment: Bring original stories to life with professional-quality narration.
Authorizations
The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.
Body
The text file (.txt) or Word document (.docx) containing your story content. This document will be used as the basis for the audio book.
The language of the input text. Pass a locale tag (en-us, fr-fr, es-es). Numeric language IDs (1 or "1") still work but are deprecated. See all source languages.
"en-us"
A descriptive title for your story, making it easier to identify and organize.
3 - 255A brief synopsis of your story, helping to set context and expectations.
3 - 5000The identifier of the AI voice that will narrate your story. This determines the tone, accent, and delivery style.
An optional list of dictionary IDs selected by the user. Each entry must be an integer corresponding to a valid dictionary ID. If provided, at least one ID is required.
1Response
Successful Response
A JSON that contains the unique identifier for the task. This is used to query the status of the end to end dubbing task that is running. It is returned when a create request is made for a story.