Sound Template Intensity (Beta)
There's currently a feature in "beta" (meaning, we'd love you to try it out, but we haven't completed our work on it yet), that allows you to specify how intense you would like a specific sound template to sound, changing the timbre.
For example, a more intense sound template might include heavier percussion and more complex melodies. A soft version of the template might sound more sparse, with just melodic instruments and chords.
To use this feature, you need to specify which of the "soundLayers" to use in the mix: choose from soft
, intense
, or default
. This feature can currently be used with four supported sound templates: ambient_electronica
, eighties_chill
,chromatic_jazz
and friendly_electronica
. All of these sound templates are elastic, which means that you can use them with any duration of audio, and they'll still sound good.
Code Example
import audiostack
import os
audiostack.api_key = os.environ['AUDIOSTACK_API_KEY']
scriptText = """
<as:section name="intro" soundSegment="intro">
So far, sound templates have been created with just one intensity setting, which is great if you want a consistent tone across all your productions.
</as:section>
<as:section name="main" soundSegment="main">
But now, we're releasing a new feature that allows you to add intensity to your track, meaning you can spice it up and add more pizzazz.
</as:section>
<as:section name="outro" soundSegment="outro">
For now there are only two available, but soon you'll be able to use the feature with 15 different sound templates, giving our users access to even more variety.
</as:section>
"""
script = audiostack.Content.Script.create(scriptText=scriptText)
print("response from creating script", script.response)
scriptId = script.scriptId
# create one tts resource
tts = audiostack.Speech.TTS.create(scriptItem=script, voice="bryer")
print(tts.speechId)
sound_template = "chromatic_jazz"
sound_layer = "intense"
mix = audiostack.Production.Mix.create(speechItem=tts, soundTemplate=sound_template, masteringPreset="musicenhanced", soundLayer=sound_layer)# sectionProperties={"main" : {"endAt" : 120}})
print(mix)
encoded = audiostack.Delivery.Encoder.encode_mix(productionItem=mix, preset="wav")
encoded.download(fileName=f"{sound_template}_{sound_layer}")
Updated 4 months ago
If you want to use AudioStack Sound Templates even more flexibly, check out some of the advanced features: