import{s as Ct,o as Wt,n as ct}from"../chunks/scheduler.01eeda35.js";import{S as Zt,i as Dt,g as c,s as n,r as h,A as Gt,h as d,f as o,c as a,j as C,u as g,x as p,k as U,y as l,a as s,v as f,d as _,t as b,w as y}from"../chunks/index.6dd51b66.js";import{T as Vt}from"../chunks/Tip.de9bae2b.js";import{D as de}from"../chunks/Docstring.76e6b3cf.js";import{C as dt}from"../chunks/CodeBlock.864da1b0.js";import{E as Ut}from"../chunks/ExampleCodeBlock.6a36fb6b.js";import{H as me,E as It}from"../chunks/EditOnGithub.7faefd25.js";function Ft(W){let i,M="Example:",u,m,w;return m=new dt({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,u=n(),h(m.$$.fragment)},l(r){i=d(r,"P",{"data-svelte-h":!0}),p(i)!=="svelte-11lpom8"&&(i.textContent=M),u=a(r),g(m.$$.fragment,r)},m(r,T){s(r,i,T),s(r,u,T),f(m,r,T),w=!0},p:ct,i(r){w||(_(m.$$.fragment,r),w=!0)},o(r){b(m.$$.fragment,r),w=!1},d(r){r&&(o(i),o(u)),y(m,r)}}}function Xt(W){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(u){i=d(u,"P",{"data-svelte-h":!0}),p(i)!=="svelte-fincs2"&&(i.innerHTML=M)},m(u,m){s(u,i,m)},p:ct,d(u){u&&o(i)}}}function qt(W){let i,M="Examples:",u,m,w;return m=new dt({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,u=n(),h(m.$$.fragment)},l(r){i=d(r,"P",{"data-svelte-h":!0}),p(i)!=="svelte-kvfsh7"&&(i.textContent=M),u=a(r),g(m.$$.fragment,r)},m(r,T){s(r,i,T),s(r,u,T),f(m,r,T),w=!0},p:ct,i(r){w||(_(m.$$.fragment,r),w=!0)},o(r){b(m.$$.fragment,r),w=!1},d(r){r&&(o(i),o(u)),y(m,r)}}}function Bt(W){let i,M,u,m,w,r,T,mt='<img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-DE3412?style=flat&amp;logo=pytorch&amp;logoColor=white"/>',Me,q,Je,B,pt='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.',$e,R,ut="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.",xe,E,ht="The abstract from the paper is the following:",je,N,gt="<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>",ze,H,ft=`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>.`,ke,Y,Ue,Q,_t="The Descript Audio Codec (DAC) model is structured into three distinct stages:",Ce,L,bt="<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>",We,P,Ze,A,yt="Here is a quick example of how to encode and decode an audio using this model:",De,S,Ge,K,Ve,J,O,Ye,pe,wt=`This is the configuration class to store the configuration of an <a href="/docs/transformers/main/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.`,Qe,ue,vt=`Configuration objects inherit from <a href="/docs/transformers/main/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/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Le,Z,Ie,ee,Fe,$,te,Pe,he,Tt="Constructs an Dac feature extractor.",Ae,ge,Mt=`This feature extractor inherits from <a href="/docs/transformers/main/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.`,Se,D,oe,Ke,fe,Jt="Main method to featurize and prepare for the model one or several sequence(s).",Xe,ne,qe,v,ae,Oe,_e,$t=`The DAC (Descript Audio Codec) model.
This model inherits from <a href="/docs/transformers/main/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.)`,et,be,xt=`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.`,tt,G,se,ot,ye,jt="Decode given latent codes and return audio data",nt,V,re,at,we,zt="Encode given audio data and return quantized latent codes",st,x,ie,rt,ve,kt='The <a href="/docs/transformers/main/en/model_doc/dac#transformers.DacModel">DacModel</a> forward method, overrides the <code>__call__</code> special method.',it,I,lt,F,Be,le,Re,Te,Ee;return w=new me({props:{title:"DAC",local:"dac",headingTag:"h1"}}),q=new me({props:{title:"Overview",local:"overview",headingTag:"h2"}}),Y=new me({props:{title:"Model structure",local:"model-structure",headingTag:"h2"}}),P=new me({props:{title:"Usage example",local:"usage-example",headingTag:"h2"}}),S=new dt({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}}),K=new me({props:{title:"DacConfig",local:"transformers.DacConfig",headingTag:"h2"}}),O=new de({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/main/src/transformers/models/dac/configuration_dac.py#L28"}}),Z=new Ut({props:{anchor:"transformers.DacConfig.example",$$slots:{default:[Ft]},$$scope:{ctx:W}}}),ee=new me({props:{title:"DacFeatureExtractor",local:"transformers.DacFeatureExtractor",headingTag:"h2"}}),te=new de({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/main/src/transformers/models/dac/feature_extraction_dac.py#L29"}}),oe=new de({props:{name:"__call__",anchor:"transformers.DacFeatureExtractor.__call__",parameters:[{name:"raw_audio",val:": typing.Union[numpy.ndarray, typing.List[float], typing.List[numpy.ndarray], typing.List[typing.List[float]]]"},{name:"padding",val:": typing.Union[bool, str, transformers.utils.generic.PaddingStrategy, NoneType] = None"},{name:"truncation",val:": typing.Optional[bool] = False"},{name:"max_length",val:": typing.Optional[int] = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"},{name:"sampling_rate",val:": typing.Optional[int] = 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/main/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/main/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/main/src/transformers/models/dac/feature_extraction_dac.py#L60"}}),ne=new me({props:{title:"DacModel",local:"transformers.DacModel",headingTag:"h2"}}),ae=new de({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/main/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/main/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/main/src/transformers/models/dac/modeling_dac.py#L586"}}),se=new de({props:{name:"decode",anchor:"transformers.DacModel.decode",parameters:[{name:"quantized_representation",val:": typing.Optional[torch.Tensor] = None"},{name:"audio_codes",val:": typing.Optional[torch.Tensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.DacModel.decode.quantized_representation",description:`<strong>quantized_representation</strong> (torch.Tensor of shape <code>(batch_size, dimension, time_steps)</code>, <em>optional</em>) &#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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/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/main/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>
`}}),re=new de({props:{name:"encode",anchor:"transformers.DacModel.encode",parameters:[{name:"input_values",val:": Tensor"},{name:"n_quantizers",val:": int = None"},{name:"return_dict",val:": typing.Optional[bool] = 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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/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/main/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>
`}}),ie=new de({props:{name:"forward",anchor:"transformers.DacModel.forward",parameters:[{name:"input_values",val:": Tensor"},{name:"n_quantizers",val:": int = None"},{name:"return_dict",val:": typing.Optional[bool] = 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/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/main/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/main/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 Vt({props:{$$slots:{default:[Xt]},$$scope:{ctx:W}}}),F=new Ut({props:{anchor:"transformers.DacModel.forward.example",$$slots:{default:[qt]},$$scope:{ctx:W}}}),le=new It({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/dac.md"}}),{c(){i=c("meta"),M=n(),u=c("p"),m=n(),h(w.$$.fragment),r=n(),T=c("div"),T.innerHTML=mt,Me=n(),h(q.$$.fragment),Je=n(),B=c("p"),B.innerHTML=pt,$e=n(),R=c("p"),R.textContent=ut,xe=n(),E=c("p"),E.textContent=ht,je=n(),N=c("p"),N.innerHTML=gt,ze=n(),H=c("p"),H.innerHTML=ft,ke=n(),h(Y.$$.fragment),Ue=n(),Q=c("p"),Q.textContent=_t,Ce=n(),L=c("ol"),L.innerHTML=bt,We=n(),h(P.$$.fragment),Ze=n(),A=c("p"),A.textContent=yt,De=n(),h(S.$$.fragment),Ge=n(),h(K.$$.fragment),Ve=n(),J=c("div"),h(O.$$.fragment),Ye=n(),pe=c("p"),pe.innerHTML=wt,Qe=n(),ue=c("p"),ue.innerHTML=vt,Le=n(),h(Z.$$.fragment),Ie=n(),h(ee.$$.fragment),Fe=n(),$=c("div"),h(te.$$.fragment),Pe=n(),he=c("p"),he.textContent=Tt,Ae=n(),ge=c("p"),ge.innerHTML=Mt,Se=n(),D=c("div"),h(oe.$$.fragment),Ke=n(),fe=c("p"),fe.textContent=Jt,Xe=n(),h(ne.$$.fragment),qe=n(),v=c("div"),h(ae.$$.fragment),Oe=n(),_e=c("p"),_e.innerHTML=$t,et=n(),be=c("p"),be.innerHTML=xt,tt=n(),G=c("div"),h(se.$$.fragment),ot=n(),ye=c("p"),ye.textContent=jt,nt=n(),V=c("div"),h(re.$$.fragment),at=n(),we=c("p"),we.textContent=zt,st=n(),x=c("div"),h(ie.$$.fragment),rt=n(),ve=c("p"),ve.innerHTML=kt,it=n(),h(I.$$.fragment),lt=n(),h(F.$$.fragment),Be=n(),h(le.$$.fragment),Re=n(),Te=c("p"),this.h()},l(e){const t=Gt("svelte-u9bgzb",document.head);i=d(t,"META",{name:!0,content:!0}),t.forEach(o),M=a(e),u=d(e,"P",{}),C(u).forEach(o),m=a(e),g(w.$$.fragment,e),r=a(e),T=d(e,"DIV",{class:!0,"data-svelte-h":!0}),p(T)!=="svelte-13t8s2t"&&(T.innerHTML=mt),Me=a(e),g(q.$$.fragment,e),Je=a(e),B=d(e,"P",{"data-svelte-h":!0}),p(B)!=="svelte-96dor5"&&(B.innerHTML=pt),$e=a(e),R=d(e,"P",{"data-svelte-h":!0}),p(R)!=="svelte-18inimd"&&(R.textContent=ut),xe=a(e),E=d(e,"P",{"data-svelte-h":!0}),p(E)!=="svelte-vfdo9a"&&(E.textContent=ht),je=a(e),N=d(e,"P",{"data-svelte-h":!0}),p(N)!=="svelte-105iw56"&&(N.innerHTML=gt),ze=a(e),H=d(e,"P",{"data-svelte-h":!0}),p(H)!=="svelte-4oznky"&&(H.innerHTML=ft),ke=a(e),g(Y.$$.fragment,e),Ue=a(e),Q=d(e,"P",{"data-svelte-h":!0}),p(Q)!=="svelte-kluisz"&&(Q.textContent=_t),Ce=a(e),L=d(e,"OL",{"data-svelte-h":!0}),p(L)!=="svelte-gw5kk9"&&(L.innerHTML=bt),We=a(e),g(P.$$.fragment,e),Ze=a(e),A=d(e,"P",{"data-svelte-h":!0}),p(A)!=="svelte-1itt6cz"&&(A.textContent=yt),De=a(e),g(S.$$.fragment,e),Ge=a(e),g(K.$$.fragment,e),Ve=a(e),J=d(e,"DIV",{class:!0});var z=C(J);g(O.$$.fragment,z),Ye=a(z),pe=d(z,"P",{"data-svelte-h":!0}),p(pe)!=="svelte-1brvk35"&&(pe.innerHTML=wt),Qe=a(z),ue=d(z,"P",{"data-svelte-h":!0}),p(ue)!=="svelte-o55m63"&&(ue.innerHTML=vt),Le=a(z),g(Z.$$.fragment,z),z.forEach(o),Ie=a(e),g(ee.$$.fragment,e),Fe=a(e),$=d(e,"DIV",{class:!0});var k=C($);g(te.$$.fragment,k),Pe=a(k),he=d(k,"P",{"data-svelte-h":!0}),p(he)!=="svelte-f7d725"&&(he.textContent=Tt),Ae=a(k),ge=d(k,"P",{"data-svelte-h":!0}),p(ge)!=="svelte-3gz575"&&(ge.innerHTML=Mt),Se=a(k),D=d(k,"DIV",{class:!0});var ce=C(D);g(oe.$$.fragment,ce),Ke=a(ce),fe=d(ce,"P",{"data-svelte-h":!0}),p(fe)!=="svelte-1a6wgfx"&&(fe.textContent=Jt),ce.forEach(o),k.forEach(o),Xe=a(e),g(ne.$$.fragment,e),qe=a(e),v=d(e,"DIV",{class:!0});var j=C(v);g(ae.$$.fragment,j),Oe=a(j),_e=d(j,"P",{"data-svelte-h":!0}),p(_e)!=="svelte-h3agsh"&&(_e.innerHTML=$t),et=a(j),be=d(j,"P",{"data-svelte-h":!0}),p(be)!=="svelte-hswkmf"&&(be.innerHTML=xt),tt=a(j),G=d(j,"DIV",{class:!0});var Ne=C(G);g(se.$$.fragment,Ne),ot=a(Ne),ye=d(Ne,"P",{"data-svelte-h":!0}),p(ye)!=="svelte-74cnck"&&(ye.textContent=jt),Ne.forEach(o),nt=a(j),V=d(j,"DIV",{class:!0});var He=C(V);g(re.$$.fragment,He),at=a(He),we=d(He,"P",{"data-svelte-h":!0}),p(we)!=="svelte-xvjvfr"&&(we.textContent=zt),He.forEach(o),st=a(j),x=d(j,"DIV",{class:!0});var X=C(x);g(ie.$$.fragment,X),rt=a(X),ve=d(X,"P",{"data-svelte-h":!0}),p(ve)!=="svelte-rqe1wp"&&(ve.innerHTML=kt),it=a(X),g(I.$$.fragment,X),lt=a(X),g(F.$$.fragment,X),X.forEach(o),j.forEach(o),Be=a(e),g(le.$$.fragment,e),Re=a(e),Te=d(e,"P",{}),C(Te).forEach(o),this.h()},h(){U(i,"name","hf:doc:metadata"),U(i,"content",Rt),U(T,"class","flex flex-wrap space-x-1"),U(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),U(v,"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,u,t),s(e,m,t),f(w,e,t),s(e,r,t),s(e,T,t),s(e,Me,t),f(q,e,t),s(e,Je,t),s(e,B,t),s(e,$e,t),s(e,R,t),s(e,xe,t),s(e,E,t),s(e,je,t),s(e,N,t),s(e,ze,t),s(e,H,t),s(e,ke,t),f(Y,e,t),s(e,Ue,t),s(e,Q,t),s(e,Ce,t),s(e,L,t),s(e,We,t),f(P,e,t),s(e,Ze,t),s(e,A,t),s(e,De,t),f(S,e,t),s(e,Ge,t),f(K,e,t),s(e,Ve,t),s(e,J,t),f(O,J,null),l(J,Ye),l(J,pe),l(J,Qe),l(J,ue),l(J,Le),f(Z,J,null),s(e,Ie,t),f(ee,e,t),s(e,Fe,t),s(e,$,t),f(te,$,null),l($,Pe),l($,he),l($,Ae),l($,ge),l($,Se),l($,D),f(oe,D,null),l(D,Ke),l(D,fe),s(e,Xe,t),f(ne,e,t),s(e,qe,t),s(e,v,t),f(ae,v,null),l(v,Oe),l(v,_e),l(v,et),l(v,be),l(v,tt),l(v,G),f(se,G,null),l(G,ot),l(G,ye),l(v,nt),l(v,V),f(re,V,null),l(V,at),l(V,we),l(v,st),l(v,x),f(ie,x,null),l(x,rt),l(x,ve),l(x,it),f(I,x,null),l(x,lt),f(F,x,null),s(e,Be,t),f(le,e,t),s(e,Re,t),s(e,Te,t),Ee=!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 ce={};t&2&&(ce.$$scope={dirty:t,ctx:e}),F.$set(ce)},i(e){Ee||(_(w.$$.fragment,e),_(q.$$.fragment,e),_(Y.$$.fragment,e),_(P.$$.fragment,e),_(S.$$.fragment,e),_(K.$$.fragment,e),_(O.$$.fragment,e),_(Z.$$.fragment,e),_(ee.$$.fragment,e),_(te.$$.fragment,e),_(oe.$$.fragment,e),_(ne.$$.fragment,e),_(ae.$$.fragment,e),_(se.$$.fragment,e),_(re.$$.fragment,e),_(ie.$$.fragment,e),_(I.$$.fragment,e),_(F.$$.fragment,e),_(le.$$.fragment,e),Ee=!0)},o(e){b(w.$$.fragment,e),b(q.$$.fragment,e),b(Y.$$.fragment,e),b(P.$$.fragment,e),b(S.$$.fragment,e),b(K.$$.fragment,e),b(O.$$.fragment,e),b(Z.$$.fragment,e),b(ee.$$.fragment,e),b(te.$$.fragment,e),b(oe.$$.fragment,e),b(ne.$$.fragment,e),b(ae.$$.fragment,e),b(se.$$.fragment,e),b(re.$$.fragment,e),b(ie.$$.fragment,e),b(I.$$.fragment,e),b(F.$$.fragment,e),b(le.$$.fragment,e),Ee=!1},d(e){e&&(o(M),o(u),o(m),o(r),o(T),o(Me),o(Je),o(B),o($e),o(R),o(xe),o(E),o(je),o(N),o(ze),o(H),o(ke),o(Ue),o(Q),o(Ce),o(L),o(We),o(Ze),o(A),o(De),o(Ge),o(Ve),o(J),o(Ie),o(Fe),o($),o(Xe),o(qe),o(v),o(Be),o(Re),o(Te)),o(i),y(w,e),y(q,e),y(Y,e),y(P,e),y(S,e),y(K,e),y(O),y(Z),y(ee,e),y(te),y(oe),y(ne,e),y(ae),y(se),y(re),y(ie),y(I),y(F),y(le,e)}}}const Rt='{"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 Et(W){return Wt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class St extends Zt{constructor(i){super(),Dt(this,i,Et,Bt,Ct,{})}}export{St as component};
