The content is organized in Scripts
A script is an individual content which normally would be spoken and recorded by a voice. Scripts can be organized further into modules and projects, which are the base to efficiently mass version and produce audio.
While you can create Speech directly from text via a direct call to the text-to-speech API or you can only use the rendering engine in isolation, it usually makes sense to create a script and generate speech or fully produced audio based on that.
Why create scripts?
While you can create Speech directly from text via a direct call to the text-to-speech API or you can only use the rendering engine in isolation, it usually makes sense to create a script and generate speech or fully produced audio based on that. AudioStack offer ways for you to organize content efficiently, version it (eg for personalization or to make it dynamic) and arrange it so it's ready for production.
Scripts allow you to organize and store your content, offering additional guard rails optimised to programmatically create professional sounding audio such as SSML tags, personalisation parameters and sound design annotation.
If you use personalization parameters, you can simply reproduce speech by passing the chosen variable for a script already created. This reduces latency, makes it possible to switch speakers within the same track and access batteries-included parameters to personalize content or make it dynamic.
See here for Script Syntax guide
Let's look at an example showcasing a bunch of features. Not all the parameters added there are mandatory. For a complete list check the Script API reference list.
script = audiostack.Content.Script.create( scriptName="concert-ad", scriptText="Head over to buytickets.com to grab your tickets before they sell out!", projectName="band_tour", moduleName="winter_campaign" )
Updated 22 days ago