Q. I want to use a cheap voice to test my integration. How do I do that?

A. This is a common question. You may simply want to integrate a voice with your platform and not waste too many credits. For this we allow our retro voice

import os
import audiostack 

audiostack.api_key = os.getenv("API_KEY")

text = """
Testing rollingthunder
"""


    # Listen and share your audio file 

try:
    script = audiostack.Content.Script.create(scriptText=text, scriptName="testing")
    scriptId = script.scriptId  
    item = audiostack.Speech.TTS.create(scriptItem=script, voice="rollingthunder")
    # simple syntax, get TTS and then download

    item = audiostack.Speech.TTS.get(item.speechId)

    mix = audiostack.Production.Mix.create(speechItem=item, masteringPreset = "balanced", soundTemplate="citynights",forceLength=30.0)

    encoder = audiostack.Delivery.Encoder.encode_mix(productionItem=mix, preset="mp3")
    encoder.download(fileName=f"{script.scriptName}__rollingthunder_citynights")
except Exception as e:
    print(e)
    print("FAILED GENERATING SCRIPT: ")

This will allow you to use up less credits and test out your integration.