import{S as Mo,i as Do,s as Po,e as o,k as a,w as b,t as c,M as Ao,c as i,d as t,m as l,a as n,x as $,h as m,b as d,G as s,g,y as v,q as y,o as w,B as M,v as xo,L as Bt}from"../../../chunks/vendor-hf-doc-builder.js";import{T as Eo}from"../../../chunks/Tip-hf-doc-builder.js";import{D as I}from"../../../chunks/Docstring-hf-doc-builder.js";import{C as Ct}from"../../../chunks/CodeBlock-hf-doc-builder.js";import{I as rs}from"../../../chunks/IconCopyLink-hf-doc-builder.js";import{E as Rt}from"../../../chunks/ExampleCodeBlock-hf-doc-builder.js";function ko(j){let f,A,h,p,D,r,_,U;return{c(){f=o("p"),A=c("Make sure to check out the Schedulers "),h=o("a"),p=c("guide"),D=c(" to learn how to explore the tradeoff between scheduler speed and quality, and see the "),r=o("a"),_=c("reuse components across pipelines"),U=c(" section to learn how to efficiently load the same components into multiple pipelines."),this.h()},l(L){f=i(L,"P",{});var J=n(f);A=m(J,"Make sure to check out the Schedulers "),h=i(J,"A",{href:!0});var N=n(h);p=m(N,"guide"),N.forEach(t),D=m(J," to learn how to explore the tradeoff between scheduler speed and quality, and see the "),r=i(J,"A",{href:!0});var G=n(r);_=m(G,"reuse components across pipelines"),G.forEach(t),U=m(J," section to learn how to efficiently load the same components into multiple pipelines."),J.forEach(t),this.h()},h(){d(h,"href","/using-diffusers/schedulers"),d(r,"href","/using-diffusers/loading#reuse-components-across-pipelines")},m(L,J){g(L,f,J),s(f,A),s(f,h),s(h,p),s(f,D),s(f,r),s(r,_),s(f,U)},d(L){L&&t(f)}}}function Io(j){let f,A,h,p,D;return p=new Ct({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwSVB5dGhvbi5kaXNwbGF5JTIwaW1wb3J0JTIwQXVkaW8lMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFkZXZpY2UlMjAlM0QlMjAlMjJjdWRhJTIyJTIwaWYlMjB0b3JjaC5jdWRhLmlzX2F2YWlsYWJsZSgpJTIwZWxzZSUyMCUyMmNwdSUyMiUwQXBpcGUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIydGV0aWNpbyUyRmF1ZGlvLWRpZmZ1c2lvbi0yNTYlMjIpLnRvKGRldmljZSklMEElMEFvdXRwdXQlMjAlM0QlMjBwaXBlKCklMEFkaXNwbGF5KG91dHB1dC5pbWFnZXMlNUIwJTVEKSUwQWRpc3BsYXkoQXVkaW8ob3V0cHV0LmF1ZGlvcyU1QjAlNUQlMkMlMjByYXRlJTNEbWVsLmdldF9zYW1wbGVfcmF0ZSgpKSk=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> IPython.display <span class="hljs-keyword">import</span> Audio
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline

device = <span class="hljs-string">&quot;cuda&quot;</span> <span class="hljs-keyword">if</span> torch.cuda.is_available() <span class="hljs-keyword">else</span> <span class="hljs-string">&quot;cpu&quot;</span>
pipe = DiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;teticio/audio-diffusion-256&quot;</span>).to(device)

output = pipe()
display(output.images[<span class="hljs-number">0</span>])
display(Audio(output.audios[<span class="hljs-number">0</span>], rate=mel.get_sample_rate()))`}}),{c(){f=o("p"),A=c("For audio diffusion:"),h=a(),b(p.$$.fragment)},l(r){f=i(r,"P",{});var _=n(f);A=m(_,"For audio diffusion:"),_.forEach(t),h=l(r),$(p.$$.fragment,r)},m(r,_){g(r,f,_),s(f,A),g(r,h,_),v(p,r,_),D=!0},p:Bt,i(r){D||(y(p.$$.fragment,r),D=!0)},o(r){w(p.$$.fragment,r),D=!1},d(r){r&&t(f),r&&t(h),M(p,r)}}}function To(j){let f,A,h,p,D;return p=new Ct({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwSVB5dGhvbi5kaXNwbGF5JTIwaW1wb3J0JTIwQXVkaW8lMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFkZXZpY2UlMjAlM0QlMjAlMjJjdWRhJTIyJTIwaWYlMjB0b3JjaC5jdWRhLmlzX2F2YWlsYWJsZSgpJTIwZWxzZSUyMCUyMmNwdSUyMiUwQXBpcGUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTIydGV0aWNpbyUyRmxhdGVudC1hdWRpby1kaWZmdXNpb24tMjU2JTIyKS50byhkZXZpY2UpJTBBJTBBb3V0cHV0JTIwJTNEJTIwcGlwZSgpJTBBZGlzcGxheShvdXRwdXQuaW1hZ2VzJTVCMCU1RCklMEFkaXNwbGF5KEF1ZGlvKG91dHB1dC5hdWRpb3MlNUIwJTVEJTJDJTIwcmF0ZSUzRHBpcGUubWVsLmdldF9zYW1wbGVfcmF0ZSgpKSk=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> IPython.display <span class="hljs-keyword">import</span> Audio
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline

device = <span class="hljs-string">&quot;cuda&quot;</span> <span class="hljs-keyword">if</span> torch.cuda.is_available() <span class="hljs-keyword">else</span> <span class="hljs-string">&quot;cpu&quot;</span>
pipe = DiffusionPipeline.from_pretrained(<span class="hljs-string">&quot;teticio/latent-audio-diffusion-256&quot;</span>).to(device)

output = pipe()
display(output.images[<span class="hljs-number">0</span>])
display(Audio(output.audios[<span class="hljs-number">0</span>], rate=pipe.mel.get_sample_rate()))`}}),{c(){f=o("p"),A=c("For latent audio diffusion:"),h=a(),b(p.$$.fragment)},l(r){f=i(r,"P",{});var _=n(f);A=m(_,"For latent audio diffusion:"),_.forEach(t),h=l(r),$(p.$$.fragment,r)},m(r,_){g(r,f,_),s(f,A),g(r,h,_),v(p,r,_),D=!0},p:Bt,i(r){D||(y(p.$$.fragment,r),D=!0)},o(r){w(p.$$.fragment,r),D=!1},d(r){r&&t(f),r&&t(h),M(p,r)}}}function Jo(j){let f,A,h,p,D;return p=new Ct({props:{code:"b3V0cHV0JTIwJTNEJTIwcGlwZSglMEElMjAlMjAlMjAlMjByYXdfYXVkaW8lM0RvdXRwdXQuYXVkaW9zJTVCMCUyQyUyMDAlNUQlMkMlMEElMjAlMjAlMjAlMjBzdGFydF9zdGVwJTNEaW50KHBpcGUuZ2V0X2RlZmF1bHRfc3RlcHMoKSUyMCUyRiUyMDIpJTJDJTBBJTIwJTIwJTIwJTIwbWFza19zdGFydF9zZWNzJTNEMSUyQyUwQSUyMCUyMCUyMCUyMG1hc2tfZW5kX3NlY3MlM0QxJTJDJTBBKSUwQWRpc3BsYXkob3V0cHV0LmltYWdlcyU1QjAlNUQpJTBBZGlzcGxheShBdWRpbyhvdXRwdXQuYXVkaW9zJTVCMCU1RCUyQyUyMHJhdGUlM0RwaXBlLm1lbC5nZXRfc2FtcGxlX3JhdGUoKSkp",highlighted:`output = pipe(
    raw_audio=output.audios[<span class="hljs-number">0</span>, <span class="hljs-number">0</span>],
    start_step=<span class="hljs-built_in">int</span>(pipe.get_default_steps() / <span class="hljs-number">2</span>),
    mask_start_secs=<span class="hljs-number">1</span>,
    mask_end_secs=<span class="hljs-number">1</span>,
)
display(output.images[<span class="hljs-number">0</span>])
display(Audio(output.audios[<span class="hljs-number">0</span>], rate=pipe.mel.get_sample_rate()))`}}),{c(){f=o("p"),A=c("For other tasks like variation, inpainting, outpainting, etc:"),h=a(),b(p.$$.fragment)},l(r){f=i(r,"P",{});var _=n(f);A=m(_,"For other tasks like variation, inpainting, outpainting, etc:"),_.forEach(t),h=l(r),$(p.$$.fragment,r)},m(r,_){g(r,f,_),s(f,A),g(r,h,_),v(p,r,_),D=!0},p:Bt,i(r){D||(y(p.$$.fragment,r),D=!0)},o(r){w(p.$$.fragment,r),D=!1},d(r){r&&t(f),r&&t(h),M(p,r)}}}function So(j){let f,A,h,p,D,r,_,U,L,J,N,G,Ns,Gs,ns,C,Us,fe,Ls,Ws,as,F,ls,W,z,Se,pe,Vs,je,Zs,ds,x,ue,Xs,Ne,Rs,Bs,ce,Cs,Je,Fs,zs,Qs,E,me,Os,Ge,Ys,qs,Ue,Hs,Ks,Q,et,O,st,Y,tt,q,he,ot,Le,it,rt,H,ge,nt,We,at,lt,K,_e,dt,Ve,ft,fs,V,ee,Ze,be,pt,Xe,ut,ps,Z,$e,ct,Re,mt,us,X,se,Be,ve,ht,Ce,gt,cs,R,ye,_t,Fe,bt,ms,B,te,ze,we,$t,Qe,vt,hs,P,Me,yt,oe,De,wt,Oe,Mt,Dt,ie,Pe,Pt,Ye,At,xt,re,Ae,Et,qe,kt,It,ne,xe,Tt,He,Jt,St,ae,Ee,jt,Ke,Nt,Gt,le,ke,Ut,es,Lt,Wt,de,Ie,Vt,ss,Zt,gs;return r=new rs({}),F=new Eo({props:{$$slots:{default:[ko]},$$scope:{ctx:j}}}),pe=new rs({}),ue=new I({props:{name:"class diffusers.AudioDiffusionPipeline",anchor:"diffusers.AudioDiffusionPipeline",parameters:[{name:"vqvae",val:": AutoencoderKL"},{name:"unet",val:": UNet2DConditionModel"},{name:"mel",val:": Mel"},{name:"scheduler",val:": typing.Union[diffusers.schedulers.scheduling_ddim.DDIMScheduler, diffusers.schedulers.scheduling_ddpm.DDPMScheduler]"}],parametersDescription:[{anchor:"diffusers.AudioDiffusionPipeline.vqae",description:`<strong>vqae</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:"vqae"},{anchor:"diffusers.AudioDiffusionPipeline.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 image latents.`,name:"unet"},{anchor:"diffusers.AudioDiffusionPipeline.mel",description:`<strong>mel</strong> (<a href="/docs/diffusers/main/en/api/pipelines/audio_diffusion#diffusers.Mel">Mel</a>) &#x2014;
Transform audio into a spectrogram.`,name:"mel"},{anchor:"diffusers.AudioDiffusionPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/main/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a> or <a href="/docs/diffusers/main/en/api/schedulers/ddpm#diffusers.DDPMScheduler">DDPMScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>unet</code> to denoise the encoded image latents. Can be one of
<a href="/docs/diffusers/main/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a> or <a href="/docs/diffusers/main/en/api/schedulers/ddpm#diffusers.DDPMScheduler">DDPMScheduler</a>.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/pipeline_audio_diffusion.py#L30"}}),me=new I({props:{name:"__call__",anchor:"diffusers.AudioDiffusionPipeline.__call__",parameters:[{name:"batch_size",val:": int = 1"},{name:"audio_file",val:": str = None"},{name:"raw_audio",val:": ndarray = None"},{name:"slice",val:": int = 0"},{name:"start_step",val:": int = 0"},{name:"steps",val:": int = None"},{name:"generator",val:": Generator = None"},{name:"mask_start_secs",val:": float = 0"},{name:"mask_end_secs",val:": float = 0"},{name:"step_generator",val:": Generator = None"},{name:"eta",val:": float = 0"},{name:"noise",val:": Tensor = None"},{name:"encoding",val:": Tensor = None"},{name:"return_dict",val:" = True"}],parametersDescription:[{anchor:"diffusers.AudioDiffusionPipeline.__call__.batch_size",description:`<strong>batch_size</strong> (<code>int</code>) &#x2014;
Number of samples to generate.`,name:"batch_size"},{anchor:"diffusers.AudioDiffusionPipeline.__call__.audio_file",description:`<strong>audio_file</strong> (<code>str</code>) &#x2014;
An audio file that must be on disk due to <a href="https://librosa.org/" rel="nofollow">Librosa</a> limitation.`,name:"audio_file"},{anchor:"diffusers.AudioDiffusionPipeline.__call__.raw_audio",description:`<strong>raw_audio</strong> (<code>np.ndarray</code>) &#x2014;
The raw audio file as a NumPy array.`,name:"raw_audio"},{anchor:"diffusers.AudioDiffusionPipeline.__call__.slice",description:`<strong>slice</strong> (<code>int</code>) &#x2014;
Slice number of audio to convert.`,name:"slice"},{anchor:"diffusers.AudioDiffusionPipeline.__call__.start_step",description:`<strong>start_step</strong> (int) &#x2014;
Step to start diffusion from.`,name:"start_step"},{anchor:"diffusers.AudioDiffusionPipeline.__call__.steps",description:`<strong>steps</strong> (<code>int</code>) &#x2014;
Number of denoising steps (defaults to <code>50</code> for DDIM and <code>1000</code> for DDPM).`,name:"steps"},{anchor:"diffusers.AudioDiffusionPipeline.__call__.generator",description:`<strong>generator</strong> (<code>torch.Generator</code>) &#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.AudioDiffusionPipeline.__call__.mask_start_secs",description:`<strong>mask_start_secs</strong> (<code>float</code>) &#x2014;
Number of seconds of audio to mask (not generate) at start.`,name:"mask_start_secs"},{anchor:"diffusers.AudioDiffusionPipeline.__call__.mask_end_secs",description:`<strong>mask_end_secs</strong> (<code>float</code>) &#x2014;
Number of seconds of audio to mask (not generate) at end.`,name:"mask_end_secs"},{anchor:"diffusers.AudioDiffusionPipeline.__call__.step_generator",description:`<strong>step_generator</strong> (<code>torch.Generator</code>) &#x2014;
A <a href="https://pytorch.org/docs/stable/generated/torch.Generator.html" rel="nofollow"><code>torch.Generator</code></a> used to denoise.
None`,name:"step_generator"},{anchor:"diffusers.AudioDiffusionPipeline.__call__.eta",description:`<strong>eta</strong> (<code>float</code>) &#x2014;
Corresponds to parameter eta (&#x3B7;) from the <a href="https://arxiv.org/abs/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.AudioDiffusionPipeline.__call__.noise",description:`<strong>noise</strong> (<code>torch.Tensor</code>) &#x2014;
A noise tensor of shape <code>(batch_size, 1, height, width)</code> or <code>None</code>.`,name:"noise"},{anchor:"diffusers.AudioDiffusionPipeline.__call__.encoding",description:`<strong>encoding</strong> (<code>torch.Tensor</code>) &#x2014;
A tensor for <a href="/docs/diffusers/main/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a> of shape <code>(batch_size, seq_length, cross_attention_dim)</code>.`,name:"encoding"},{anchor:"diffusers.AudioDiffusionPipeline.__call__.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>) &#x2014;
Whether or not to return a <a href="/docs/diffusers/main/en/api/pipelines/dance_diffusion#diffusers.AudioPipelineOutput">AudioPipelineOutput</a>, <a href="/docs/diffusers/main/en/api/pipelines/latent_diffusion_uncond#diffusers.ImagePipelineOutput">ImagePipelineOutput</a> or a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/pipeline_audio_diffusion.py#L70",returnDescription:`
<p>A list of Mel spectrograms (<code>float</code>, <code>List[np.ndarray]</code>) with the sample rate and raw audio.</p>
`,returnType:`
<p><code>List[PIL Image]</code></p>
`}}),Q=new Rt({props:{anchor:"diffusers.AudioDiffusionPipeline.__call__.example",$$slots:{default:[Io]},$$scope:{ctx:j}}}),O=new Rt({props:{anchor:"diffusers.AudioDiffusionPipeline.__call__.example-2",$$slots:{default:[To]},$$scope:{ctx:j}}}),Y=new Rt({props:{anchor:"diffusers.AudioDiffusionPipeline.__call__.example-3",$$slots:{default:[Jo]},$$scope:{ctx:j}}}),he=new I({props:{name:"encode",anchor:"diffusers.AudioDiffusionPipeline.encode",parameters:[{name:"images",val:": typing.List[PIL.Image.Image]"},{name:"steps",val:": int = 50"}],parametersDescription:[{anchor:"diffusers.AudioDiffusionPipeline.encode.images",description:`<strong>images</strong> (<code>List[PIL Image]</code>) &#x2014;
List of images to encode.`,name:"images"},{anchor:"diffusers.AudioDiffusionPipeline.encode.steps",description:`<strong>steps</strong> (<code>int</code>) &#x2014;
Number of encoding steps to perform (defaults to <code>50</code>).`,name:"steps"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/pipeline_audio_diffusion.py#L270",returnDescription:`
<p>A noise tensor of shape <code>(batch_size, 1, height, width)</code>.</p>
`,returnType:`
<p><code>np.ndarray</code></p>
`}}),ge=new I({props:{name:"get_default_steps",anchor:"diffusers.AudioDiffusionPipeline.get_default_steps",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/pipeline_audio_diffusion.py#L61",returnDescription:`
<p>The number of steps.</p>
`,returnType:`
<p><code>int</code></p>
`}}),_e=new I({props:{name:"slerp",anchor:"diffusers.AudioDiffusionPipeline.slerp",parameters:[{name:"x0",val:": Tensor"},{name:"x1",val:": Tensor"},{name:"alpha",val:": float"}],parametersDescription:[{anchor:"diffusers.AudioDiffusionPipeline.slerp.x0",description:`<strong>x0</strong> (<code>torch.Tensor</code>) &#x2014;
The first tensor to interpolate between.`,name:"x0"},{anchor:"diffusers.AudioDiffusionPipeline.slerp.x1",description:`<strong>x1</strong> (<code>torch.Tensor</code>) &#x2014;
Second tensor to interpolate between.`,name:"x1"},{anchor:"diffusers.AudioDiffusionPipeline.slerp.alpha",description:`<strong>alpha</strong> (<code>float</code>) &#x2014;
Interpolation between 0 and 1`,name:"alpha"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/pipeline_audio_diffusion.py#L311",returnDescription:`
<p>The interpolated tensor.</p>
`,returnType:`
<p><code>torch.Tensor</code></p>
`}}),be=new rs({}),$e=new I({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#L126"}}),ve=new rs({}),ye=new I({props:{name:"class diffusers.ImagePipelineOutput",anchor:"diffusers.ImagePipelineOutput",parameters:[{name:"images",val:": typing.Union[typing.List[PIL.Image.Image], numpy.ndarray]"}],parametersDescription:[{anchor:"diffusers.ImagePipelineOutput.images",description:`<strong>images</strong> (<code>List[PIL.Image.Image]</code> or <code>np.ndarray</code>) &#x2014;
List of denoised PIL images of length <code>batch_size</code> or NumPy array of shape <code>(batch_size, height, width, num_channels)</code>.`,name:"images"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_utils.py#L112"}}),we=new rs({}),Me=new I({props:{name:"class diffusers.Mel",anchor:"diffusers.Mel",parameters:[{name:"x_res",val:": int = 256"},{name:"y_res",val:": int = 256"},{name:"sample_rate",val:": int = 22050"},{name:"n_fft",val:": int = 2048"},{name:"hop_length",val:": int = 512"},{name:"top_db",val:": int = 80"},{name:"n_iter",val:": int = 32"}],parametersDescription:[{anchor:"diffusers.Mel.x_res",description:`<strong>x_res</strong> (<code>int</code>) &#x2014;
x resolution of spectrogram (time).`,name:"x_res"},{anchor:"diffusers.Mel.y_res",description:`<strong>y_res</strong> (<code>int</code>) &#x2014;
y resolution of spectrogram (frequency bins).`,name:"y_res"},{anchor:"diffusers.Mel.sample_rate",description:`<strong>sample_rate</strong> (<code>int</code>) &#x2014;
Sample rate of audio.`,name:"sample_rate"},{anchor:"diffusers.Mel.n_fft",description:`<strong>n_fft</strong> (<code>int</code>) &#x2014;
Number of Fast Fourier Transforms.`,name:"n_fft"},{anchor:"diffusers.Mel.hop_length",description:`<strong>hop_length</strong> (<code>int</code>) &#x2014;
Hop length (a higher number is recommended if <code>y_res</code> &lt; 256).`,name:"hop_length"},{anchor:"diffusers.Mel.top_db",description:`<strong>top_db</strong> (<code>int</code>) &#x2014;
Loudest decibel value.`,name:"top_db"},{anchor:"diffusers.Mel.n_iter",description:`<strong>n_iter</strong> (<code>int</code>) &#x2014;
Number of iterations for Griffin-Lim Mel inversion.`,name:"n_iter"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/mel.py#L37"}}),De=new I({props:{name:"audio_slice_to_image",anchor:"diffusers.Mel.audio_slice_to_image",parameters:[{name:"slice",val:": int"}],parametersDescription:[{anchor:"diffusers.Mel.audio_slice_to_image.slice",description:`<strong>slice</strong> (<code>int</code>) &#x2014;
Slice number of audio to convert (out of <code>get_number_of_slices()</code>).`,name:"slice"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/mel.py#L143",returnDescription:`
<p>A grayscale image of <code>x_res x y_res</code>.</p>
`,returnType:`
<p><code>PIL Image</code></p>
`}}),Pe=new I({props:{name:"get_audio_slice",anchor:"diffusers.Mel.get_audio_slice",parameters:[{name:"slice",val:": int = 0"}],parametersDescription:[{anchor:"diffusers.Mel.get_audio_slice.slice",description:`<strong>slice</strong> (<code>int</code>) &#x2014;
Slice number of audio (out of <code>get_number_of_slices()</code>).`,name:"slice"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/mel.py#L121",returnDescription:`
<p>The audio slice as a NumPy array.</p>
`,returnType:`
<p><code>np.ndarray</code></p>
`}}),Ae=new I({props:{name:"get_number_of_slices",anchor:"diffusers.Mel.get_number_of_slices",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/mel.py#L112",returnDescription:`
<p>Number of spectograms audio can be sliced into.</p>
`,returnType:`
<p><code>int</code></p>
`}}),xe=new I({props:{name:"get_sample_rate",anchor:"diffusers.Mel.get_sample_rate",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/mel.py#L134",returnDescription:`
<p>Sample rate of audio.</p>
`,returnType:`
<p><code>int</code></p>
`}}),Ee=new I({props:{name:"image_to_audio",anchor:"diffusers.Mel.image_to_audio",parameters:[{name:"image",val:": Image"}],parametersDescription:[{anchor:"diffusers.Mel.image_to_audio.image",description:`<strong>image</strong> (<code>PIL Image</code>) &#x2014;
An grayscale image of <code>x_res x y_res</code>.`,name:"image"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/mel.py#L162",returnDescription:`
<p>The audio as a NumPy array.</p>
`,returnType:`
<p>audio (<code>np.ndarray</code>)</p>
`}}),ke=new I({props:{name:"load_audio",anchor:"diffusers.Mel.load_audio",parameters:[{name:"audio_file",val:": str = None"},{name:"raw_audio",val:": ndarray = None"}],parametersDescription:[{anchor:"diffusers.Mel.load_audio.audio_file",description:`<strong>audio_file</strong> (<code>str</code>) &#x2014;
An audio file that must be on disk due to <a href="https://librosa.org/" rel="nofollow">Librosa</a> limitation.`,name:"audio_file"},{anchor:"diffusers.Mel.load_audio.raw_audio",description:`<strong>raw_audio</strong> (<code>np.ndarray</code>) &#x2014;
The raw audio file as a NumPy array.`,name:"raw_audio"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/mel.py#L94"}}),Ie=new I({props:{name:"set_resolution",anchor:"diffusers.Mel.set_resolution",parameters:[{name:"x_res",val:": int"},{name:"y_res",val:": int"}],parametersDescription:[{anchor:"diffusers.Mel.set_resolution.x_res",description:`<strong>x_res</strong> (<code>int</code>) &#x2014;
x resolution of spectrogram (time).`,name:"x_res"},{anchor:"diffusers.Mel.set_resolution.y_res",description:`<strong>y_res</strong> (<code>int</code>) &#x2014;
y resolution of spectrogram (frequency bins).`,name:"y_res"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/audio_diffusion/mel.py#L80"}}),{c(){f=o("meta"),A=a(),h=o("h1"),p=o("a"),D=o("span"),b(r.$$.fragment),_=a(),U=o("span"),L=c("Audio Diffusion"),J=a(),N=o("p"),G=o("a"),Ns=c("Audio Diffusion"),Gs=c(" is by Robert Dargavel Smith, and it leverages the recent advances in image generation from diffusion models by converting audio samples to and from Mel spectrogram images."),ns=a(),C=o("p"),Us=c("The original codebase, training scripts and example notebooks can be found at "),fe=o("a"),Ls=c("teticio/audio-diffusion"),Ws=c("."),as=a(),b(F.$$.fragment),ls=a(),W=o("h2"),z=o("a"),Se=o("span"),b(pe.$$.fragment),Vs=a(),je=o("span"),Zs=c("AudioDiffusionPipeline"),ds=a(),x=o("div"),b(ue.$$.fragment),Xs=a(),Ne=o("p"),Rs=c("Pipeline for audio diffusion."),Bs=a(),ce=o("p"),Cs=c("This model inherits from "),Je=o("a"),Fs=c("DiffusionPipeline"),zs=c(`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),Qs=a(),E=o("div"),b(me.$$.fragment),Os=a(),Ge=o("p"),Ys=c("The call function to the pipeline for generation."),qs=a(),Ue=o("p"),Hs=c("Examples:"),Ks=a(),b(Q.$$.fragment),et=a(),b(O.$$.fragment),st=a(),b(Y.$$.fragment),tt=a(),q=o("div"),b(he.$$.fragment),ot=a(),Le=o("p"),it=c("Reverse the denoising step process to recover a noisy image from the generated image."),rt=a(),H=o("div"),b(ge.$$.fragment),nt=a(),We=o("p"),at=c("Returns default number of steps recommended for inference."),lt=a(),K=o("div"),b(_e.$$.fragment),dt=a(),Ve=o("p"),ft=c("Spherical Linear intERPolation."),fs=a(),V=o("h2"),ee=o("a"),Ze=o("span"),b(be.$$.fragment),pt=a(),Xe=o("span"),ut=c("AudioPipelineOutput"),ps=a(),Z=o("div"),b($e.$$.fragment),ct=a(),Re=o("p"),mt=c("Output class for audio pipelines."),us=a(),X=o("h2"),se=o("a"),Be=o("span"),b(ve.$$.fragment),ht=a(),Ce=o("span"),gt=c("ImagePipelineOutput"),cs=a(),R=o("div"),b(ye.$$.fragment),_t=a(),Fe=o("p"),bt=c("Output class for image pipelines."),ms=a(),B=o("h2"),te=o("a"),ze=o("span"),b(we.$$.fragment),$t=a(),Qe=o("span"),vt=c("Mel"),hs=a(),P=o("div"),b(Me.$$.fragment),yt=a(),oe=o("div"),b(De.$$.fragment),wt=a(),Oe=o("p"),Mt=c("Convert slice of audio to spectrogram."),Dt=a(),ie=o("div"),b(Pe.$$.fragment),Pt=a(),Ye=o("p"),At=c("Get slice of audio."),xt=a(),re=o("div"),b(Ae.$$.fragment),Et=a(),qe=o("p"),kt=c("Get number of slices in audio."),It=a(),ne=o("div"),b(xe.$$.fragment),Tt=a(),He=o("p"),Jt=c("Get sample rate."),St=a(),ae=o("div"),b(Ee.$$.fragment),jt=a(),Ke=o("p"),Nt=c("Converts spectrogram to audio."),Gt=a(),le=o("div"),b(ke.$$.fragment),Ut=a(),es=o("p"),Lt=c("Load audio."),Wt=a(),de=o("div"),b(Ie.$$.fragment),Vt=a(),ss=o("p"),Zt=c("Set resolution."),this.h()},l(e){const u=Ao('[data-svelte="svelte-1phssyn"]',document.head);f=i(u,"META",{name:!0,content:!0}),u.forEach(t),A=l(e),h=i(e,"H1",{class:!0});var Te=n(h);p=i(Te,"A",{id:!0,class:!0,href:!0});var ts=n(p);D=i(ts,"SPAN",{});var os=n(D);$(r.$$.fragment,os),os.forEach(t),ts.forEach(t),_=l(Te),U=i(Te,"SPAN",{});var is=n(U);L=m(is,"Audio Diffusion"),is.forEach(t),Te.forEach(t),J=l(e),N=i(e,"P",{});var Xt=n(N);G=i(Xt,"A",{href:!0,rel:!0});var Ft=n(G);Ns=m(Ft,"Audio Diffusion"),Ft.forEach(t),Gs=m(Xt," is by Robert Dargavel Smith, and it leverages the recent advances in image generation from diffusion models by converting audio samples to and from Mel spectrogram images."),Xt.forEach(t),ns=l(e),C=i(e,"P",{});var _s=n(C);Us=m(_s,"The original codebase, training scripts and example notebooks can be found at "),fe=i(_s,"A",{href:!0,rel:!0});var zt=n(fe);Ls=m(zt,"teticio/audio-diffusion"),zt.forEach(t),Ws=m(_s,"."),_s.forEach(t),as=l(e),$(F.$$.fragment,e),ls=l(e),W=i(e,"H2",{class:!0});var bs=n(W);z=i(bs,"A",{id:!0,class:!0,href:!0});var Qt=n(z);Se=i(Qt,"SPAN",{});var Ot=n(Se);$(pe.$$.fragment,Ot),Ot.forEach(t),Qt.forEach(t),Vs=l(bs),je=i(bs,"SPAN",{});var Yt=n(je);Zs=m(Yt,"AudioDiffusionPipeline"),Yt.forEach(t),bs.forEach(t),ds=l(e),x=i(e,"DIV",{class:!0});var T=n(x);$(ue.$$.fragment,T),Xs=l(T),Ne=i(T,"P",{});var qt=n(Ne);Rs=m(qt,"Pipeline for audio diffusion."),qt.forEach(t),Bs=l(T),ce=i(T,"P",{});var $s=n(ce);Cs=m($s,"This model inherits from "),Je=i($s,"A",{href:!0});var Ht=n(Je);Fs=m(Ht,"DiffusionPipeline"),Ht.forEach(t),zs=m($s,`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),$s.forEach(t),Qs=l(T),E=i(T,"DIV",{class:!0});var S=n(E);$(me.$$.fragment,S),Os=l(S),Ge=i(S,"P",{});var Kt=n(Ge);Ys=m(Kt,"The call function to the pipeline for generation."),Kt.forEach(t),qs=l(S),Ue=i(S,"P",{});var eo=n(Ue);Hs=m(eo,"Examples:"),eo.forEach(t),Ks=l(S),$(Q.$$.fragment,S),et=l(S),$(O.$$.fragment,S),st=l(S),$(Y.$$.fragment,S),S.forEach(t),tt=l(T),q=i(T,"DIV",{class:!0});var vs=n(q);$(he.$$.fragment,vs),ot=l(vs),Le=i(vs,"P",{});var so=n(Le);it=m(so,"Reverse the denoising step process to recover a noisy image from the generated image."),so.forEach(t),vs.forEach(t),rt=l(T),H=i(T,"DIV",{class:!0});var ys=n(H);$(ge.$$.fragment,ys),nt=l(ys),We=i(ys,"P",{});var to=n(We);at=m(to,"Returns default number of steps recommended for inference."),to.forEach(t),ys.forEach(t),lt=l(T),K=i(T,"DIV",{class:!0});var ws=n(K);$(_e.$$.fragment,ws),dt=l(ws),Ve=i(ws,"P",{});var oo=n(Ve);ft=m(oo,"Spherical Linear intERPolation."),oo.forEach(t),ws.forEach(t),T.forEach(t),fs=l(e),V=i(e,"H2",{class:!0});var Ms=n(V);ee=i(Ms,"A",{id:!0,class:!0,href:!0});var io=n(ee);Ze=i(io,"SPAN",{});var ro=n(Ze);$(be.$$.fragment,ro),ro.forEach(t),io.forEach(t),pt=l(Ms),Xe=i(Ms,"SPAN",{});var no=n(Xe);ut=m(no,"AudioPipelineOutput"),no.forEach(t),Ms.forEach(t),ps=l(e),Z=i(e,"DIV",{class:!0});var Ds=n(Z);$($e.$$.fragment,Ds),ct=l(Ds),Re=i(Ds,"P",{});var ao=n(Re);mt=m(ao,"Output class for audio pipelines."),ao.forEach(t),Ds.forEach(t),us=l(e),X=i(e,"H2",{class:!0});var Ps=n(X);se=i(Ps,"A",{id:!0,class:!0,href:!0});var lo=n(se);Be=i(lo,"SPAN",{});var fo=n(Be);$(ve.$$.fragment,fo),fo.forEach(t),lo.forEach(t),ht=l(Ps),Ce=i(Ps,"SPAN",{});var po=n(Ce);gt=m(po,"ImagePipelineOutput"),po.forEach(t),Ps.forEach(t),cs=l(e),R=i(e,"DIV",{class:!0});var As=n(R);$(ye.$$.fragment,As),_t=l(As),Fe=i(As,"P",{});var uo=n(Fe);bt=m(uo,"Output class for image pipelines."),uo.forEach(t),As.forEach(t),ms=l(e),B=i(e,"H2",{class:!0});var xs=n(B);te=i(xs,"A",{id:!0,class:!0,href:!0});var co=n(te);ze=i(co,"SPAN",{});var mo=n(ze);$(we.$$.fragment,mo),mo.forEach(t),co.forEach(t),$t=l(xs),Qe=i(xs,"SPAN",{});var ho=n(Qe);vt=m(ho,"Mel"),ho.forEach(t),xs.forEach(t),hs=l(e),P=i(e,"DIV",{class:!0});var k=n(P);$(Me.$$.fragment,k),yt=l(k),oe=i(k,"DIV",{class:!0});var Es=n(oe);$(De.$$.fragment,Es),wt=l(Es),Oe=i(Es,"P",{});var go=n(Oe);Mt=m(go,"Convert slice of audio to spectrogram."),go.forEach(t),Es.forEach(t),Dt=l(k),ie=i(k,"DIV",{class:!0});var ks=n(ie);$(Pe.$$.fragment,ks),Pt=l(ks),Ye=i(ks,"P",{});var _o=n(Ye);At=m(_o,"Get slice of audio."),_o.forEach(t),ks.forEach(t),xt=l(k),re=i(k,"DIV",{class:!0});var Is=n(re);$(Ae.$$.fragment,Is),Et=l(Is),qe=i(Is,"P",{});var bo=n(qe);kt=m(bo,"Get number of slices in audio."),bo.forEach(t),Is.forEach(t),It=l(k),ne=i(k,"DIV",{class:!0});var Ts=n(ne);$(xe.$$.fragment,Ts),Tt=l(Ts),He=i(Ts,"P",{});var $o=n(He);Jt=m($o,"Get sample rate."),$o.forEach(t),Ts.forEach(t),St=l(k),ae=i(k,"DIV",{class:!0});var Js=n(ae);$(Ee.$$.fragment,Js),jt=l(Js),Ke=i(Js,"P",{});var vo=n(Ke);Nt=m(vo,"Converts spectrogram to audio."),vo.forEach(t),Js.forEach(t),Gt=l(k),le=i(k,"DIV",{class:!0});var Ss=n(le);$(ke.$$.fragment,Ss),Ut=l(Ss),es=i(Ss,"P",{});var yo=n(es);Lt=m(yo,"Load audio."),yo.forEach(t),Ss.forEach(t),Wt=l(k),de=i(k,"DIV",{class:!0});var js=n(de);$(Ie.$$.fragment,js),Vt=l(js),ss=i(js,"P",{});var wo=n(ss);Zt=m(wo,"Set resolution."),wo.forEach(t),js.forEach(t),k.forEach(t),this.h()},h(){d(f,"name","hf:doc:metadata"),d(f,"content",JSON.stringify(jo)),d(p,"id","audio-diffusion"),d(p,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(p,"href","#audio-diffusion"),d(h,"class","relative group"),d(G,"href","https://github.com/teticio/audio-diffusion"),d(G,"rel","nofollow"),d(fe,"href","https://github.com/teticio/audio-diffusion"),d(fe,"rel","nofollow"),d(z,"id","diffusers.AudioDiffusionPipeline"),d(z,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(z,"href","#diffusers.AudioDiffusionPipeline"),d(W,"class","relative group"),d(Je,"href","/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline"),d(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ee,"id","diffusers.AudioPipelineOutput"),d(ee,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(ee,"href","#diffusers.AudioPipelineOutput"),d(V,"class","relative group"),d(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(se,"id","diffusers.ImagePipelineOutput"),d(se,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(se,"href","#diffusers.ImagePipelineOutput"),d(X,"class","relative group"),d(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(te,"id","diffusers.Mel"),d(te,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),d(te,"href","#diffusers.Mel"),d(B,"class","relative group"),d(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),d(P,"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,u){s(document.head,f),g(e,A,u),g(e,h,u),s(h,p),s(p,D),v(r,D,null),s(h,_),s(h,U),s(U,L),g(e,J,u),g(e,N,u),s(N,G),s(G,Ns),s(N,Gs),g(e,ns,u),g(e,C,u),s(C,Us),s(C,fe),s(fe,Ls),s(C,Ws),g(e,as,u),v(F,e,u),g(e,ls,u),g(e,W,u),s(W,z),s(z,Se),v(pe,Se,null),s(W,Vs),s(W,je),s(je,Zs),g(e,ds,u),g(e,x,u),v(ue,x,null),s(x,Xs),s(x,Ne),s(Ne,Rs),s(x,Bs),s(x,ce),s(ce,Cs),s(ce,Je),s(Je,Fs),s(ce,zs),s(x,Qs),s(x,E),v(me,E,null),s(E,Os),s(E,Ge),s(Ge,Ys),s(E,qs),s(E,Ue),s(Ue,Hs),s(E,Ks),v(Q,E,null),s(E,et),v(O,E,null),s(E,st),v(Y,E,null),s(x,tt),s(x,q),v(he,q,null),s(q,ot),s(q,Le),s(Le,it),s(x,rt),s(x,H),v(ge,H,null),s(H,nt),s(H,We),s(We,at),s(x,lt),s(x,K),v(_e,K,null),s(K,dt),s(K,Ve),s(Ve,ft),g(e,fs,u),g(e,V,u),s(V,ee),s(ee,Ze),v(be,Ze,null),s(V,pt),s(V,Xe),s(Xe,ut),g(e,ps,u),g(e,Z,u),v($e,Z,null),s(Z,ct),s(Z,Re),s(Re,mt),g(e,us,u),g(e,X,u),s(X,se),s(se,Be),v(ve,Be,null),s(X,ht),s(X,Ce),s(Ce,gt),g(e,cs,u),g(e,R,u),v(ye,R,null),s(R,_t),s(R,Fe),s(Fe,bt),g(e,ms,u),g(e,B,u),s(B,te),s(te,ze),v(we,ze,null),s(B,$t),s(B,Qe),s(Qe,vt),g(e,hs,u),g(e,P,u),v(Me,P,null),s(P,yt),s(P,oe),v(De,oe,null),s(oe,wt),s(oe,Oe),s(Oe,Mt),s(P,Dt),s(P,ie),v(Pe,ie,null),s(ie,Pt),s(ie,Ye),s(Ye,At),s(P,xt),s(P,re),v(Ae,re,null),s(re,Et),s(re,qe),s(qe,kt),s(P,It),s(P,ne),v(xe,ne,null),s(ne,Tt),s(ne,He),s(He,Jt),s(P,St),s(P,ae),v(Ee,ae,null),s(ae,jt),s(ae,Ke),s(Ke,Nt),s(P,Gt),s(P,le),v(ke,le,null),s(le,Ut),s(le,es),s(es,Lt),s(P,Wt),s(P,de),v(Ie,de,null),s(de,Vt),s(de,ss),s(ss,Zt),gs=!0},p(e,[u]){const Te={};u&2&&(Te.$$scope={dirty:u,ctx:e}),F.$set(Te);const ts={};u&2&&(ts.$$scope={dirty:u,ctx:e}),Q.$set(ts);const os={};u&2&&(os.$$scope={dirty:u,ctx:e}),O.$set(os);const is={};u&2&&(is.$$scope={dirty:u,ctx:e}),Y.$set(is)},i(e){gs||(y(r.$$.fragment,e),y(F.$$.fragment,e),y(pe.$$.fragment,e),y(ue.$$.fragment,e),y(me.$$.fragment,e),y(Q.$$.fragment,e),y(O.$$.fragment,e),y(Y.$$.fragment,e),y(he.$$.fragment,e),y(ge.$$.fragment,e),y(_e.$$.fragment,e),y(be.$$.fragment,e),y($e.$$.fragment,e),y(ve.$$.fragment,e),y(ye.$$.fragment,e),y(we.$$.fragment,e),y(Me.$$.fragment,e),y(De.$$.fragment,e),y(Pe.$$.fragment,e),y(Ae.$$.fragment,e),y(xe.$$.fragment,e),y(Ee.$$.fragment,e),y(ke.$$.fragment,e),y(Ie.$$.fragment,e),gs=!0)},o(e){w(r.$$.fragment,e),w(F.$$.fragment,e),w(pe.$$.fragment,e),w(ue.$$.fragment,e),w(me.$$.fragment,e),w(Q.$$.fragment,e),w(O.$$.fragment,e),w(Y.$$.fragment,e),w(he.$$.fragment,e),w(ge.$$.fragment,e),w(_e.$$.fragment,e),w(be.$$.fragment,e),w($e.$$.fragment,e),w(ve.$$.fragment,e),w(ye.$$.fragment,e),w(we.$$.fragment,e),w(Me.$$.fragment,e),w(De.$$.fragment,e),w(Pe.$$.fragment,e),w(Ae.$$.fragment,e),w(xe.$$.fragment,e),w(Ee.$$.fragment,e),w(ke.$$.fragment,e),w(Ie.$$.fragment,e),gs=!1},d(e){t(f),e&&t(A),e&&t(h),M(r),e&&t(J),e&&t(N),e&&t(ns),e&&t(C),e&&t(as),M(F,e),e&&t(ls),e&&t(W),M(pe),e&&t(ds),e&&t(x),M(ue),M(me),M(Q),M(O),M(Y),M(he),M(ge),M(_e),e&&t(fs),e&&t(V),M(be),e&&t(ps),e&&t(Z),M($e),e&&t(us),e&&t(X),M(ve),e&&t(cs),e&&t(R),M(ye),e&&t(ms),e&&t(B),M(we),e&&t(hs),e&&t(P),M(Me),M(De),M(Pe),M(Ae),M(xe),M(Ee),M(ke),M(Ie)}}}const jo={local:"audio-diffusion",sections:[{local:"diffusers.AudioDiffusionPipeline",title:"AudioDiffusionPipeline"},{local:"diffusers.AudioPipelineOutput",title:"AudioPipelineOutput"},{local:"diffusers.ImagePipelineOutput",title:"ImagePipelineOutput"},{local:"diffusers.Mel",title:"Mel"}],title:"Audio Diffusion"};function No(j){return xo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Xo extends Mo{constructor(f){super();Do(this,f,No,So,Po,{})}}export{Xo as default,jo as metadata};
