Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This is the official audiostack Python 3 SDK. This SDK provides easy access to the Audiostack API for applications written in Python.
This repository is actively maintained by Audiostack. For examples, recipes and api reference see the api.audio docs. Feel free to get in touch with any questions or feedback!
You can view here our updated Changelog.
You don't need this source code unless you want to modify it. If you want to use the package, just run:
pip install audiostack -U
Python ^3.8.1
This library needs to be configured with your account's API key which is available in your Audiostack platform. Import the audiostack package and set audiostack.api_key
with the API key you got from the console:
import audiostack
audiostack.api_key = "your-key"
If you belong to multiple organizations, by default the API will use the first organization you had access to. You can specify the organization by setting the assume_org_id
attribute:
audiostack.assume_org_id = "your-org-id"
Audiostack Scripts are the first step in creating audio assets. Not only do they contain the text to be spoken, but also determine the final structure of our audio asset using the Script Syntax.
It also supports a unified SSML syntax, which is a standard way to control speech synthesis.
script = audiostack.Content.Script.create(scriptText="""
<as:section name="intro" soundsegment="intro">
Hey there, <as:placeholder id="username">friend</as:placeholder>! Welcome to Audiostack - the audio creation platform that allows you to create high quality audio assets using just a few lines of code.
</as:section>
<as:section name="main" soundsegment="main">
Whether it's a podcast, a video, a game, or an app, Audiostack has you covered. You can create voiceovers, sound effects, music, and more.
</as:section>
<as:section name="outro" soundsegment="outro">
We are excited to see what you'll create with our product!
</as:section>
""")
We integrate all the major TTS voices in the market. You can browse them in our voice library.
Let's use the voice "Isaac", substitute the username
placeholder with mate
and download the produced files. Each section results in a seperate audio file.
tts = audiostack.Speech.TTS.create(scriptItem=script, voice="isaac", audience={"username": "mate"})
tts.download(fileName="example")
When you listen to these files, you'll notice each of them has a certain silence padding at the end. This might be useful for some use cases, but for this example, let's remove it.
tts = audiostack.Speech.TTS.remove_padding(speechId=tts.speechId)
mix = audiostack.Production.Mix.create(speechItem=tts, soundTemplate="chill_vibes")
Various sound templates consist of various segments. In our example, we're using three segments: intro, main and outro.
You can list all the sound templates to see what segments are available or even create your own!
Mixing comes with a lot of options to tune your audio to sound just right. More on this here.
enc = audiostack.Delivery.Encoder.encode_mix(productionItem=mix, preset="mp3_high")
enc.download(fileName="example")
Easy right? 🔮 This is the final result:
Get started with our quickstart recipes.
This project is licensed under the terms of the MIT license.
FAQs
Python SDK for Audiostack API
We found that audiostack demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.