Discussions

Ask a Question

How do I upload media for Sound Template using NodeJS or JavaScript?

Hi, I did find a method to upload Sound Template media for Python but didn't find any method for JavaScript or NodeJS.

Javascript Link Invalid

Your link to Javascript SDK doesn't work from this page. <https://docs.audiostack.ai/docs/sdks#javascript-sdk>

Python Error

Hi, I am getting errors when running your sample Python script. My API key is correct. Any idea? Thanks Phil > python3 audio.py > In Content you can create scripts and manage your production assets. > Traceback (most recent call last): > File "/Volumes/smallRed/Dropbox/Current_Projects/AI_Testing/Audio/audio.py", line 16, in <module> > script = audiostack.Content.Script.create( > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/audiostack/content/script.py", line 53, in create > r = Script.interface.send_request( > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/audiostack/helpers/request_interface.py", line 112, in send_request > return self.resolve_response( > ^^^^^^^^^^^^^^^^^^^^^^ > File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/audiostack/helpers/request_interface.py", line 63, in resolve_response > raise Exception(msg) > Exception: Failed to create script. Errors listed as follows: > Invalid char detected: ". Invalid chars are "\[]^%\`{>}~#|\<\&{}. Check this text: Welcome to AudioStack, the world's most powerful AI audio creation infrastructure.The unlimited possibilities of generative AI at your fingertips. In one single API."

Getting a 504 Gateway Timeout on very large scripts

Hey Aflorithmic team, I'm encountering a 504 error on the speech/tts endpoint when attempting to create a speech object for a very large script (~15,000 characters). I am using the Audiostack API to generate long-form audio files. In version 1 of the API, there was a polling mechanism. Does that mechanism still function? Best regards, Simon