import{s as Ne,o as Se,n as xe}from"../chunks/scheduler.8c3d61f6.js";import{S as Ee,i as qe,g as l,s,r as _,A as ze,h as d,f as n,c as a,j as Q,u as b,x as u,k as K,y as g,a as o,v,d as M,t as y,w}from"../chunks/index.da70eac4.js";import{T as Je}from"../chunks/Tip.1d9b8c37.js";import{D as Te}from"../chunks/Docstring.36ab7a66.js";import{C as Oe}from"../chunks/CodeBlock.a9c4becf.js";import{E as Ze}from"../chunks/ExampleCodeBlock.a18c7ba7.js";import{H as _e,E as Re}from"../chunks/getInferenceSnippets.33773fa8.js";function Ve(D){let i,m="This pipeline is deprecated but it can still be used. However, we won’t test the pipeline anymore and won’t accept any changes to it. If you run into any issues, reinstall the last Diffusers version that supported this model.";return{c(){i=l("p"),i.textContent=m},l(r){i=d(r,"P",{"data-svelte-h":!0}),u(i)!=="svelte-ic4u42"&&(i.textContent=m)},m(r,c){o(r,i,c)},p:xe,d(r){r&&n(i)}}}function We(D){let i,m='Make sure to check out the Schedulers <a href="../../using-diffusers/schedulers">guide</a> to learn how to explore the tradeoff between scheduler speed and quality, and see the <a href="../../using-diffusers/loading#reuse-a-pipeline">reuse components across pipelines</a> section to learn how to efficiently load the same components into multiple pipelines.';return{c(){i=l("p"),i.innerHTML=m},l(r){i=d(r,"P",{"data-svelte-h":!0}),u(i)!=="svelte-1qn15hi"&&(i.innerHTML=m)},m(r,c){o(r,i,c)},p:xe,d(r){r&&n(i)}}}function Ye(D){let i,m="Examples:",r,c,f;return c=new Oe({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1ZGlvTERNUGlwZWxpbmUlMEFpbXBvcnQlMjB0b3JjaCUwQWltcG9ydCUyMHNjaXB5JTBBJTBBcmVwb19pZCUyMCUzRCUyMCUyMmN2c3NwJTJGYXVkaW9sZG0tcy1mdWxsLXYyJTIyJTBBcGlwZSUyMCUzRCUyMEF1ZGlvTERNUGlwZWxpbmUuZnJvbV9wcmV0cmFpbmVkKHJlcG9faWQlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYpJTBBcGlwZSUyMCUzRCUyMHBpcGUudG8oJTIyY3VkYSUyMiklMEElMEFwcm9tcHQlMjAlM0QlMjAlMjJUZWNobm8lMjBtdXNpYyUyMHdpdGglMjBhJTIwc3Ryb25nJTJDJTIwdXBiZWF0JTIwdGVtcG8lMjBhbmQlMjBoaWdoJTIwbWVsb2RpYyUyMHJpZmZzJTIyJTBBYXVkaW8lMjAlM0QlMjBwaXBlKHByb21wdCUyQyUyMG51bV9pbmZlcmVuY2Vfc3RlcHMlM0QxMCUyQyUyMGF1ZGlvX2xlbmd0aF9pbl9zJTNENS4wKS5hdWRpb3MlNUIwJTVEJTBBJTBBJTIzJTIwc2F2ZSUyMHRoZSUyMGF1ZGlvJTIwc2FtcGxlJTIwYXMlMjBhJTIwLndhdiUyMGZpbGUlMEFzY2lweS5pby53YXZmaWxlLndyaXRlKCUyMnRlY2huby53YXYlMjIlMkMlMjByYXRlJTNEMTYwMDAlMkMlMjBkYXRhJTNEYXVkaW8p",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AudioLDMPipeline
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> scipy

<span class="hljs-meta">&gt;&gt;&gt; </span>repo_id = <span class="hljs-string">&quot;cvssp/audioldm-s-full-v2&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = AudioLDMPipeline.from_pretrained(repo_id, torch_dtype=torch.float16)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipe.to(<span class="hljs-string">&quot;cuda&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;Techno music with a strong, upbeat tempo and high melodic riffs&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>audio = pipe(prompt, num_inference_steps=<span class="hljs-number">10</span>, audio_length_in_s=<span class="hljs-number">5.0</span>).audios[<span class="hljs-number">0</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># save the audio sample as a .wav file</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>scipy.io.wavfile.write(<span class="hljs-string">&quot;techno.wav&quot;</span>, rate=<span class="hljs-number">16000</span>, data=audio)`,wrap:!1}}),{c(){i=l("p"),i.textContent=m,r=s(),_(c.$$.fragment)},l(p){i=d(p,"P",{"data-svelte-h":!0}),u(i)!=="svelte-kvfsh7"&&(i.textContent=m),r=a(p),b(c.$$.fragment,p)},m(p,$){o(p,i,$),o(p,r,$),v(c,p,$),f=!0},p:xe,i(p){f||(M(c.$$.fragment,p),f=!0)},o(p){y(c.$$.fragment,p),f=!1},d(p){p&&(n(i),n(r)),w(c,p)}}}function Fe(D){let i,m,r,c,f,p,$,ee,k,Le=`AudioLDM was proposed in <a href="https://huggingface.co/papers/2301.12503" rel="nofollow">AudioLDM: Text-to-Audio Generation with Latent Diffusion Models</a> by Haohe Liu et al. Inspired by <a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/overview" rel="nofollow">Stable Diffusion</a>, AudioLDM
is a text-to-audio <em>latent diffusion model (LDM)</em> that learns continuous audio representations from <a href="https://huggingface.co/docs/transformers/main/model_doc/clap" rel="nofollow">CLAP</a>
latents. AudioLDM takes a text prompt as input and predicts the corresponding audio. It can generate text-conditional
sound effects, human speech and music.`,te,j,Ae="The abstract from the paper is:",ne,U,De='<em>Text-to-audio (TTA) system has recently gained attention for its ability to synthesize general audio based on text descriptions. However, previous studies in TTA have limited generation quality with high computational costs. In this study, we propose AudioLDM, a TTA system that is built on a latent space to learn the continuous audio representations from contrastive language-audio pretraining (CLAP) latents. The pretrained CLAP models enable us to train LDMs with audio embedding while providing text embedding as a condition during sampling. By learning the latent representations of audio signals and their compositions without modeling the cross-modal relationship, AudioLDM is advantageous in both generation quality and computational efficiency. Trained on AudioCaps with a single GPU, AudioLDM achieves state-of-the-art TTA performance measured by both objective and subjective metrics (e.g., frechet distance). Moreover, AudioLDM is the first TTA system that enables various text-guided audio manipulations (e.g., style transfer) in a zero-shot fashion. Our implementation and demos are available at <a href="https://audioldm.github.io/" rel="nofollow">this https URL</a>.</em>',oe,G,Pe='The original codebase can be found at <a href="https://github.com/haoheliu/AudioLDM" rel="nofollow">haoheliu/AudioLDM</a>.',ie,I,se,B,Ce="When constructing a prompt, keep in mind:",ae,H,ke="<li>Descriptive prompt inputs work best; you can use adjectives to describe the sound (for example, “high quality” or “clear”) and make the prompt context specific (for example, “water stream in a forest” instead of “stream”).</li> <li>It’s best to use general terms like “cat” or “dog” instead of specific names or abstract objects the model may not be familiar with.</li>",re,J,je="During inference:",le,N,Ue="<li>The <em>quality</em> of the predicted audio sample can be controlled by the <code>num_inference_steps</code> argument; higher steps give higher quality audio at the expense of slower inference.</li> <li>The <em>length</em> of the predicted audio sample can be controlled by varying the <code>audio_length_in_s</code> argument.</li>",de,P,pe,S,ce,h,E,be,V,Ge="Pipeline for text-to-audio generation using AudioLDM.",ve,W,Ie=`This model inherits from <a href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`,Me,x,q,ye,Y,Be="The call function to the pipeline for generation.",we,C,ue,z,me,L,O,$e,F,He="Output class for audio pipelines.",fe,Z,he,X,ge;return f=new Je({props:{warning:!0,$$slots:{default:[Ve]},$$scope:{ctx:D}}}),$=new _e({props:{title:"AudioLDM",local:"audioldm",headingTag:"h1"}}),I=new _e({props:{title:"Tips",local:"tips",headingTag:"h2"}}),P=new Je({props:{$$slots:{default:[We]},$$scope:{ctx:D}}}),S=new _e({props:{title:"AudioLDMPipeline",local:"diffusers.AudioLDMPipeline",headingTag:"h2"}}),E=new Te({props:{name:"class diffusers.AudioLDMPipeline",anchor:"diffusers.AudioLDMPipeline",parameters:[{name:"vae",val:": AutoencoderKL"},{name:"text_encoder",val:": ClapTextModelWithProjection"},{name:"tokenizer",val:": typing.Union[transformers.models.roberta.tokenization_roberta.RobertaTokenizer, transformers.models.roberta.tokenization_roberta_fast.RobertaTokenizerFast]"},{name:"unet",val:": UNet2DConditionModel"},{name:"scheduler",val:": KarrasDiffusionSchedulers"},{name:"vocoder",val:": SpeechT5HifiGan"}],parametersDescription:[{anchor:"diffusers.AudioLDMPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/main/en/api/models/autoencoderkl#diffusers.AutoencoderKL">AutoencoderKL</a>) &#x2014;
Variational Auto-Encoder (VAE) model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.AudioLDMPipeline.text_encoder",description:`<strong>text_encoder</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/clap#transformers.ClapTextModelWithProjection" rel="nofollow">ClapTextModelWithProjection</a>) &#x2014;
Frozen text-encoder (<code>ClapTextModelWithProjection</code>, specifically the
<a href="https://huggingface.co/laion/clap-htsat-unfused" rel="nofollow">laion/clap-htsat-unfused</a> variant.`,name:"text_encoder"},{anchor:"diffusers.AudioLDMPipeline.tokenizer",description:`<strong>tokenizer</strong> (<code>PreTrainedTokenizer</code>) &#x2014;
A <a href="https://huggingface.co/docs/transformers/main/en/model_doc/roberta#transformers.RobertaTokenizer" rel="nofollow">RobertaTokenizer</a> to tokenize text.`,name:"tokenizer"},{anchor:"diffusers.AudioLDMPipeline.unet",description:`<strong>unet</strong> (<a href="/docs/diffusers/main/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>) &#x2014;
A <code>UNet2DConditionModel</code> to denoise the encoded audio latents.`,name:"unet"},{anchor:"diffusers.AudioLDMPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.SchedulerMixin">SchedulerMixin</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded audio latents. Can be one of
<a href="/docs/diffusers/main/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, <a href="/docs/diffusers/main/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, or <a href="/docs/diffusers/main/en/api/schedulers/pndm#diffusers.PNDMScheduler">PNDMScheduler</a>.`,name:"scheduler"},{anchor:"diffusers.AudioLDMPipeline.vocoder",description:`<strong>vocoder</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/speecht5#transformers.SpeechT5HifiGan" rel="nofollow">SpeechT5HifiGan</a>) &#x2014;
Vocoder of class <code>SpeechT5HifiGan</code>.`,name:"vocoder"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audioldm/pipeline_audioldm.py#L60"}}),q=new Te({props:{name:"__call__",anchor:"diffusers.AudioLDMPipeline.__call__",parameters:[{name:"prompt",val:": typing.Union[str, typing.List[str]] = None"},{name:"audio_length_in_s",val:": typing.Optional[float] = None"},{name:"num_inference_steps",val:": int = 10"},{name:"guidance_scale",val:": float = 2.5"},{name:"negative_prompt",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"num_waveforms_per_prompt",val:": typing.Optional[int] = 1"},{name:"eta",val:": float = 0.0"},{name:"generator",val:": typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None"},{name:"latents",val:": typing.Optional[torch.Tensor] = None"},{name:"prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"negative_prompt_embeds",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": typing.Optional[typing.Callable[[int, int, torch.Tensor], NoneType]] = None"},{name:"callback_steps",val:": typing.Optional[int] = 1"},{name:"cross_attention_kwargs",val:": typing.Optional[typing.Dict[str, typing.Any]] = None"},{name:"output_type",val:": typing.Optional[str] = 'np'"}],parametersDescription:[{anchor:"diffusers.AudioLDMPipeline.__call__.prompt",description:`<strong>prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide audio generation. If not defined, you need to pass <code>prompt_embeds</code>.`,name:"prompt"},{anchor:"diffusers.AudioLDMPipeline.__call__.audio_length_in_s",description:`<strong>audio_length_in_s</strong> (<code>int</code>, <em>optional</em>, defaults to 5.12) &#x2014;
The length of the generated audio sample in seconds.`,name:"audio_length_in_s"},{anchor:"diffusers.AudioLDMPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 10) &#x2014;
The number of denoising steps. More denoising steps usually lead to a higher quality audio at the
expense of slower inference.`,name:"num_inference_steps"},{anchor:"diffusers.AudioLDMPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 2.5) &#x2014;
A higher guidance scale value encourages the model to generate audio that is closely linked to the text
<code>prompt</code> at the expense of lower sound quality. Guidance scale is enabled when <code>guidance_scale &gt; 1</code>.`,name:"guidance_scale"},{anchor:"diffusers.AudioLDMPipeline.__call__.negative_prompt",description:`<strong>negative_prompt</strong> (<code>str</code> or <code>List[str]</code>, <em>optional</em>) &#x2014;
The prompt or prompts to guide what to not include in audio generation. If not defined, you need to
pass <code>negative_prompt_embeds</code> instead. Ignored when not using guidance (<code>guidance_scale &lt; 1</code>).`,name:"negative_prompt"},{anchor:"diffusers.AudioLDMPipeline.__call__.num_waveforms_per_prompt",description:`<strong>num_waveforms_per_prompt</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The number of waveforms to generate per prompt.`,name:"num_waveforms_per_prompt"},{anchor:"diffusers.AudioLDMPipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Corresponds to parameter eta (&#x3B7;) from the <a href="https://huggingface.co/papers/2010.02502" rel="nofollow">DDIM</a> paper. Only
applies to the <a href="/docs/diffusers/main/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>, and is ignored in other schedulers.`,name:"eta"},{anchor:"diffusers.AudioLDMPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code> or <code>List[torch.Generator]</code>, <em>optional</em>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> to make
generation deterministic.`,name:"generator"},{anchor:"diffusers.AudioLDMPipeline.__call__.latents",description:`<strong>latents</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated noisy latents sampled from a Gaussian distribution, to be used as inputs for image
generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
tensor is generated by sampling using the supplied random <code>generator</code>.`,name:"latents"},{anchor:"diffusers.AudioLDMPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated text embeddings. Can be used to easily tweak text inputs (prompt weighting). If not
provided, text embeddings are generated from the <code>prompt</code> input argument.`,name:"prompt_embeds"},{anchor:"diffusers.AudioLDMPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-generated negative text embeddings. Can be used to easily tweak text inputs (prompt weighting). If
not provided, <code>negative_prompt_embeds</code> are generated from the <code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.AudioLDMPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/main/en/api/pipelines/audioldm#diffusers.AudioPipelineOutput">AudioPipelineOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"diffusers.AudioLDMPipeline.__call__.callback",description:`<strong>callback</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
A function that calls every <code>callback_steps</code> steps during inference. The function is called with the
following arguments: <code>callback(step: int, timestep: int, latents: torch.Tensor)</code>.`,name:"callback"},{anchor:"diffusers.AudioLDMPipeline.__call__.callback_steps",description:`<strong>callback_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The frequency at which the <code>callback</code> function is called. If not specified, the callback is called at
every step.`,name:"callback_steps"},{anchor:"diffusers.AudioLDMPipeline.__call__.cross_attention_kwargs",description:`<strong>cross_attention_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A kwargs dictionary that if specified is passed along to the <code>AttentionProcessor</code> as defined in
<a href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py" rel="nofollow"><code>self.processor</code></a>.`,name:"cross_attention_kwargs"},{anchor:"diffusers.AudioLDMPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;np&quot;</code>) &#x2014;
The output format of the generated image. Choose between <code>&quot;np&quot;</code> to return a NumPy <code>np.ndarray</code> or
<code>&quot;pt&quot;</code> to return a PyTorch <code>torch.Tensor</code> object.`,name:"output_type"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audioldm/pipeline_audioldm.py#L360",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>If <code>return_dict</code> is <code>True</code>, <a
  href="/docs/diffusers/main/en/api/pipelines/audioldm#diffusers.AudioPipelineOutput"
>AudioPipelineOutput</a> is returned, otherwise a <code>tuple</code> is
returned where the first element is a list with the generated audio.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/main/en/api/pipelines/audioldm#diffusers.AudioPipelineOutput"
>AudioPipelineOutput</a> or <code>tuple</code></p>
`}}),C=new Ze({props:{anchor:"diffusers.AudioLDMPipeline.__call__.example",$$slots:{default:[Ye]},$$scope:{ctx:D}}}),z=new _e({props:{title:"AudioPipelineOutput",local:"diffusers.AudioPipelineOutput",headingTag:"h2"}}),O=new Te({props:{name:"class diffusers.AudioPipelineOutput",anchor:"diffusers.AudioPipelineOutput",parameters:[{name:"audios",val:": ndarray"}],parametersDescription:[{anchor:"diffusers.AudioPipelineOutput.audios",description:`<strong>audios</strong> (<code>np.ndarray</code>) &#x2014;
List of denoised audio samples of a NumPy array of shape <code>(batch_size, num_channels, sample_rate)</code>.`,name:"audios"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_utils.py#L130"}}),Z=new Re({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/audioldm.md"}}),{c(){i=l("meta"),m=s(),r=l("p"),c=s(),_(f.$$.fragment),p=s(),_($.$$.fragment),ee=s(),k=l("p"),k.innerHTML=Le,te=s(),j=l("p"),j.textContent=Ae,ne=s(),U=l("p"),U.innerHTML=De,oe=s(),G=l("p"),G.innerHTML=Pe,ie=s(),_(I.$$.fragment),se=s(),B=l("p"),B.textContent=Ce,ae=s(),H=l("ul"),H.innerHTML=ke,re=s(),J=l("p"),J.textContent=je,le=s(),N=l("ul"),N.innerHTML=Ue,de=s(),_(P.$$.fragment),pe=s(),_(S.$$.fragment),ce=s(),h=l("div"),_(E.$$.fragment),be=s(),V=l("p"),V.textContent=Ge,ve=s(),W=l("p"),W.innerHTML=Ie,Me=s(),x=l("div"),_(q.$$.fragment),ye=s(),Y=l("p"),Y.textContent=Be,we=s(),_(C.$$.fragment),ue=s(),_(z.$$.fragment),me=s(),L=l("div"),_(O.$$.fragment),$e=s(),F=l("p"),F.textContent=He,fe=s(),_(Z.$$.fragment),he=s(),X=l("p"),this.h()},l(e){const t=ze("svelte-u9bgzb",document.head);i=d(t,"META",{name:!0,content:!0}),t.forEach(n),m=a(e),r=d(e,"P",{}),Q(r).forEach(n),c=a(e),b(f.$$.fragment,e),p=a(e),b($.$$.fragment,e),ee=a(e),k=d(e,"P",{"data-svelte-h":!0}),u(k)!=="svelte-1ozr8g7"&&(k.innerHTML=Le),te=a(e),j=d(e,"P",{"data-svelte-h":!0}),u(j)!=="svelte-1cwsb16"&&(j.textContent=Ae),ne=a(e),U=d(e,"P",{"data-svelte-h":!0}),u(U)!=="svelte-64lmgc"&&(U.innerHTML=De),oe=a(e),G=d(e,"P",{"data-svelte-h":!0}),u(G)!=="svelte-1n8fwj9"&&(G.innerHTML=Pe),ie=a(e),b(I.$$.fragment,e),se=a(e),B=d(e,"P",{"data-svelte-h":!0}),u(B)!=="svelte-1dvtu0c"&&(B.textContent=Ce),ae=a(e),H=d(e,"UL",{"data-svelte-h":!0}),u(H)!=="svelte-msgw5q"&&(H.innerHTML=ke),re=a(e),J=d(e,"P",{"data-svelte-h":!0}),u(J)!=="svelte-1g0t9wk"&&(J.textContent=je),le=a(e),N=d(e,"UL",{"data-svelte-h":!0}),u(N)!=="svelte-jm9a2k"&&(N.innerHTML=Ue),de=a(e),b(P.$$.fragment,e),pe=a(e),b(S.$$.fragment,e),ce=a(e),h=d(e,"DIV",{class:!0});var T=Q(h);b(E.$$.fragment,T),be=a(T),V=d(T,"P",{"data-svelte-h":!0}),u(V)!=="svelte-1vrcpd4"&&(V.textContent=Ge),ve=a(T),W=d(T,"P",{"data-svelte-h":!0}),u(W)!=="svelte-496sm0"&&(W.innerHTML=Ie),Me=a(T),x=d(T,"DIV",{class:!0});var A=Q(x);b(q.$$.fragment,A),ye=a(A),Y=d(A,"P",{"data-svelte-h":!0}),u(Y)!=="svelte-50j04k"&&(Y.textContent=Be),we=a(A),b(C.$$.fragment,A),A.forEach(n),T.forEach(n),ue=a(e),b(z.$$.fragment,e),me=a(e),L=d(e,"DIV",{class:!0});var R=Q(L);b(O.$$.fragment,R),$e=a(R),F=d(R,"P",{"data-svelte-h":!0}),u(F)!=="svelte-19ryw33"&&(F.textContent=He),R.forEach(n),fe=a(e),b(Z.$$.fragment,e),he=a(e),X=d(e,"P",{}),Q(X).forEach(n),this.h()},h(){K(i,"name","hf:doc:metadata"),K(i,"content",Xe),K(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),K(h,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),K(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){g(document.head,i),o(e,m,t),o(e,r,t),o(e,c,t),v(f,e,t),o(e,p,t),v($,e,t),o(e,ee,t),o(e,k,t),o(e,te,t),o(e,j,t),o(e,ne,t),o(e,U,t),o(e,oe,t),o(e,G,t),o(e,ie,t),v(I,e,t),o(e,se,t),o(e,B,t),o(e,ae,t),o(e,H,t),o(e,re,t),o(e,J,t),o(e,le,t),o(e,N,t),o(e,de,t),v(P,e,t),o(e,pe,t),v(S,e,t),o(e,ce,t),o(e,h,t),v(E,h,null),g(h,be),g(h,V),g(h,ve),g(h,W),g(h,Me),g(h,x),v(q,x,null),g(x,ye),g(x,Y),g(x,we),v(C,x,null),o(e,ue,t),v(z,e,t),o(e,me,t),o(e,L,t),v(O,L,null),g(L,$e),g(L,F),o(e,fe,t),v(Z,e,t),o(e,he,t),o(e,X,t),ge=!0},p(e,[t]){const T={};t&2&&(T.$$scope={dirty:t,ctx:e}),f.$set(T);const A={};t&2&&(A.$$scope={dirty:t,ctx:e}),P.$set(A);const R={};t&2&&(R.$$scope={dirty:t,ctx:e}),C.$set(R)},i(e){ge||(M(f.$$.fragment,e),M($.$$.fragment,e),M(I.$$.fragment,e),M(P.$$.fragment,e),M(S.$$.fragment,e),M(E.$$.fragment,e),M(q.$$.fragment,e),M(C.$$.fragment,e),M(z.$$.fragment,e),M(O.$$.fragment,e),M(Z.$$.fragment,e),ge=!0)},o(e){y(f.$$.fragment,e),y($.$$.fragment,e),y(I.$$.fragment,e),y(P.$$.fragment,e),y(S.$$.fragment,e),y(E.$$.fragment,e),y(q.$$.fragment,e),y(C.$$.fragment,e),y(z.$$.fragment,e),y(O.$$.fragment,e),y(Z.$$.fragment,e),ge=!1},d(e){e&&(n(m),n(r),n(c),n(p),n(ee),n(k),n(te),n(j),n(ne),n(U),n(oe),n(G),n(ie),n(se),n(B),n(ae),n(H),n(re),n(J),n(le),n(N),n(de),n(pe),n(ce),n(h),n(ue),n(me),n(L),n(fe),n(he),n(X)),n(i),w(f,e),w($,e),w(I,e),w(P,e),w(S,e),w(E),w(q),w(C),w(z,e),w(O),w(Z,e)}}}const Xe='{"title":"AudioLDM","local":"audioldm","sections":[{"title":"Tips","local":"tips","sections":[],"depth":2},{"title":"AudioLDMPipeline","local":"diffusers.AudioLDMPipeline","sections":[],"depth":2},{"title":"AudioPipelineOutput","local":"diffusers.AudioPipelineOutput","sections":[],"depth":2}],"depth":1}';function Qe(D){return Se(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class at extends Ee{constructor(i){super(),qe(this,i,Qe,Fe,Ne,{})}}export{at as component};
