 otherwise a `tuple.
When returning a tuple, the first element is a list with the generated audios.


Function invoked when calling the pipeline for generation.

Examples:


	Copied
>>> import torch
>>> from diffusers import AudioLDMPipeline

>>> pipe = AudioLDMPipeline.from_pretrained("cvssp/audioldm", torch_dtype=torch.float16)
>>> pipe = pipe.to("cuda")

>>> prompt = "A hammer hitting a wooden surface"
>>> audio = pipe(prompt).audio[0]

disa