Create Translated Story
Creates a translated story based on a previously generated story using the provided run_id
Expand your storytelling to global audiences with our comprehensive translation service. This powerful endpoint transforms your previously created stories into new languages, allowing your content to reach diverse linguistic communities. The system handles everything from translation to voice synthesis, delivering professional-quality results that preserve the original story’s essence while adapting it naturally to the target language.
The Translation Process
When you submit a story translation request, our system begins a sophisticated workflow:
Original Story Retrieval
Using your provided run_id
, our system locates and retrieves your previously generated story, ensuring we’re working with the complete content.
Professional Translation
The story content is expertly translated to your target language using our proprietary translation engine, carefully preserving narrative flow, tone, and cultural nuances.
Voice Selection and Synthesis
Our system selects appropriate voices for the target language that match the character of the original narration, then generates natural-sounding audio.
Quality Assurance
The translated story undergoes final checks to ensure audio quality, proper pacing, and narrative integrity in the new language.
Throughout this process, you can check on your task’s progress using the /translated-story/{task_id}
endpoint with the task_id
provided in your initial response.
Language Selection
Choosing the right target language is essential for effective story translation. Our system supports over 148 languages, giving you incredible global reach. To specify your desired language:
- Use the appropriate language ID in your request (an integer value between 1 and 148).
- For a complete list of supported languages and their corresponding IDs, query the
/languages
endpoint.
This ensures our system correctly processes your content for the intended audience.
Creating Your First Translated Story
Let’s examine how to initiate a story translation task using Python:
Monitoring Your Translation Progress
After submission, your story enters our translation pipeline. You can monitor the progress by polling the status endpoint:
Best Practices for Optimal Results
To achieve the best possible translations of your stories, consider these professional recommendations:
-
Original Quality: Ensure your source story is of high quality, as the translation will preserve any issues present in the original.
-
Cultural Considerations: Some stories may contain cultural references that don’t translate directly. Consider this when selecting target languages.
-
Language Pairing: Some language pairs translate more smoothly than others. When possible, start with content that will translate well to your target language.
-
Sequential Translation: For best results, translate directly from the original language rather than creating “translations of translations.”
-
Test Translations: Consider testing with shorter stories first to ensure the target language delivers the tone and style you’re seeking.
Practical Applications
Our story translation functionality enables exciting opportunities across various fields:
-
Global Education: Make educational stories accessible to learners worldwide in their native languages.
-
Publishing: Quickly expand your literary works to international markets without the traditional translation timeline.
-
Cultural Exchange: Share folktales and cultural narratives across language barriers, fostering global understanding.
-
Language Learning: Create parallel versions of stories for language learners to compare with original texts.
-
International Marketing: Adapt brand stories and narratives for diverse global audiences.
By integrating this translation capability into your workflow, you can efficiently extend your storytelling reach across linguistic boundaries, dramatically reducing the time and resources traditionally required for multilingual content creation while maintaining impressive quality and authenticity.
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.
Path Parameters
The unique identifier of the original story you want to translate. This ID was generated during the original story creation process and returned upon task completion.
Body
Response
Successful Response
A JSON that contains the unique identifier for the task. This is used to query the status of the translated story task that is running. It is returned when a create request is made for a translated story.