import{s as Ze,o as Ve,n as Xe}from"../chunks/scheduler.8c3d61f6.js";import{S as ze,i as qe,g as i,s as a,r as v,A as We,h as l,f as n,c as s,j as N,u as w,x as u,k as Y,y as d,a as o,v as y,d as M,t as x,w as T}from"../chunks/index.da70eac4.js";import{D as ge}from"../chunks/Docstring.ee4b6913.js";import{C as Re}from"../chunks/CodeBlock.00a903b3.js";import{E as Oe}from"../chunks/ExampleCodeBlock.f7bd2c1f.js";import{H as $e,E as Qe}from"../chunks/EditOnGithub.1e64e623.js";function Ne(K){let p,k="Examples:",_,f,h;return f=new Re({props:{code:"aW1wb3J0JTIwc2NpcHklMEFpbXBvcnQlMjB0b3JjaCUwQWltcG9ydCUyMHNvdW5kZmlsZSUyMGFzJTIwc2YlMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwU3RhYmxlQXVkaW9QaXBlbGluZSUwQSUwQXJlcG9faWQlMjAlM0QlMjAlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1hdWRpby1vcGVuLTEuMCUyMiUwQXBpcGUlMjAlM0QlMjBTdGFibGVBdWRpb1BpcGVsaW5lLmZyb21fcHJldHJhaW5lZChyZXBvX2lkJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2KSUwQXBpcGUlMjAlM0QlMjBwaXBlLnRvKCUyMmN1ZGElMjIpJTBBJTBBJTIzJTIwZGVmaW5lJTIwdGhlJTIwcHJvbXB0cyUwQXByb21wdCUyMCUzRCUyMCUyMlRoZSUyMHNvdW5kJTIwb2YlMjBhJTIwaGFtbWVyJTIwaGl0dGluZyUyMGElMjB3b29kZW4lMjBzdXJmYWNlLiUyMiUwQW5lZ2F0aXZlX3Byb21wdCUyMCUzRCUyMCUyMkxvdyUyMHF1YWxpdHkuJTIyJTBBJTBBJTIzJTIwc2V0JTIwdGhlJTIwc2VlZCUyMGZvciUyMGdlbmVyYXRvciUwQWdlbmVyYXRvciUyMCUzRCUyMHRvcmNoLkdlbmVyYXRvciglMjJjdWRhJTIyKS5tYW51YWxfc2VlZCgwKSUwQSUwQSUyMyUyMHJ1biUyMHRoZSUyMGdlbmVyYXRpb24lMEFhdWRpbyUyMCUzRCUyMHBpcGUoJTBBJTIwJTIwJTIwJTIwcHJvbXB0JTJDJTBBJTIwJTIwJTIwJTIwbmVnYXRpdmVfcHJvbXB0JTNEbmVnYXRpdmVfcHJvbXB0JTJDJTBBJTIwJTIwJTIwJTIwbnVtX2luZmVyZW5jZV9zdGVwcyUzRDIwMCUyQyUwQSUyMCUyMCUyMCUyMGF1ZGlvX2VuZF9pbl9zJTNEMTAuMCUyQyUwQSUyMCUyMCUyMCUyMG51bV93YXZlZm9ybXNfcGVyX3Byb21wdCUzRDMlMkMlMEElMjAlMjAlMjAlMjBnZW5lcmF0b3IlM0RnZW5lcmF0b3IlMkMlMEEpLmF1ZGlvcyUwQSUwQW91dHB1dCUyMCUzRCUyMGF1ZGlvJTVCMCU1RC5ULmZsb2F0KCkuY3B1KCkubnVtcHkoKSUwQXNmLndyaXRlKCUyMmhhbW1lci53YXYlMjIlMkMlMjBvdXRwdXQlMkMlMjBwaXBlLnZhZS5zYW1wbGluZ19yYXRlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> scipy
<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> soundfile <span class="hljs-keyword">as</span> sf
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> StableAudioPipeline

<span class="hljs-meta">&gt;&gt;&gt; </span>repo_id = <span class="hljs-string">&quot;stabilityai/stable-audio-open-1.0&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = StableAudioPipeline.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><span class="hljs-comment"># define the prompts</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>prompt = <span class="hljs-string">&quot;The sound of a hammer hitting a wooden surface.&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>negative_prompt = <span class="hljs-string">&quot;Low quality.&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># set the seed for generator</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>generator = torch.Generator(<span class="hljs-string">&quot;cuda&quot;</span>).manual_seed(<span class="hljs-number">0</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># run the generation</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>audio = pipe(
<span class="hljs-meta">... </span>    prompt,
<span class="hljs-meta">... </span>    negative_prompt=negative_prompt,
<span class="hljs-meta">... </span>    num_inference_steps=<span class="hljs-number">200</span>,
<span class="hljs-meta">... </span>    audio_end_in_s=<span class="hljs-number">10.0</span>,
<span class="hljs-meta">... </span>    num_waveforms_per_prompt=<span class="hljs-number">3</span>,
<span class="hljs-meta">... </span>    generator=generator,
<span class="hljs-meta">... </span>).audios

<span class="hljs-meta">&gt;&gt;&gt; </span>output = audio[<span class="hljs-number">0</span>].T.<span class="hljs-built_in">float</span>().cpu().numpy()
<span class="hljs-meta">&gt;&gt;&gt; </span>sf.write(<span class="hljs-string">&quot;hammer.wav&quot;</span>, output, pipe.vae.sampling_rate)`,wrap:!1}}),{c(){p=i("p"),p.textContent=k,_=a(),v(f.$$.fragment)},l(r){p=l(r,"P",{"data-svelte-h":!0}),u(p)!=="svelte-kvfsh7"&&(p.textContent=k),_=s(r),w(f.$$.fragment,r)},m(r,g){o(r,p,g),o(r,_,g),y(f,r,g),h=!0},p:Xe,i(r){h||(M(f.$$.fragment,r),h=!0)},o(r){x(f.$$.fragment,r),h=!1},d(r){r&&(n(p),n(_)),T(f,r)}}}function Ye(K){let p,k,_,f,h,r,g,Ce='Stable Audio was proposed in <a href="https://arxiv.org/abs/2407.14358" rel="nofollow">Stable Audio Open</a> by Zach Evans et al. . it takes a text prompt as input and predicts the corresponding sound or music sample.',ee,A,ke="Stable Audio Open generates variable-length (up to 47s) stereo audio at 44.1kHz from text prompts. It comprises three components: an autoencoder that compresses waveforms into a manageable sequence length, a T5-based text embedding for text conditioning, and a transformer-based diffusion (DiT) model that operates in the latent space of the autoencoder.",te,j,Ae="Stable Audio is trained on a corpus of around 48k audio recordings, where around 47k are from Freesound and the rest are from the Free Music Archive (FMA). All audio files are licensed under CC0, CC BY, or CC Sampling+. This data is used to train the autoencoder and the DiT.",ne,P,je=`The abstract of the paper is the following:
<em>Open generative models are vitally important for the community, allowing for fine-tunes and serving as baselines when presenting new models. However, most current text-to-audio models are private and not accessible for artists and researchers to build upon. Here we describe the architecture and training process of a new open-weights text-to-audio model trained with Creative Commons data. Our evaluation shows that the model’s performance is competitive with the state-of-the-art across various metrics. Notably, the reported FDopenl3 results (measuring the realism of the generations) showcase its potential for high-quality stereo sound synthesis at 44.1kHz.</em>`,oe,U,Pe='This pipeline was contributed by <a href="https://huggingface.co/ylacombe" rel="nofollow">Yoach Lacombe</a>. The original codebase can be found at <a href="https://github.com/Stability-AI/stable-audio-tools" rel="nofollow">Stability-AI/stable-audio-tools</a>.',ae,J,se,I,Ue="When constructing a prompt, keep in mind:",ie,B,Je="<li>Descriptive prompt inputs work best; use adjectives to describe the sound (for example, “high quality” or “clear”) and make the prompt context specific where possible (e.g. “melodic techno with a fast beat and synths” works better than “techno”).</li> <li>Using a <em>negative prompt</em> can significantly improve the quality of the generated audio. Try using a negative prompt of “low quality, average quality”.</li>",le,D,Ie="During inference:",re,G,Be="<li>The <em>quality</em> of the generated 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>Multiple waveforms can be generated in one go: set <code>num_waveforms_per_prompt</code> to a value greater than 1 to enable. Automatic scoring will be performed between the generated waveforms and prompt text, and the audios ranked from best to worst accordingly.</li>",de,E,pe,c,H,_e,z,De="Pipeline for text-to-audio generation using StableAudio.",be,q,Ge=`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.).`,ve,b,L,we,W,Ee="The call function to the pipeline for generation.",ye,S,Me,$,Z,xe,R,He=`Disable sliced VAE decoding. If <code>enable_vae_slicing</code> was previously enabled, this method will go back to
computing decoding in one step.`,Te,C,V,Se,O,Le=`Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to
compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.`,ce,X,me,F,ue;return h=new $e({props:{title:"Stable Audio",local:"stable-audio",headingTag:"h1"}}),J=new $e({props:{title:"Tips",local:"tips",headingTag:"h2"}}),E=new $e({props:{title:"StableAudioPipeline",local:"diffusers.StableAudioPipeline",headingTag:"h2"}}),H=new ge({props:{name:"class diffusers.StableAudioPipeline",anchor:"diffusers.StableAudioPipeline",parameters:[{name:"vae",val:": AutoencoderOobleck"},{name:"text_encoder",val:": T5EncoderModel"},{name:"projection_model",val:": StableAudioProjectionModel"},{name:"tokenizer",val:": Union"},{name:"transformer",val:": StableAudioDiTModel"},{name:"scheduler",val:": EDMDPMSolverMultistepScheduler"}],parametersDescription:[{anchor:"diffusers.StableAudioPipeline.vae",description:`<strong>vae</strong> (<a href="/docs/diffusers/main/en/api/models/autoencoder_oobleck#diffusers.AutoencoderOobleck">AutoencoderOobleck</a>) &#x2014;
Variational Auto-Encoder (VAE) model to encode and decode images to and from latent representations.`,name:"vae"},{anchor:"diffusers.StableAudioPipeline.text_encoder",description:`<strong>text_encoder</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/t5#transformers.T5EncoderModel" rel="nofollow">T5EncoderModel</a>) &#x2014;
Frozen text-encoder. StableAudio uses the encoder of
<a href="https://huggingface.co/docs/transformers/model_doc/t5#transformers.T5EncoderModel" rel="nofollow">T5</a>, specifically the
<a href="https://huggingface.co/google-t5/t5-base" rel="nofollow">google-t5/t5-base</a> variant.`,name:"text_encoder"},{anchor:"diffusers.StableAudioPipeline.projection_model",description:`<strong>projection_model</strong> (<code>StableAudioProjectionModel</code>) &#x2014;
A trained model used to linearly project the hidden-states from the text encoder model and the start and
end seconds. The projected hidden-states from the encoder and the conditional seconds are concatenated to
give the input to the transformer model.`,name:"projection_model"},{anchor:"diffusers.StableAudioPipeline.tokenizer",description:`<strong>tokenizer</strong> (<a href="https://huggingface.co/docs/transformers/main/en/model_doc/t5#transformers.T5Tokenizer" rel="nofollow">T5Tokenizer</a>) &#x2014;
Tokenizer to tokenize text for the frozen text-encoder.`,name:"tokenizer"},{anchor:"diffusers.StableAudioPipeline.transformer",description:`<strong>transformer</strong> (<a href="/docs/diffusers/main/en/api/models/stable_audio_transformer#diffusers.StableAudioDiTModel">StableAudioDiTModel</a>) &#x2014;
A <code>StableAudioDiTModel</code> to denoise the encoded audio latents.`,name:"transformer"},{anchor:"diffusers.StableAudioPipeline.scheduler",description:`<strong>scheduler</strong> (<a href="/docs/diffusers/main/en/api/schedulers/edm_multistep_dpm_solver#diffusers.EDMDPMSolverMultistepScheduler">EDMDPMSolverMultistepScheduler</a>) &#x2014;
A scheduler to be used in combination with <code>transformer</code> to denoise the encoded audio latents.`,name:"scheduler"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py#L74"}}),L=new ge({props:{name:"__call__",anchor:"diffusers.StableAudioPipeline.__call__",parameters:[{name:"prompt",val:": Union = None"},{name:"audio_end_in_s",val:": Optional = None"},{name:"audio_start_in_s",val:": Optional = 0.0"},{name:"num_inference_steps",val:": int = 100"},{name:"guidance_scale",val:": float = 7.0"},{name:"negative_prompt",val:": Union = None"},{name:"num_waveforms_per_prompt",val:": Optional = 1"},{name:"eta",val:": float = 0.0"},{name:"generator",val:": Union = None"},{name:"latents",val:": Optional = None"},{name:"initial_audio_waveforms",val:": Optional = None"},{name:"initial_audio_sampling_rate",val:": Optional = None"},{name:"prompt_embeds",val:": Optional = None"},{name:"negative_prompt_embeds",val:": Optional = None"},{name:"attention_mask",val:": Optional = None"},{name:"negative_attention_mask",val:": Optional = None"},{name:"return_dict",val:": bool = True"},{name:"callback",val:": Optional = None"},{name:"callback_steps",val:": Optional = 1"},{name:"output_type",val:": Optional = 'pt'"}],parametersDescription:[{anchor:"diffusers.StableAudioPipeline.__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.StableAudioPipeline.__call__.audio_end_in_s",description:`<strong>audio_end_in_s</strong> (<code>float</code>, <em>optional</em>, defaults to 47.55) &#x2014;
Audio end index in seconds.`,name:"audio_end_in_s"},{anchor:"diffusers.StableAudioPipeline.__call__.audio_start_in_s",description:`<strong>audio_start_in_s</strong> (<code>float</code>, <em>optional</em>, defaults to 0) &#x2014;
Audio start index in seconds.`,name:"audio_start_in_s"},{anchor:"diffusers.StableAudioPipeline.__call__.num_inference_steps",description:`<strong>num_inference_steps</strong> (<code>int</code>, <em>optional</em>, defaults to 100) &#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.StableAudioPipeline.__call__.guidance_scale",description:`<strong>guidance_scale</strong> (<code>float</code>, <em>optional</em>, defaults to 7.0) &#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.StableAudioPipeline.__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.StableAudioPipeline.__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.StableAudioPipeline.__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://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.StableAudioPipeline.__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.StableAudioPipeline.__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 audio
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.StableAudioPipeline.__call__.initial_audio_waveforms",description:`<strong>initial_audio_waveforms</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Optional initial audio waveforms to use as the initial audio waveform for generation. Must be of shape
<code>(batch_size, num_channels, audio_length)</code> or <code>(batch_size, audio_length)</code>, where <code>batch_size</code>
corresponds to the number of prompts passed to the model.`,name:"initial_audio_waveforms"},{anchor:"diffusers.StableAudioPipeline.__call__.initial_audio_sampling_rate",description:`<strong>initial_audio_sampling_rate</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Sampling rate of the <code>initial_audio_waveforms</code>, if they are provided. Must be the same as the model.`,name:"initial_audio_sampling_rate"},{anchor:"diffusers.StableAudioPipeline.__call__.prompt_embeds",description:`<strong>prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-computed text embeddings from the text encoder model. Can be used to easily tweak text inputs,
<em>e.g.</em> prompt weighting. If not provided, text embeddings will be computed from <code>prompt</code> input
argument.`,name:"prompt_embeds"},{anchor:"diffusers.StableAudioPipeline.__call__.negative_prompt_embeds",description:`<strong>negative_prompt_embeds</strong> (<code>torch.Tensor</code>, <em>optional</em>) &#x2014;
Pre-computed negative text embeddings from the text encoder model. Can be used to easily tweak text
inputs, <em>e.g.</em> prompt weighting. If not provided, negative_prompt_embeds will be computed from
<code>negative_prompt</code> input argument.`,name:"negative_prompt_embeds"},{anchor:"diffusers.StableAudioPipeline.__call__.attention_mask",description:`<strong>attention_mask</strong> (<code>torch.LongTensor</code>, <em>optional</em>) &#x2014;
Pre-computed attention mask to be applied to the <code>prompt_embeds</code>. If not provided, attention mask will
be computed from <code>prompt</code> input argument.`,name:"attention_mask"},{anchor:"diffusers.StableAudioPipeline.__call__.negative_attention_mask",description:`<strong>negative_attention_mask</strong> (<code>torch.LongTensor</code>, <em>optional</em>) &#x2014;
Pre-computed attention mask to be applied to the <code>negative_text_audio_duration_embeds</code>.`,name:"negative_attention_mask"},{anchor:"diffusers.StableAudioPipeline.__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/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput">StableDiffusionPipelineOutput</a> instead of a
plain tuple.`,name:"return_dict"},{anchor:"diffusers.StableAudioPipeline.__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.StableAudioPipeline.__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.StableAudioPipeline.__call__.output_type",description:`<strong>output_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;pt&quot;</code>) &#x2014;
The output format of the generated audio. 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. Set to <code>&quot;latent&quot;</code> to return the latent diffusion
model (LDM) output.`,name:"output_type"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py#L474",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/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</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/stable_diffusion/upscale#diffusers.pipelines.stable_diffusion.StableDiffusionPipelineOutput"
>StableDiffusionPipelineOutput</a> or <code>tuple</code></p>
`}}),S=new Oe({props:{anchor:"diffusers.StableAudioPipeline.__call__.example",$$slots:{default:[Ne]},$$scope:{ctx:K}}}),Z=new ge({props:{name:"disable_vae_slicing",anchor:"diffusers.StableAudioPipeline.disable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py#L132"}}),V=new ge({props:{name:"enable_vae_slicing",anchor:"diffusers.StableAudioPipeline.enable_vae_slicing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py#L124"}}),X=new Qe({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/stable_audio.md"}}),{c(){p=i("meta"),k=a(),_=i("p"),f=a(),v(h.$$.fragment),r=a(),g=i("p"),g.innerHTML=Ce,ee=a(),A=i("p"),A.textContent=ke,te=a(),j=i("p"),j.textContent=Ae,ne=a(),P=i("p"),P.innerHTML=je,oe=a(),U=i("p"),U.innerHTML=Pe,ae=a(),v(J.$$.fragment),se=a(),I=i("p"),I.textContent=Ue,ie=a(),B=i("ul"),B.innerHTML=Je,le=a(),D=i("p"),D.textContent=Ie,re=a(),G=i("ul"),G.innerHTML=Be,de=a(),v(E.$$.fragment),pe=a(),c=i("div"),v(H.$$.fragment),_e=a(),z=i("p"),z.textContent=De,be=a(),q=i("p"),q.innerHTML=Ge,ve=a(),b=i("div"),v(L.$$.fragment),we=a(),W=i("p"),W.textContent=Ee,ye=a(),v(S.$$.fragment),Me=a(),$=i("div"),v(Z.$$.fragment),xe=a(),R=i("p"),R.innerHTML=He,Te=a(),C=i("div"),v(V.$$.fragment),Se=a(),O=i("p"),O.textContent=Le,ce=a(),v(X.$$.fragment),me=a(),F=i("p"),this.h()},l(e){const t=We("svelte-u9bgzb",document.head);p=l(t,"META",{name:!0,content:!0}),t.forEach(n),k=s(e),_=l(e,"P",{}),N(_).forEach(n),f=s(e),w(h.$$.fragment,e),r=s(e),g=l(e,"P",{"data-svelte-h":!0}),u(g)!=="svelte-9nasxf"&&(g.innerHTML=Ce),ee=s(e),A=l(e,"P",{"data-svelte-h":!0}),u(A)!=="svelte-1fkqtr3"&&(A.textContent=ke),te=s(e),j=l(e,"P",{"data-svelte-h":!0}),u(j)!=="svelte-1di6p47"&&(j.textContent=Ae),ne=s(e),P=l(e,"P",{"data-svelte-h":!0}),u(P)!=="svelte-lksd8b"&&(P.innerHTML=je),oe=s(e),U=l(e,"P",{"data-svelte-h":!0}),u(U)!=="svelte-1kn7isa"&&(U.innerHTML=Pe),ae=s(e),w(J.$$.fragment,e),se=s(e),I=l(e,"P",{"data-svelte-h":!0}),u(I)!=="svelte-1dvtu0c"&&(I.textContent=Ue),ie=s(e),B=l(e,"UL",{"data-svelte-h":!0}),u(B)!=="svelte-1gnv7ni"&&(B.innerHTML=Je),le=s(e),D=l(e,"P",{"data-svelte-h":!0}),u(D)!=="svelte-1g0t9wk"&&(D.textContent=Ie),re=s(e),G=l(e,"UL",{"data-svelte-h":!0}),u(G)!=="svelte-1xz0ikc"&&(G.innerHTML=Be),de=s(e),w(E.$$.fragment,e),pe=s(e),c=l(e,"DIV",{class:!0});var m=N(c);w(H.$$.fragment,m),_e=s(m),z=l(m,"P",{"data-svelte-h":!0}),u(z)!=="svelte-vd0h2c"&&(z.textContent=De),be=s(m),q=l(m,"P",{"data-svelte-h":!0}),u(q)!=="svelte-496sm0"&&(q.innerHTML=Ge),ve=s(m),b=l(m,"DIV",{class:!0});var Q=N(b);w(L.$$.fragment,Q),we=s(Q),W=l(Q,"P",{"data-svelte-h":!0}),u(W)!=="svelte-50j04k"&&(W.textContent=Ee),ye=s(Q),w(S.$$.fragment,Q),Q.forEach(n),Me=s(m),$=l(m,"DIV",{class:!0});var fe=N($);w(Z.$$.fragment,fe),xe=s(fe),R=l(fe,"P",{"data-svelte-h":!0}),u(R)!=="svelte-1s3c06i"&&(R.innerHTML=He),fe.forEach(n),Te=s(m),C=l(m,"DIV",{class:!0});var he=N(C);w(V.$$.fragment,he),Se=s(he),O=l(he,"P",{"data-svelte-h":!0}),u(O)!=="svelte-14bnrb6"&&(O.textContent=Le),he.forEach(n),m.forEach(n),ce=s(e),w(X.$$.fragment,e),me=s(e),F=l(e,"P",{}),N(F).forEach(n),this.h()},h(){Y(p,"name","hf:doc:metadata"),Y(p,"content",Fe),Y(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Y($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Y(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),Y(c,"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){d(document.head,p),o(e,k,t),o(e,_,t),o(e,f,t),y(h,e,t),o(e,r,t),o(e,g,t),o(e,ee,t),o(e,A,t),o(e,te,t),o(e,j,t),o(e,ne,t),o(e,P,t),o(e,oe,t),o(e,U,t),o(e,ae,t),y(J,e,t),o(e,se,t),o(e,I,t),o(e,ie,t),o(e,B,t),o(e,le,t),o(e,D,t),o(e,re,t),o(e,G,t),o(e,de,t),y(E,e,t),o(e,pe,t),o(e,c,t),y(H,c,null),d(c,_e),d(c,z),d(c,be),d(c,q),d(c,ve),d(c,b),y(L,b,null),d(b,we),d(b,W),d(b,ye),y(S,b,null),d(c,Me),d(c,$),y(Z,$,null),d($,xe),d($,R),d(c,Te),d(c,C),y(V,C,null),d(C,Se),d(C,O),o(e,ce,t),y(X,e,t),o(e,me,t),o(e,F,t),ue=!0},p(e,[t]){const m={};t&2&&(m.$$scope={dirty:t,ctx:e}),S.$set(m)},i(e){ue||(M(h.$$.fragment,e),M(J.$$.fragment,e),M(E.$$.fragment,e),M(H.$$.fragment,e),M(L.$$.fragment,e),M(S.$$.fragment,e),M(Z.$$.fragment,e),M(V.$$.fragment,e),M(X.$$.fragment,e),ue=!0)},o(e){x(h.$$.fragment,e),x(J.$$.fragment,e),x(E.$$.fragment,e),x(H.$$.fragment,e),x(L.$$.fragment,e),x(S.$$.fragment,e),x(Z.$$.fragment,e),x(V.$$.fragment,e),x(X.$$.fragment,e),ue=!1},d(e){e&&(n(k),n(_),n(f),n(r),n(g),n(ee),n(A),n(te),n(j),n(ne),n(P),n(oe),n(U),n(ae),n(se),n(I),n(ie),n(B),n(le),n(D),n(re),n(G),n(de),n(pe),n(c),n(ce),n(me),n(F)),n(p),T(h,e),T(J,e),T(E,e),T(H),T(L),T(S),T(Z),T(V),T(X,e)}}}const Fe='{"title":"Stable Audio","local":"stable-audio","sections":[{"title":"Tips","local":"tips","sections":[],"depth":2},{"title":"StableAudioPipeline","local":"diffusers.StableAudioPipeline","sections":[],"depth":2}],"depth":1}';function Ke(K){return Ve(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class it extends ze{constructor(p){super(),qe(this,p,Ke,Ye,Ze,{})}}export{it as component};
