Learn how to use the text to sound effects API to generate sound effects from text.
.env
file in your project directory and fill it with your credentials like so:
duration_seconds
: The duration of the sound effect in seconds. If not provided, the API will automatically determine the correct length. The maximum value is 22prompt_influence
: The amount of influence the prompt has on the generated sound effect. If not provided, the API will use the default value of 0.3