import{s as zt,o as kt,n as it}from"../chunks/scheduler.25b97de1.js";import{S as Ut,i as Wt,g as c,s as n,r as u,A as Ct,h as d,f as o,c as a,j as U,u as h,x as y,k as W,y as l,a as s,v as g,d as f,t as _,w as b}from"../chunks/index.d9030fc9.js";import{T as Zt}from"../chunks/Tip.baa67368.js";import{D as ce}from"../chunks/Docstring.ffac8efa.js";import{C as lt}from"../chunks/CodeBlock.e6cd0d95.js";import{E as xt}from"../chunks/ExampleCodeBlock.22dfe688.js";import{H as de,E as Dt}from"../chunks/EditOnGithub.91d95064.js";function Gt(C){let i,M="Example:",p,m,v;return m=new lt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMERhY01vZGVsJTJDJTIwRGFjQ29uZmlnJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMCUyMmRlc2NyaXB0JTJGZGFjXzE2a2h6JTIyJTIwc3R5bGUlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMERhY0NvbmZpZygpJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMG1vZGVsJTIwKHdpdGglMjByYW5kb20lMjB3ZWlnaHRzKSUyMGZyb20lMjB0aGUlMjAlMjJkZXNjcmlwdCUyRmRhY18xNmtoeiUyMiUyMHN0eWxlJTIwY29uZmlndXJhdGlvbiUwQW1vZGVsJTIwJTNEJTIwRGFjTW9kZWwoY29uZmlndXJhdGlvbiklMEElMEElMjMlMjBBY2Nlc3NpbmclMjB0aGUlMjBtb2RlbCUyMGNvbmZpZ3VyYXRpb24lMEFjb25maWd1cmF0aW9uJTIwJTNEJTIwbW9kZWwuY29uZmln",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> DacModel, DacConfig

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a &quot;descript/dac_16khz&quot; style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = DacConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a model (with random weights) from the &quot;descript/dac_16khz&quot; style configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = DacModel(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`,wrap:!1}}),{c(){i=c("p"),i.textContent=M,p=n(),u(m.$$.fragment)},l(r){i=d(r,"P",{"data-svelte-h":!0}),y(i)!=="svelte-11lpom8"&&(i.textContent=M),p=a(r),h(m.$$.fragment,r)},m(r,T){s(r,i,T),s(r,p,T),g(m,r,T),v=!0},p:it,i(r){v||(f(m.$$.fragment,r),v=!0)},o(r){_(m.$$.fragment,r),v=!1},d(r){r&&(o(i),o(p)),b(m,r)}}}function Vt(C){let i,M=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){i=c("p"),i.innerHTML=M},l(p){i=d(p,"P",{"data-svelte-h":!0}),y(i)!=="svelte-fincs2"&&(i.innerHTML=M)},m(p,m){s(p,i,m)},p:it,d(p){p&&o(i)}}}function It(C){let i,M="Examples:",p,m,v;return m=new lt({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwQXVkaW8lMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwRGFjTW9kZWwlMkMlMjBBdXRvUHJvY2Vzc29yJTBBbGlicmlzcGVlY2hfZHVtbXklMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaGYtaW50ZXJuYWwtdGVzdGluZyUyRmxpYnJpc3BlZWNoX2Fzcl9kdW1teSUyMiUyQyUyMCUyMmNsZWFuJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQSUwQW1vZGVsJTIwJTNEJTIwRGFjTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmRlc2NyaXB0JTJGZGFjXzE2a2h6JTIyKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmRlc2NyaXB0JTJGZGFjXzE2a2h6JTIyKSUwQWxpYnJpc3BlZWNoX2R1bW15JTIwJTNEJTIwbGlicmlzcGVlY2hfZHVtbXkuY2FzdF9jb2x1bW4oJTIyYXVkaW8lMjIlMkMlMjBBdWRpbyhzYW1wbGluZ19yYXRlJTNEcHJvY2Vzc29yLnNhbXBsaW5nX3JhdGUpKSUwQWF1ZGlvX3NhbXBsZSUyMCUzRCUyMGxpYnJpc3BlZWNoX2R1bW15JTVCLTElNUQlNUIlMjJhdWRpbyUyMiU1RCU1QiUyMmFycmF5JTIyJTVEJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKHJhd19hdWRpbyUzRGF1ZGlvX3NhbXBsZSUyQyUyMHNhbXBsaW5nX3JhdGUlM0Rwcm9jZXNzb3Iuc2FtcGxpbmdfcmF0ZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBZW5jb2Rlcl9vdXRwdXRzJTIwJTNEJTIwbW9kZWwuZW5jb2RlKGlucHV0cyU1QiUyMmlucHV0X3ZhbHVlcyUyMiU1RCklMEElMjMlMjBHZXQlMjB0aGUlMjBpbnRlcm1lZGlhdGUlMjBhdWRpbyUyMGNvZGVzJTBBYXVkaW9fY29kZXMlMjAlM0QlMjBlbmNvZGVyX291dHB1dHMuYXVkaW9fY29kZXMlMEElMjMlMjBSZWNvbnN0cnVjdCUyMHRoZSUyMGF1ZGlvJTIwZnJvbSUyMGl0cyUyMHF1YW50aXplZCUyMHJlcHJlc2VudGF0aW9uJTBBYXVkaW9fdmFsdWVzJTIwJTNEJTIwbW9kZWwuZGVjb2RlKGVuY29kZXJfb3V0cHV0cy5xdWFudGl6ZWRfcmVwcmVzZW50YXRpb24pJTBBJTIzJTIwb3IlMjB0aGUlMjBlcXVpdmFsZW50JTIwd2l0aCUyMGElMjBmb3J3YXJkJTIwcGFzcyUwQWF1ZGlvX3ZhbHVlcyUyMCUzRCUyMG1vZGVsKGlucHV0cyU1QiUyMmlucHV0X3ZhbHVlcyUyMiU1RCkuYXVkaW9fdmFsdWVz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, Audio
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> DacModel, AutoProcessor
<span class="hljs-meta">&gt;&gt;&gt; </span>librispeech_dummy = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_dummy&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>model = DacModel.from_pretrained(<span class="hljs-string">&quot;descript/dac_16khz&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;descript/dac_16khz&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>librispeech_dummy = librispeech_dummy.cast_column(<span class="hljs-string">&quot;audio&quot;</span>, Audio(sampling_rate=processor.sampling_rate))
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_sample = librispeech_dummy[-<span class="hljs-number">1</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(raw_audio=audio_sample, sampling_rate=processor.sampling_rate, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>encoder_outputs = model.encode(inputs[<span class="hljs-string">&quot;input_values&quot;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Get the intermediate audio codes</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_codes = encoder_outputs.audio_codes
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Reconstruct the audio from its quantized representation</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_values = model.decode(encoder_outputs.quantized_representation)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># or the equivalent with a forward pass</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_values = model(inputs[<span class="hljs-string">&quot;input_values&quot;</span>]).audio_values`,wrap:!1}}),{c(){i=c("p"),i.textContent=M,p=n(),u(m.$$.fragment)},l(r){i=d(r,"P",{"data-svelte-h":!0}),y(i)!=="svelte-kvfsh7"&&(i.textContent=M),p=a(r),h(m.$$.fragment,r)},m(r,T){s(r,i,T),s(r,p,T),g(m,r,T),v=!0},p:it,i(r){v||(f(m.$$.fragment,r),v=!0)},o(r){_(m.$$.fragment,r),v=!1},d(r){r&&(o(i),o(p)),b(m,r)}}}function Ft(C){let i,M,p,m,v,r,T,Te,q,ct='The DAC model was proposed in <a href="https://arxiv.org/abs/2306.06546" rel="nofollow">Descript Audio Codec: High-Fidelity Audio Compression with Improved RVQGAN</a> by Rithesh Kumar, Prem Seetharaman, Alejandro Luebs, Ishaan Kumar, Kundan Kumar.',Me,B,dt="The Descript Audio Codec (DAC) model is a powerful tool for compressing audio data, making it highly efficient for storage and transmission. By compressing 44.1 KHz audio into tokens at just 8kbps bandwidth, the DAC model enables high-quality audio processing while significantly reducing the data footprint. This is particularly useful in scenarios where bandwidth is limited or storage space is at a premium, such as in streaming applications, remote conferencing, and archiving large audio datasets.",Je,R,mt="The abstract from the paper is the following:",$e,E,pt="<em>Language models have been successfully used to model natural signals, such as images, speech, and music. A key component of these models is a high quality neural compression model that can compress high-dimensional natural signals into lower dimensional discrete tokens. To that end, we introduce a high-fidelity universal neural audio compression algorithm that achieves ~90x compression of 44.1 KHz audio into tokens at just 8kbps bandwidth. We achieve this by combining advances in high-fidelity audio generation with better vector quantization techniques from the image domain, along with improved adversarial and reconstruction losses. We compress all domains (speech, environment, music, etc.) with a single universal model, making it widely applicable to generative modeling of all audio. We compare with competing audio compression algorithms, and find our method outperforms them significantly. We provide thorough ablations for every design choice, as well as open-source code and trained model weights. We hope our work can lay the foundation for the next generation of high-fidelity audio modeling.</em>",je,N,ut=`This model was contributed by <a href="https://huggingface.co/kamilakesbi" rel="nofollow">Kamil Akesbi</a>.
The original code can be found <a href="https://github.com/descriptinc/descript-audio-codec/tree/main?tab=readme-ov-file" rel="nofollow">here</a>.`,xe,H,ze,Y,ht="The Descript Audio Codec (DAC) model is structured into three distinct stages:",ke,Q,gt="<li>Encoder Model: This stage compresses the input audio, reducing its size while retaining essential information.</li> <li>Residual Vector Quantizer (RVQ) Model: Working in tandem with the encoder, this model quantizes the latent codes of the audio, refining the compression and ensuring high-quality reconstruction.</li> <li>Decoder Model: This final stage reconstructs the audio from its compressed form, restoring it to a state that closely resembles the original input.</li>",Ue,P,We,L,ft="Here is a quick example of how to encode and decode an audio using this model:",Ce,A,Ze,S,De,J,K,Ne,me,_t=`This is the configuration class to store the configuration of an <a href="/docs/transformers/pr_30950/en/model_doc/dac#transformers.DacModel">DacModel</a>. It is used to instantiate a
Dac model according to the specified arguments, defining the model architecture. Instantiating a configuration
with the defaults will yield a similar configuration to that of the
<a href="https://huggingface.co/descript/dac_16khz" rel="nofollow">descript/dac_16khz</a> architecture.`,He,pe,bt=`Configuration objects inherit from <a href="/docs/transformers/pr_30950/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/pr_30950/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Ye,Z,Ge,O,Ve,$,ee,Qe,ue,yt="Constructs an Dac feature extractor.",Pe,he,vt=`This feature extractor inherits from <a href="/docs/transformers/pr_30950/en/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a> which contains
most of the main methods. Users should refer to this superclass for more information regarding those methods.`,Le,D,te,Ae,ge,wt="Main method to featurize and prepare for the model one or several sequence(s).",Ie,oe,Fe,w,ne,Se,fe,Tt=`The DAC (Descript Audio Codec) model.
This model inherits from <a href="/docs/transformers/pr_30950/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,Ke,_e,Mt=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,Oe,G,ae,et,be,Jt="Decode given latent codes and return audio data",tt,V,se,ot,ye,$t="Encode given audio data and return quantized latent codes",nt,j,re,at,ve,jt='The <a href="/docs/transformers/pr_30950/en/model_doc/dac#transformers.DacModel">DacModel</a> forward method, overrides the <code>__call__</code> special method.',st,I,rt,F,Xe,ie,qe,we,Be;return v=new de({props:{title:"DAC",local:"dac",headingTag:"h1"}}),T=new de({props:{title:"Overview",local:"overview",headingTag:"h2"}}),H=new de({props:{title:"Model structure",local:"model-structure",headingTag:"h2"}}),P=new de({props:{title:"Usage example",local:"usage-example",headingTag:"h2"}}),A=new lt({props:{code:"ZnJvbSUyMGRhdGFzZXRzJTIwaW1wb3J0JTIwbG9hZF9kYXRhc2V0JTJDJTIwQXVkaW8lMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwRGFjTW9kZWwlMkMlMjBBdXRvUHJvY2Vzc29yJTBBbGlicmlzcGVlY2hfZHVtbXklMjAlM0QlMjBsb2FkX2RhdGFzZXQoJTIyaGYtaW50ZXJuYWwtdGVzdGluZyUyRmxpYnJpc3BlZWNoX2Fzcl9kdW1teSUyMiUyQyUyMCUyMmNsZWFuJTIyJTJDJTIwc3BsaXQlM0QlMjJ2YWxpZGF0aW9uJTIyKSUwQSUwQW1vZGVsJTIwJTNEJTIwRGFjTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMmRlc2NyaXB0JTJGZGFjXzE2a2h6JTIyKSUwQXByb2Nlc3NvciUyMCUzRCUyMEF1dG9Qcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUyMmRlc2NyaXB0JTJGZGFjXzE2a2h6JTIyKSUwQWxpYnJpc3BlZWNoX2R1bW15JTIwJTNEJTIwbGlicmlzcGVlY2hfZHVtbXkuY2FzdF9jb2x1bW4oJTIyYXVkaW8lMjIlMkMlMjBBdWRpbyhzYW1wbGluZ19yYXRlJTNEcHJvY2Vzc29yLnNhbXBsaW5nX3JhdGUpKSUwQWF1ZGlvX3NhbXBsZSUyMCUzRCUyMGxpYnJpc3BlZWNoX2R1bW15JTVCLTElNUQlNUIlMjJhdWRpbyUyMiU1RCU1QiUyMmFycmF5JTIyJTVEJTBBaW5wdXRzJTIwJTNEJTIwcHJvY2Vzc29yKHJhd19hdWRpbyUzRGF1ZGlvX3NhbXBsZSUyQyUyMHNhbXBsaW5nX3JhdGUlM0Rwcm9jZXNzb3Iuc2FtcGxpbmdfcmF0ZSUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTBBZW5jb2Rlcl9vdXRwdXRzJTIwJTNEJTIwbW9kZWwuZW5jb2RlKGlucHV0cyU1QiUyMmlucHV0X3ZhbHVlcyUyMiU1RCklMEElMjMlMjBHZXQlMjB0aGUlMjBpbnRlcm1lZGlhdGUlMjBhdWRpbyUyMGNvZGVzJTBBYXVkaW9fY29kZXMlMjAlM0QlMjBlbmNvZGVyX291dHB1dHMuYXVkaW9fY29kZXMlMEElMjMlMjBSZWNvbnN0cnVjdCUyMHRoZSUyMGF1ZGlvJTIwZnJvbSUyMGl0cyUyMHF1YW50aXplZCUyMHJlcHJlc2VudGF0aW9uJTBBYXVkaW9fdmFsdWVzJTIwJTNEJTIwbW9kZWwuZGVjb2RlKGVuY29kZXJfb3V0cHV0cy5xdWFudGl6ZWRfcmVwcmVzZW50YXRpb24pJTBBJTIzJTIwb3IlMjB0aGUlMjBlcXVpdmFsZW50JTIwd2l0aCUyMGElMjBmb3J3YXJkJTIwcGFzcyUwQWF1ZGlvX3ZhbHVlcyUyMCUzRCUyMG1vZGVsKGlucHV0cyU1QiUyMmlucHV0X3ZhbHVlcyUyMiU1RCkuYXVkaW9fdmFsdWVz",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> datasets <span class="hljs-keyword">import</span> load_dataset, Audio
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> DacModel, AutoProcessor
<span class="hljs-meta">&gt;&gt;&gt; </span>librispeech_dummy = load_dataset(<span class="hljs-string">&quot;hf-internal-testing/librispeech_asr_dummy&quot;</span>, <span class="hljs-string">&quot;clean&quot;</span>, split=<span class="hljs-string">&quot;validation&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>model = DacModel.from_pretrained(<span class="hljs-string">&quot;descript/dac_16khz&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>processor = AutoProcessor.from_pretrained(<span class="hljs-string">&quot;descript/dac_16khz&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>librispeech_dummy = librispeech_dummy.cast_column(<span class="hljs-string">&quot;audio&quot;</span>, Audio(sampling_rate=processor.sampling_rate))
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_sample = librispeech_dummy[-<span class="hljs-number">1</span>][<span class="hljs-string">&quot;audio&quot;</span>][<span class="hljs-string">&quot;array&quot;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>inputs = processor(raw_audio=audio_sample, sampling_rate=processor.sampling_rate, return_tensors=<span class="hljs-string">&quot;pt&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>encoder_outputs = model.encode(inputs[<span class="hljs-string">&quot;input_values&quot;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Get the intermediate audio codes</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_codes = encoder_outputs.audio_codes
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Reconstruct the audio from its quantized representation</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_values = model.decode(encoder_outputs.quantized_representation)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># or the equivalent with a forward pass</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>audio_values = model(inputs[<span class="hljs-string">&quot;input_values&quot;</span>]).audio_values`,wrap:!1}}),S=new de({props:{title:"DacConfig",local:"transformers.DacConfig",headingTag:"h2"}}),K=new ce({props:{name:"class transformers.DacConfig",anchor:"transformers.DacConfig",parameters:[{name:"encoder_hidden_size",val:" = 64"},{name:"downsampling_ratios",val:" = [2, 4, 8, 8]"},{name:"decoder_hidden_size",val:" = 1536"},{name:"n_codebooks",val:" = 9"},{name:"codebook_size",val:" = 1024"},{name:"codebook_dim",val:" = 8"},{name:"quantizer_dropout",val:" = 0"},{name:"commitment_loss_weight",val:" = 0.25"},{name:"codebook_loss_weight",val:" = 1.0"},{name:"sampling_rate",val:" = 16000"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DacConfig.encoder_hidden_size",description:`<strong>encoder_hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 64) &#x2014;
Intermediate representation dimension for the encoder.`,name:"encoder_hidden_size"},{anchor:"transformers.DacConfig.downsampling_ratios",description:`<strong>downsampling_ratios</strong> (<code>List[int]</code>, <em>optional</em>, defaults to <code>[2, 4, 8, 8]</code>) &#x2014;
Ratios for downsampling in the encoder. These are used in reverse order for upsampling in the decoder.`,name:"downsampling_ratios"},{anchor:"transformers.DacConfig.decoder_hidden_size",description:`<strong>decoder_hidden_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1536) &#x2014;
Intermediate representation dimension for the decoder.`,name:"decoder_hidden_size"},{anchor:"transformers.DacConfig.n_codebooks",description:`<strong>n_codebooks</strong> (<code>int</code>, <em>optional</em>, defaults to 9) &#x2014;
Number of codebooks in the VQVAE.`,name:"n_codebooks"},{anchor:"transformers.DacConfig.codebook_size",description:`<strong>codebook_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1024) &#x2014;
Number of discrete codes in each codebook.`,name:"codebook_size"},{anchor:"transformers.DacConfig.codebook_dim",description:`<strong>codebook_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Dimension of the codebook vectors. If not defined, uses <code>encoder_hidden_size</code>.`,name:"codebook_dim"},{anchor:"transformers.DacConfig.quantizer_dropout",description:`<strong>quantizer_dropout</strong> (<code>bool</code>, <em>optional</em>, defaults to 0) &#x2014;
Whether to apply dropout to the quantizer.`,name:"quantizer_dropout"},{anchor:"transformers.DacConfig.commitment_loss_weight",description:`<strong>commitment_loss_weight</strong> (float, <em>optional</em>, defaults to 0.25) &#x2014;
Weight of the commitment loss term in the VQVAE loss function.`,name:"commitment_loss_weight"},{anchor:"transformers.DacConfig.codebook_loss_weight",description:`<strong>codebook_loss_weight</strong> (float, <em>optional</em>, defaults to 1.0) &#x2014;
Weight of the codebook loss term in the VQVAE loss function.`,name:"codebook_loss_weight"},{anchor:"transformers.DacConfig.sampling_rate",description:`<strong>sampling_rate</strong> (<code>int</code>, <em>optional</em>, defaults to 16000) &#x2014;
The sampling rate at which the audio waveform should be digitalized expressed in hertz (Hz).`,name:"sampling_rate"}],source:"https://github.com/huggingface/transformers/blob/vr_30950/src/transformers/models/dac/configuration_dac.py#L28"}}),Z=new xt({props:{anchor:"transformers.DacConfig.example",$$slots:{default:[Gt]},$$scope:{ctx:C}}}),O=new de({props:{title:"DacFeatureExtractor",local:"transformers.DacFeatureExtractor",headingTag:"h2"}}),ee=new ce({props:{name:"class transformers.DacFeatureExtractor",anchor:"transformers.DacFeatureExtractor",parameters:[{name:"feature_size",val:": int = 1"},{name:"sampling_rate",val:": int = 16000"},{name:"padding_value",val:": float = 0.0"},{name:"hop_length",val:": int = 512"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.DacFeatureExtractor.feature_size",description:`<strong>feature_size</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
The feature dimension of the extracted features. Use 1 for mono, 2 for stereo.`,name:"feature_size"},{anchor:"transformers.DacFeatureExtractor.sampling_rate",description:`<strong>sampling_rate</strong> (<code>int</code>, <em>optional</em>, defaults to 16000) &#x2014;
The sampling rate at which the audio waveform should be digitalized, expressed in hertz (Hz).`,name:"sampling_rate"},{anchor:"transformers.DacFeatureExtractor.padding_value",description:`<strong>padding_value</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The value that is used for padding.`,name:"padding_value"},{anchor:"transformers.DacFeatureExtractor.hop_length",description:`<strong>hop_length</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Overlap length between successive windows.`,name:"hop_length"}],source:"https://github.com/huggingface/transformers/blob/vr_30950/src/transformers/models/dac/feature_extraction_dac.py#L29"}}),te=new ce({props:{name:"__call__",anchor:"transformers.DacFeatureExtractor.__call__",parameters:[{name:"raw_audio",val:": Union"},{name:"padding",val:": Union = None"},{name:"truncation",val:": Optional = False"},{name:"max_length",val:": Optional = None"},{name:"return_tensors",val:": Union = None"},{name:"sampling_rate",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.DacFeatureExtractor.__call__.raw_audio",description:`<strong>raw_audio</strong> (<code>np.ndarray</code>, <code>List[float]</code>, <code>List[np.ndarray]</code>, <code>List[List[float]]</code>) &#x2014;
The sequence or batch of sequences to be processed. Each sequence can be a numpy array, a list of float
values, a list of numpy arrays or a list of list of float values. The numpy array must be of shape
<code>(num_samples,)</code> for mono audio (<code>feature_size = 1</code>), or <code>(2, num_samples)</code> for stereo audio
(<code>feature_size = 2</code>).`,name:"raw_audio"},{anchor:"transformers.DacFeatureExtractor.__call__.padding",description:`<strong>padding</strong> (<code>bool</code>, <code>str</code> or <a href="/docs/transformers/pr_30950/en/internal/file_utils#transformers.utils.PaddingStrategy">PaddingStrategy</a>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Select a strategy to pad the returned sequences (according to the model&#x2019;s padding side and padding
index) among:</p>
<ul>
<li><code>True</code> or <code>&apos;longest&apos;</code>: Pad to the longest sequence in the batch (or no padding if only a single
sequence if provided).</li>
<li><code>&apos;max_length&apos;</code>: Pad to a maximum length specified with the argument <code>max_length</code> or to the maximum
acceptable input length for the model if that argument is not provided.</li>
<li><code>False</code> or <code>&apos;do_not_pad&apos;</code> (default): No padding (i.e., can output a batch with sequences of different
lengths).</li>
</ul>`,name:"padding"},{anchor:"transformers.DacFeatureExtractor.__call__.truncation",description:`<strong>truncation</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Activates truncation to cut input sequences longer than <code>max_length</code> to <code>max_length</code>.`,name:"truncation"},{anchor:"transformers.DacFeatureExtractor.__call__.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Maximum length of the returned list and optionally padding length (see above).`,name:"max_length"},{anchor:"transformers.DacFeatureExtractor.__call__.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <a href="/docs/transformers/pr_30950/en/internal/file_utils#transformers.TensorType">TensorType</a>, <em>optional</em>, default to &#x2018;pt&#x2019;) &#x2014;
If set, will return tensors instead of list of python integers. Acceptable values are:</p>
<ul>
<li><code>&apos;tf&apos;</code>: Return TensorFlow <code>tf.constant</code> objects.</li>
<li><code>&apos;pt&apos;</code>: Return PyTorch <code>torch.Tensor</code> objects.</li>
<li><code>&apos;np&apos;</code>: Return Numpy <code>np.ndarray</code> objects.</li>
</ul>`,name:"return_tensors"},{anchor:"transformers.DacFeatureExtractor.__call__.sampling_rate",description:`<strong>sampling_rate</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The sampling rate at which the <code>audio</code> input was sampled. It is strongly recommended to pass
<code>sampling_rate</code> at the forward call to prevent silent errors.`,name:"sampling_rate"}],source:"https://github.com/huggingface/transformers/blob/vr_30950/src/transformers/models/dac/feature_extraction_dac.py#L60"}}),oe=new de({props:{title:"DacModel",local:"transformers.DacModel",headingTag:"h2"}}),ne=new ce({props:{name:"class transformers.DacModel",anchor:"transformers.DacModel",parameters:[{name:"config",val:": DacConfig"}],parametersDescription:[{anchor:"transformers.DacModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/pr_30950/en/model_doc/dac#transformers.DacConfig">DacConfig</a>) &#x2014;
Model configuration class with all the parameters of the model. Initializing with a config file does not
load the weights associated with the model, only the configuration. Check out the
<a href="/docs/transformers/pr_30950/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/vr_30950/src/transformers/models/dac/modeling_dac.py#L586"}}),ae=new ce({props:{name:"decode",anchor:"transformers.DacModel.decode",parameters:[{name:"quantized_representation",val:": Optional"},{name:"audio_codes",val:": Optional = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.DacModel.decode.quantized_representation",description:`<strong>quantized_representation</strong> (torch.Tensor of shape <code>(batch_size, dimension, time_steps)</code>) &#x2014;
Quantized continuous representation of input.`,name:"quantized_representation"},{anchor:"transformers.DacModel.decode.audio_codes",description:`<strong>audio_codes</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, num_codebooks, time_steps)</code>, <em>optional</em>) &#x2014;
The codebook indices for each codebook, representing the quantized discrete
representation of the input. This parameter should be provided if you want
to decode directly from the audio codes (it will overwrite quantized_representation).`,name:"audio_codes"},{anchor:"transformers.DacModel.decode.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/pr_30950/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_30950/src/transformers/models/dac/modeling_dac.py#L641",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.dac.modeling_dac.DacDecoderOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/pr_30950/en/model_doc/dac#transformers.DacConfig"
>DacConfig</a>) and inputs.</p>
<ul>
<li><strong>audio_values</strong> (<code>torch.FloatTensor</code>  of shape <code>(batch_size, input_length)</code>, <em>optional</em>) — Decoded audio values, obtained using the decoder part of Dac.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.dac.modeling_dac.DacDecoderOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),se=new ce({props:{name:"encode",anchor:"transformers.DacModel.encode",parameters:[{name:"input_values",val:": Tensor"},{name:"n_quantizers",val:": int = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.DacModel.encode.input_values",description:"<strong>input_values</strong> (<code>torch.Tensor of shape </code>(batch_size, 1, time_steps)`) &#x2014;\nInput audio data to encode,",name:"input_values"},{anchor:"transformers.DacModel.encode.n_quantizers",description:`<strong>n_quantizers</strong> (int, <em>optional</em>) &#x2014;
Number of quantizers to use. If None, all quantizers are used. Default is None.`,name:"n_quantizers"},{anchor:"transformers.DacModel.encode.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/pr_30950/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_30950/src/transformers/models/dac/modeling_dac.py#L607",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.dac.modeling_dac.DacEncoderOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/pr_30950/en/model_doc/dac#transformers.DacConfig"
>DacConfig</a>) and inputs.</p>
<ul>
<li><strong>loss</strong> (<code>torch.Tensor</code>) — Loss from the encoder model, comprising the weighted combination of the commitment and codebook losses.</li>
<li><strong>quantized_representation</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, dimension, time_steps)</code>, <em>optional</em>) — Quantized continuous representation of input.</li>
<li><strong>audio_codes</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, num_codebooks, time_steps)</code>, <em>optional</em>) — Codebook indices for each codebook (quantized discrete representation of input).</li>
<li><strong>projected_latents</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, num_codebooks * dimension, time_steps)</code>, <em>optional</em>) — Projected latents (continuous representation of input before quantization).</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.dac.modeling_dac.DacEncoderOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),re=new ce({props:{name:"forward",anchor:"transformers.DacModel.forward",parameters:[{name:"input_values",val:": Tensor"},{name:"n_quantizers",val:": int = None"},{name:"return_dict",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.DacModel.forward.input_values",description:`<strong>input_values</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, 1, time_steps)</code>). &#x2014;
Audio data to encode,`,name:"input_values"},{anchor:"transformers.DacModel.forward.n_quantizers",description:`<strong>n_quantizers</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Number of quantizers to use. If <code>None</code>, all quantizers are used. Default is <code>None</code>.`,name:"n_quantizers"},{anchor:"transformers.DacModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/pr_30950/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/vr_30950/src/transformers/models/dac/modeling_dac.py#L679",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.dac.modeling_dac.DacOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/pr_30950/en/model_doc/dac#transformers.DacConfig"
>DacConfig</a>) and inputs.</p>
<ul>
<li><strong>loss</strong> (<code>torch.Tensor</code>) — Loss from the encoder model, comprising the weighted combination of the commitment and codebook losses.</li>
<li><strong>audio_values</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, input_length)</code>) — Reconstructed audio data.</li>
<li><strong>quantized_representation</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, dimension, time_steps)</code>) — Quantized continuous representation of input.</li>
<li><strong>audio_codes</strong> (<code>torch.LongTensor</code> of shape <code>(batch_size, num_codebooks, time_steps)</code>) — Codebook indices for each codebook (quantized discrete representation of input).</li>
<li><strong>projected_latents</strong> (<code>torch.Tensor</code> of shape <code>(batch_size, num_codebooks * dimension, time_steps)</code>) — Projected latents (continuous representation of input before quantization).</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.dac.modeling_dac.DacOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),I=new Zt({props:{$$slots:{default:[Vt]},$$scope:{ctx:C}}}),F=new xt({props:{anchor:"transformers.DacModel.forward.example",$$slots:{default:[It]},$$scope:{ctx:C}}}),ie=new Dt({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/dac.md"}}),{c(){i=c("meta"),M=n(),p=c("p"),m=n(),u(v.$$.fragment),r=n(),u(T.$$.fragment),Te=n(),q=c("p"),q.innerHTML=ct,Me=n(),B=c("p"),B.textContent=dt,Je=n(),R=c("p"),R.textContent=mt,$e=n(),E=c("p"),E.innerHTML=pt,je=n(),N=c("p"),N.innerHTML=ut,xe=n(),u(H.$$.fragment),ze=n(),Y=c("p"),Y.textContent=ht,ke=n(),Q=c("ol"),Q.innerHTML=gt,Ue=n(),u(P.$$.fragment),We=n(),L=c("p"),L.textContent=ft,Ce=n(),u(A.$$.fragment),Ze=n(),u(S.$$.fragment),De=n(),J=c("div"),u(K.$$.fragment),Ne=n(),me=c("p"),me.innerHTML=_t,He=n(),pe=c("p"),pe.innerHTML=bt,Ye=n(),u(Z.$$.fragment),Ge=n(),u(O.$$.fragment),Ve=n(),$=c("div"),u(ee.$$.fragment),Qe=n(),ue=c("p"),ue.textContent=yt,Pe=n(),he=c("p"),he.innerHTML=vt,Le=n(),D=c("div"),u(te.$$.fragment),Ae=n(),ge=c("p"),ge.textContent=wt,Ie=n(),u(oe.$$.fragment),Fe=n(),w=c("div"),u(ne.$$.fragment),Se=n(),fe=c("p"),fe.innerHTML=Tt,Ke=n(),_e=c("p"),_e.innerHTML=Mt,Oe=n(),G=c("div"),u(ae.$$.fragment),et=n(),be=c("p"),be.textContent=Jt,tt=n(),V=c("div"),u(se.$$.fragment),ot=n(),ye=c("p"),ye.textContent=$t,nt=n(),j=c("div"),u(re.$$.fragment),at=n(),ve=c("p"),ve.innerHTML=jt,st=n(),u(I.$$.fragment),rt=n(),u(F.$$.fragment),Xe=n(),u(ie.$$.fragment),qe=n(),we=c("p"),this.h()},l(e){const t=Ct("svelte-u9bgzb",document.head);i=d(t,"META",{name:!0,content:!0}),t.forEach(o),M=a(e),p=d(e,"P",{}),U(p).forEach(o),m=a(e),h(v.$$.fragment,e),r=a(e),h(T.$$.fragment,e),Te=a(e),q=d(e,"P",{"data-svelte-h":!0}),y(q)!=="svelte-96dor5"&&(q.innerHTML=ct),Me=a(e),B=d(e,"P",{"data-svelte-h":!0}),y(B)!=="svelte-18inimd"&&(B.textContent=dt),Je=a(e),R=d(e,"P",{"data-svelte-h":!0}),y(R)!=="svelte-vfdo9a"&&(R.textContent=mt),$e=a(e),E=d(e,"P",{"data-svelte-h":!0}),y(E)!=="svelte-105iw56"&&(E.innerHTML=pt),je=a(e),N=d(e,"P",{"data-svelte-h":!0}),y(N)!=="svelte-4oznky"&&(N.innerHTML=ut),xe=a(e),h(H.$$.fragment,e),ze=a(e),Y=d(e,"P",{"data-svelte-h":!0}),y(Y)!=="svelte-kluisz"&&(Y.textContent=ht),ke=a(e),Q=d(e,"OL",{"data-svelte-h":!0}),y(Q)!=="svelte-gw5kk9"&&(Q.innerHTML=gt),Ue=a(e),h(P.$$.fragment,e),We=a(e),L=d(e,"P",{"data-svelte-h":!0}),y(L)!=="svelte-1itt6cz"&&(L.textContent=ft),Ce=a(e),h(A.$$.fragment,e),Ze=a(e),h(S.$$.fragment,e),De=a(e),J=d(e,"DIV",{class:!0});var z=U(J);h(K.$$.fragment,z),Ne=a(z),me=d(z,"P",{"data-svelte-h":!0}),y(me)!=="svelte-w97oua"&&(me.innerHTML=_t),He=a(z),pe=d(z,"P",{"data-svelte-h":!0}),y(pe)!=="svelte-o0v7bn"&&(pe.innerHTML=bt),Ye=a(z),h(Z.$$.fragment,z),z.forEach(o),Ge=a(e),h(O.$$.fragment,e),Ve=a(e),$=d(e,"DIV",{class:!0});var k=U($);h(ee.$$.fragment,k),Qe=a(k),ue=d(k,"P",{"data-svelte-h":!0}),y(ue)!=="svelte-f7d725"&&(ue.textContent=yt),Pe=a(k),he=d(k,"P",{"data-svelte-h":!0}),y(he)!=="svelte-1b955by"&&(he.innerHTML=vt),Le=a(k),D=d(k,"DIV",{class:!0});var le=U(D);h(te.$$.fragment,le),Ae=a(le),ge=d(le,"P",{"data-svelte-h":!0}),y(ge)!=="svelte-1a6wgfx"&&(ge.textContent=wt),le.forEach(o),k.forEach(o),Ie=a(e),h(oe.$$.fragment,e),Fe=a(e),w=d(e,"DIV",{class:!0});var x=U(w);h(ne.$$.fragment,x),Se=a(x),fe=d(x,"P",{"data-svelte-h":!0}),y(fe)!=="svelte-m7wmye"&&(fe.innerHTML=Tt),Ke=a(x),_e=d(x,"P",{"data-svelte-h":!0}),y(_e)!=="svelte-hswkmf"&&(_e.innerHTML=Mt),Oe=a(x),G=d(x,"DIV",{class:!0});var Re=U(G);h(ae.$$.fragment,Re),et=a(Re),be=d(Re,"P",{"data-svelte-h":!0}),y(be)!=="svelte-74cnck"&&(be.textContent=Jt),Re.forEach(o),tt=a(x),V=d(x,"DIV",{class:!0});var Ee=U(V);h(se.$$.fragment,Ee),ot=a(Ee),ye=d(Ee,"P",{"data-svelte-h":!0}),y(ye)!=="svelte-xvjvfr"&&(ye.textContent=$t),Ee.forEach(o),nt=a(x),j=d(x,"DIV",{class:!0});var X=U(j);h(re.$$.fragment,X),at=a(X),ve=d(X,"P",{"data-svelte-h":!0}),y(ve)!=="svelte-c3xuvo"&&(ve.innerHTML=jt),st=a(X),h(I.$$.fragment,X),rt=a(X),h(F.$$.fragment,X),X.forEach(o),x.forEach(o),Xe=a(e),h(ie.$$.fragment,e),qe=a(e),we=d(e,"P",{}),U(we).forEach(o),this.h()},h(){W(i,"name","hf:doc:metadata"),W(i,"content",Xt),W(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),W(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),W($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),W(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),W(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),W(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),W(w,"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){l(document.head,i),s(e,M,t),s(e,p,t),s(e,m,t),g(v,e,t),s(e,r,t),g(T,e,t),s(e,Te,t),s(e,q,t),s(e,Me,t),s(e,B,t),s(e,Je,t),s(e,R,t),s(e,$e,t),s(e,E,t),s(e,je,t),s(e,N,t),s(e,xe,t),g(H,e,t),s(e,ze,t),s(e,Y,t),s(e,ke,t),s(e,Q,t),s(e,Ue,t),g(P,e,t),s(e,We,t),s(e,L,t),s(e,Ce,t),g(A,e,t),s(e,Ze,t),g(S,e,t),s(e,De,t),s(e,J,t),g(K,J,null),l(J,Ne),l(J,me),l(J,He),l(J,pe),l(J,Ye),g(Z,J,null),s(e,Ge,t),g(O,e,t),s(e,Ve,t),s(e,$,t),g(ee,$,null),l($,Qe),l($,ue),l($,Pe),l($,he),l($,Le),l($,D),g(te,D,null),l(D,Ae),l(D,ge),s(e,Ie,t),g(oe,e,t),s(e,Fe,t),s(e,w,t),g(ne,w,null),l(w,Se),l(w,fe),l(w,Ke),l(w,_e),l(w,Oe),l(w,G),g(ae,G,null),l(G,et),l(G,be),l(w,tt),l(w,V),g(se,V,null),l(V,ot),l(V,ye),l(w,nt),l(w,j),g(re,j,null),l(j,at),l(j,ve),l(j,st),g(I,j,null),l(j,rt),g(F,j,null),s(e,Xe,t),g(ie,e,t),s(e,qe,t),s(e,we,t),Be=!0},p(e,[t]){const z={};t&2&&(z.$$scope={dirty:t,ctx:e}),Z.$set(z);const k={};t&2&&(k.$$scope={dirty:t,ctx:e}),I.$set(k);const le={};t&2&&(le.$$scope={dirty:t,ctx:e}),F.$set(le)},i(e){Be||(f(v.$$.fragment,e),f(T.$$.fragment,e),f(H.$$.fragment,e),f(P.$$.fragment,e),f(A.$$.fragment,e),f(S.$$.fragment,e),f(K.$$.fragment,e),f(Z.$$.fragment,e),f(O.$$.fragment,e),f(ee.$$.fragment,e),f(te.$$.fragment,e),f(oe.$$.fragment,e),f(ne.$$.fragment,e),f(ae.$$.fragment,e),f(se.$$.fragment,e),f(re.$$.fragment,e),f(I.$$.fragment,e),f(F.$$.fragment,e),f(ie.$$.fragment,e),Be=!0)},o(e){_(v.$$.fragment,e),_(T.$$.fragment,e),_(H.$$.fragment,e),_(P.$$.fragment,e),_(A.$$.fragment,e),_(S.$$.fragment,e),_(K.$$.fragment,e),_(Z.$$.fragment,e),_(O.$$.fragment,e),_(ee.$$.fragment,e),_(te.$$.fragment,e),_(oe.$$.fragment,e),_(ne.$$.fragment,e),_(ae.$$.fragment,e),_(se.$$.fragment,e),_(re.$$.fragment,e),_(I.$$.fragment,e),_(F.$$.fragment,e),_(ie.$$.fragment,e),Be=!1},d(e){e&&(o(M),o(p),o(m),o(r),o(Te),o(q),o(Me),o(B),o(Je),o(R),o($e),o(E),o(je),o(N),o(xe),o(ze),o(Y),o(ke),o(Q),o(Ue),o(We),o(L),o(Ce),o(Ze),o(De),o(J),o(Ge),o(Ve),o($),o(Ie),o(Fe),o(w),o(Xe),o(qe),o(we)),o(i),b(v,e),b(T,e),b(H,e),b(P,e),b(A,e),b(S,e),b(K),b(Z),b(O,e),b(ee),b(te),b(oe,e),b(ne),b(ae),b(se),b(re),b(I),b(F),b(ie,e)}}}const Xt='{"title":"DAC","local":"dac","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Model structure","local":"model-structure","sections":[],"depth":2},{"title":"Usage example","local":"usage-example","sections":[],"depth":2},{"title":"DacConfig","local":"transformers.DacConfig","sections":[],"depth":2},{"title":"DacFeatureExtractor","local":"transformers.DacFeatureExtractor","sections":[],"depth":2},{"title":"DacModel","local":"transformers.DacModel","sections":[],"depth":2}],"depth":1}';function qt(C){return kt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pt extends Ut{constructor(i){super(),Wt(this,i,qt,Ft,zt,{})}}export{Pt as component};
