Create a Script
You can create a Script by posting text to the script endpoint.
Every Script needs to be located within an Organisation, a project and a module. You can explicitly define these, or default ones will be created for you.
Did you know?
As scripts cannot be changed, you'll need to create a new version to update them.
Code Example
import audiostack
audiostack.api_key = "APIKEY"
# Create a new script and print the script created
script = audiostack.Content.Script.create(
scriptText="""<as:section name="intro" soundsegment="intro">My first script</as:section>"""
)
print(script)
You can get an overview of all your Scripts by listing them or you can can retrieve scripts by script ID.
Updated about 1 year ago