import{S as Mo,i as Do,s as Po,e as o,k as a,w as v,t as c,M as Ao,c as r,d as t,m as l,a as n,x as b,h as m,b as d,G as s,g,y as $,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 is}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,i,_,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 "),i=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=r(L,"P",{});var J=n(f);A=m(J,"Make sure to check out the Schedulers "),h=r(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 "),i=r(J,"A",{href:!0});var G=n(i);_=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(i,"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,i),s(i,_),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(),v(p.$$.fragment)},l(i){f=r(i,"P",{});var _=n(f);A=m(_,"For audio diffusion:"),_.forEach(t),h=l(i),b(p.$$.fragment,i)},m(i,_){g(i,f,_),s(f,A),g(i,h,_),$(p,i,_),D=!0},p:Bt,i(i){D||(y(p.$$.fragment,i),D=!0)},o(i){w(p.$$.fragment,i),D=!1},d(i){i&&t(f),i&&t(h),M(p,i)}}}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(),v(p.$$.fragment)},l(i){f=r(i,"P",{});var _=n(f);A=m(_,"For latent audio diffusion:"),_.forEach(t),h=l(i),b(p.$$.fragment,i)},m(i,_){g(i,f,_),s(f,A),g(i,h,_),$(p,i,_),D=!0},p:Bt,i(i){D||(y(p.$$.fragment,i),D=!0)},o(i){w(p.$$.fragment,i),D=!1},d(i){i&&t(f),i&&t(h),M(p,i)}}}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(),v(p.$$.fragment)},l(i){f=r(i,"P",{});var _=n(f);A=m(_,"For other tasks like variation, inpainting, outpainting, etc:"),_.forEach(t),h=l(i),b(p.$$.fragment,i)},m(i,_){g(i,f,_),s(f,A),g(i,h,_),$(p,i,_),D=!0},p:Bt,i(i){D||(y(p.$$.fragment,i),D=!0)},o(i){w(p.$$.fragment,i),D=!1},d(i){i&&t(f),i&&t(h),M(p,i)}}}function So(j){let f,A,h,p,D,i,_,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,rt,it,H,ge,nt,We,at,lt,K,_e,dt,Ve,ft,fs,V,ee,Ze,ve,pt,Xe,ut,ps,Z,be,ct,Re,mt,us,X,se,Be,$e,ht,Ce,gt,cs,R,ye,_t,Fe,vt,ms,B,te,ze,we,bt,Qe,$t,hs,P,Me,yt,oe,De,wt,Oe,Mt,Dt,re,Pe,Pt,Ye,At,xt,ie,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 i=new is({}),F=new Eo({props:{$$slots:{default:[ko]},$$scope:{ctx:j}}}),pe=new is({}),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/v0.20.0/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/v0.20.0/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/v0.20.0/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/v0.20.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a> or <a href="/docs/diffusers/v0.20.0/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/v0.20.0/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a> or <a href="/docs/diffusers/v0.20.0/en/api/schedulers/ddpm#diffusers.DDPMScheduler">DDPMScheduler</a>.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/v0.20.0/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/v0.20.0/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/v0.20.0/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/v0.20.0/en/api/pipelines/audio_diffusion#diffusers.AudioPipelineOutput">AudioPipelineOutput</a>, <a href="/docs/diffusers/v0.20.0/en/api/pipelines/ddim#diffusers.ImagePipelineOutput">ImagePipelineOutput</a> or a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/diffusers/blob/v0.20.0/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/v0.20.0/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/v0.20.0/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/v0.20.0/src/diffusers/pipelines/audio_diffusion/pipeline_audio_diffusion.py#L311",returnDescription:`
<p>The interpolated tensor.</p>
`,returnType:`
<p><code>torch.Tensor</code></p>
`}}),ve=new is({}),be=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/v0.20.0/src/diffusers/pipelines/pipeline_utils.py#L126"}}),$e=new is({}),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/v0.20.0/src/diffusers/pipelines/pipeline_utils.py#L112"}}),we=new is({}),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/v0.20.0/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/v0.20.0/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/v0.20.0/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/v0.20.0/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/v0.20.0/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/v0.20.0/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/v0.20.0/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/v0.20.0/src/diffusers/pipelines/audio_diffusion/mel.py#L80"}}),{c(){f=o("meta"),A=a(),h=o("h1"),p=o("a"),D=o("span"),v(i.$$.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(),v(F.$$.fragment),ls=a(),W=o("h2"),z=o("a"),Se=o("span"),v(pe.$$.fragment),Vs=a(),je=o("span"),Zs=c("AudioDiffusionPipeline"),ds=a(),x=o("div"),v(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"),v(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(),v(Q.$$.fragment),et=a(),v(O.$$.fragment),st=a(),v(Y.$$.fragment),tt=a(),q=o("div"),v(he.$$.fragment),ot=a(),Le=o("p"),rt=c("Reverse the denoising step process to recover a noisy image from the generated image."),it=a(),H=o("div"),v(ge.$$.fragment),nt=a(),We=o("p"),at=c("Returns default number of steps recommended for inference."),lt=a(),K=o("div"),v(_e.$$.fragment),dt=a(),Ve=o("p"),ft=c("Spherical Linear intERPolation."),fs=a(),V=o("h2"),ee=o("a"),Ze=o("span"),v(ve.$$.fragment),pt=a(),Xe=o("span"),ut=c("AudioPipelineOutput"),ps=a(),Z=o("div"),v(be.$$.fragment),ct=a(),Re=o("p"),mt=c("Output class for audio pipelines."),us=a(),X=o("h2"),se=o("a"),Be=o("span"),v($e.$$.fragment),ht=a(),Ce=o("span"),gt=c("ImagePipelineOutput"),cs=a(),R=o("div"),v(ye.$$.fragment),_t=a(),Fe=o("p"),vt=c("Output class for image pipelines."),ms=a(),B=o("h2"),te=o("a"),ze=o("span"),v(we.$$.fragment),bt=a(),Qe=o("span"),$t=c("Mel"),hs=a(),P=o("div"),v(Me.$$.fragment),yt=a(),oe=o("div"),v(De.$$.fragment),wt=a(),Oe=o("p"),Mt=c("Convert slice of audio to spectrogram."),Dt=a(),re=o("div"),v(Pe.$$.fragment),Pt=a(),Ye=o("p"),At=c("Get slice of audio."),xt=a(),ie=o("div"),v(Ae.$$.fragment),Et=a(),qe=o("p"),kt=c("Get number of slices in audio."),It=a(),ne=o("div"),v(xe.$$.fragment),Tt=a(),He=o("p"),Jt=c("Get sample rate."),St=a(),ae=o("div"),v(Ee.$$.fragment),jt=a(),Ke=o("p"),Nt=c("Converts spectrogram to audio."),Gt=a(),le=o("div"),v(ke.$$.fragment),Ut=a(),es=o("p"),Lt=c("Load audio."),Wt=a(),de=o("div"),v(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=r(u,"META",{name:!0,content:!0}),u.forEach(t),A=l(e),h=r(e,"H1",{class:!0});var Te=n(h);p=r(Te,"A",{id:!0,class:!0,href:!0});var ts=n(p);D=r(ts,"SPAN",{});var os=n(D);b(i.$$.fragment,os),os.forEach(t),ts.forEach(t),_=l(Te),U=r(Te,"SPAN",{});var rs=n(U);L=m(rs,"Audio Diffusion"),rs.forEach(t),Te.forEach(t),J=l(e),N=r(e,"P",{});var Xt=n(N);G=r(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=r(e,"P",{});var _s=n(C);Us=m(_s,"The original codebase, training scripts and example notebooks can be found at "),fe=r(_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),b(F.$$.fragment,e),ls=l(e),W=r(e,"H2",{class:!0});var vs=n(W);z=r(vs,"A",{id:!0,class:!0,href:!0});var Qt=n(z);Se=r(Qt,"SPAN",{});var Ot=n(Se);b(pe.$$.fragment,Ot),Ot.forEach(t),Qt.forEach(t),Vs=l(vs),je=r(vs,"SPAN",{});var Yt=n(je);Zs=m(Yt,"AudioDiffusionPipeline"),Yt.forEach(t),vs.forEach(t),ds=l(e),x=r(e,"DIV",{class:!0});var T=n(x);b(ue.$$.fragment,T),Xs=l(T),Ne=r(T,"P",{});var qt=n(Ne);Rs=m(qt,"Pipeline for audio diffusion."),qt.forEach(t),Bs=l(T),ce=r(T,"P",{});var bs=n(ce);Cs=m(bs,"This model inherits from "),Je=r(bs,"A",{href:!0});var Ht=n(Je);Fs=m(Ht,"DiffusionPipeline"),Ht.forEach(t),zs=m(bs,`. Check the superclass documentation for the generic methods
implemented for all pipelines (downloading, saving, running on a particular device, etc.).`),bs.forEach(t),Qs=l(T),E=r(T,"DIV",{class:!0});var S=n(E);b(me.$$.fragment,S),Os=l(S),Ge=r(S,"P",{});var Kt=n(Ge);Ys=m(Kt,"The call function to the pipeline for generation."),Kt.forEach(t),qs=l(S),Ue=r(S,"P",{});var eo=n(Ue);Hs=m(eo,"Examples:"),eo.forEach(t),Ks=l(S),b(Q.$$.fragment,S),et=l(S),b(O.$$.fragment,S),st=l(S),b(Y.$$.fragment,S),S.forEach(t),tt=l(T),q=r(T,"DIV",{class:!0});var $s=n(q);b(he.$$.fragment,$s),ot=l($s),Le=r($s,"P",{});var so=n(Le);rt=m(so,"Reverse the denoising step process to recover a noisy image from the generated image."),so.forEach(t),$s.forEach(t),it=l(T),H=r(T,"DIV",{class:!0});var ys=n(H);b(ge.$$.fragment,ys),nt=l(ys),We=r(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=r(T,"DIV",{class:!0});var ws=n(K);b(_e.$$.fragment,ws),dt=l(ws),Ve=r(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=r(e,"H2",{class:!0});var Ms=n(V);ee=r(Ms,"A",{id:!0,class:!0,href:!0});var ro=n(ee);Ze=r(ro,"SPAN",{});var io=n(Ze);b(ve.$$.fragment,io),io.forEach(t),ro.forEach(t),pt=l(Ms),Xe=r(Ms,"SPAN",{});var no=n(Xe);ut=m(no,"AudioPipelineOutput"),no.forEach(t),Ms.forEach(t),ps=l(e),Z=r(e,"DIV",{class:!0});var Ds=n(Z);b(be.$$.fragment,Ds),ct=l(Ds),Re=r(Ds,"P",{});var ao=n(Re);mt=m(ao,"Output class for audio pipelines."),ao.forEach(t),Ds.forEach(t),us=l(e),X=r(e,"H2",{class:!0});var Ps=n(X);se=r(Ps,"A",{id:!0,class:!0,href:!0});var lo=n(se);Be=r(lo,"SPAN",{});var fo=n(Be);b($e.$$.fragment,fo),fo.forEach(t),lo.forEach(t),ht=l(Ps),Ce=r(Ps,"SPAN",{});var po=n(Ce);gt=m(po,"ImagePipelineOutput"),po.forEach(t),Ps.forEach(t),cs=l(e),R=r(e,"DIV",{class:!0});var As=n(R);b(ye.$$.fragment,As),_t=l(As),Fe=r(As,"P",{});var uo=n(Fe);vt=m(uo,"Output class for image pipelines."),uo.forEach(t),As.forEach(t),ms=l(e),B=r(e,"H2",{class:!0});var xs=n(B);te=r(xs,"A",{id:!0,class:!0,href:!0});var co=n(te);ze=r(co,"SPAN",{});var mo=n(ze);b(we.$$.fragment,mo),mo.forEach(t),co.forEach(t),bt=l(xs),Qe=r(xs,"SPAN",{});var ho=n(Qe);$t=m(ho,"Mel"),ho.forEach(t),xs.forEach(t),hs=l(e),P=r(e,"DIV",{class:!0});var k=n(P);b(Me.$$.fragment,k),yt=l(k),oe=r(k,"DIV",{class:!0});var Es=n(oe);b(De.$$.fragment,Es),wt=l(Es),Oe=r(Es,"P",{});var go=n(Oe);Mt=m(go,"Convert slice of audio to spectrogram."),go.forEach(t),Es.forEach(t),Dt=l(k),re=r(k,"DIV",{class:!0});var ks=n(re);b(Pe.$$.fragment,ks),Pt=l(ks),Ye=r(ks,"P",{});var _o=n(Ye);At=m(_o,"Get slice of audio."),_o.forEach(t),ks.forEach(t),xt=l(k),ie=r(k,"DIV",{class:!0});var Is=n(ie);b(Ae.$$.fragment,Is),Et=l(Is),qe=r(Is,"P",{});var vo=n(qe);kt=m(vo,"Get number of slices in audio."),vo.forEach(t),Is.forEach(t),It=l(k),ne=r(k,"DIV",{class:!0});var Ts=n(ne);b(xe.$$.fragment,Ts),Tt=l(Ts),He=r(Ts,"P",{});var bo=n(He);Jt=m(bo,"Get sample rate."),bo.forEach(t),Ts.forEach(t),St=l(k),ae=r(k,"DIV",{class:!0});var Js=n(ae);b(Ee.$$.fragment,Js),jt=l(Js),Ke=r(Js,"P",{});var $o=n(Ke);Nt=m($o,"Converts spectrogram to audio."),$o.forEach(t),Js.forEach(t),Gt=l(k),le=r(k,"DIV",{class:!0});var Ss=n(le);b(ke.$$.fragment,Ss),Ut=l(Ss),es=r(Ss,"P",{});var yo=n(es);Lt=m(yo,"Load audio."),yo.forEach(t),Ss.forEach(t),Wt=l(k),de=r(k,"DIV",{class:!0});var js=n(de);b(Ie.$$.fragment,js),Vt=l(js),ss=r(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/v0.20.0/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(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(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(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),$(i,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),$(F,e,u),g(e,ls,u),g(e,W,u),s(W,z),s(z,Se),$(pe,Se,null),s(W,Vs),s(W,je),s(je,Zs),g(e,ds,u),g(e,x,u),$(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),$(me,E,null),s(E,Os),s(E,Ge),s(Ge,Ys),s(E,qs),s(E,Ue),s(Ue,Hs),s(E,Ks),$(Q,E,null),s(E,et),$(O,E,null),s(E,st),$(Y,E,null),s(x,tt),s(x,q),$(he,q,null),s(q,ot),s(q,Le),s(Le,rt),s(x,it),s(x,H),$(ge,H,null),s(H,nt),s(H,We),s(We,at),s(x,lt),s(x,K),$(_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),$(ve,Ze,null),s(V,pt),s(V,Xe),s(Xe,ut),g(e,ps,u),g(e,Z,u),$(be,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),$($e,Be,null),s(X,ht),s(X,Ce),s(Ce,gt),g(e,cs,u),g(e,R,u),$(ye,R,null),s(R,_t),s(R,Fe),s(Fe,vt),g(e,ms,u),g(e,B,u),s(B,te),s(te,ze),$(we,ze,null),s(B,bt),s(B,Qe),s(Qe,$t),g(e,hs,u),g(e,P,u),$(Me,P,null),s(P,yt),s(P,oe),$(De,oe,null),s(oe,wt),s(oe,Oe),s(Oe,Mt),s(P,Dt),s(P,re),$(Pe,re,null),s(re,Pt),s(re,Ye),s(Ye,At),s(P,xt),s(P,ie),$(Ae,ie,null),s(ie,Et),s(ie,qe),s(qe,kt),s(P,It),s(P,ne),$(xe,ne,null),s(ne,Tt),s(ne,He),s(He,Jt),s(P,St),s(P,ae),$(Ee,ae,null),s(ae,jt),s(ae,Ke),s(Ke,Nt),s(P,Gt),s(P,le),$(ke,le,null),s(le,Ut),s(le,es),s(es,Lt),s(P,Wt),s(P,de),$(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 rs={};u&2&&(rs.$$scope={dirty:u,ctx:e}),Y.$set(rs)},i(e){gs||(y(i.$$.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(ve.$$.fragment,e),y(be.$$.fragment,e),y($e.$$.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(i.$$.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(ve.$$.fragment,e),w(be.$$.fragment,e),w($e.$$.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(i),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(ve),e&&t(ps),e&&t(Z),M(be),e&&t(us),e&&t(X),M($e),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};
