import{s as K,o as N,n as Q}from"../chunks/scheduler.9bc65507.js";import{S as Y,i as Z,g as l,s as r,r as V,A as ee,h as p,f as a,c as o,j as I,u as X,x as _,k as J,y as te,a as n,v as A,d as z,t as q,w as E}from"../chunks/index.707bf1b6.js";import{T as ae}from"../chunks/Tip.c2ecdbf4.js";import{H as O}from"../chunks/Heading.342b1fa6.js";function ne(b){let s,m='XLSR-Wav2Vec2’s architecture is based on the Wav2Vec2 model, so one can refer to <a href="wav2vec2">Wav2Vec2’s documentation page</a>.';return{c(){s=l("p"),s.innerHTML=m},l(i){s=p(i,"P",{"data-svelte-h":!0}),_(s)!=="svelte-1fm5txi"&&(s.innerHTML=m)},m(i,T){n(i,s,T)},p:Q,d(i){i&&a(s)}}}function se(b){let s,m,i,T,h,x,f,C,u,U=`The XLSR-Wav2Vec2 model was proposed in <a href="https://arxiv.org/abs/2006.13979" rel="nofollow">Unsupervised Cross-Lingual Representation Learning For Speech Recognition</a> by Alexis Conneau, Alexei Baevski, Ronan Collobert, Abdelrahman Mohamed, Michael
Auli.`,y,d,j="The abstract from the paper is the following:",M,v,B=`<em>This paper presents XLSR which learns cross-lingual speech representations by pretraining a single model from the raw
waveform of speech in multiple languages. We build on wav2vec 2.0 which is trained by solving a contrastive task over
masked latent speech representations and jointly learns a quantization of the latents shared across languages. The
resulting model is fine-tuned on labeled data and experiments show that cross-lingual pretraining significantly
outperforms monolingual pretraining. On the CommonVoice benchmark, XLSR shows a relative phoneme error rate reduction
of 72% compared to the best known results. On BABEL, our approach improves word error rate by 16% relative compared to
a comparable system. Our approach enables a single multilingual speech recognition model which is competitive to strong
individual models. Analysis shows that the latent discrete speech representations are shared across languages with
increased sharing for related languages. We hope to catalyze research in low-resource speech understanding by releasing
XLSR-53, a large model pretrained in 53 languages.</em>`,R,g,F='The original code can be found <a href="https://github.com/pytorch/fairseq/tree/master/fairseq/models/wav2vec" rel="nofollow">here</a>.',S,$,H,w,D=`<li>XLSR-Wav2Vec2 is a speech model that accepts a float array corresponding to the raw waveform of the speech signal.</li> <li>XLSR-Wav2Vec2 model was trained using connectionist temporal classification (CTC) so the model output has to be
decoded using <a href="/docs/transformers/v4.39.1/en/model_doc/wav2vec2#transformers.Wav2Vec2CTCTokenizer">Wav2Vec2CTCTokenizer</a>.</li>`,W,c,k,L,P;return h=new O({props:{title:"XLSR-Wav2Vec2",local:"xlsr-wav2vec2",headingTag:"h1"}}),f=new O({props:{title:"Overview",local:"overview",headingTag:"h2"}}),$=new O({props:{title:"Usage tips",local:"usage-tips",headingTag:"h2"}}),c=new ae({props:{$$slots:{default:[ne]},$$scope:{ctx:b}}}),{c(){s=l("meta"),m=r(),i=l("p"),T=r(),V(h.$$.fragment),x=r(),V(f.$$.fragment),C=r(),u=l("p"),u.innerHTML=U,y=r(),d=l("p"),d.textContent=j,M=r(),v=l("p"),v.innerHTML=B,R=r(),g=l("p"),g.innerHTML=F,S=r(),V($.$$.fragment),H=r(),w=l("ul"),w.innerHTML=D,W=r(),V(c.$$.fragment),k=r(),L=l("p"),this.h()},l(e){const t=ee("svelte-u9bgzb",document.head);s=p(t,"META",{name:!0,content:!0}),t.forEach(a),m=o(e),i=p(e,"P",{}),I(i).forEach(a),T=o(e),X(h.$$.fragment,e),x=o(e),X(f.$$.fragment,e),C=o(e),u=p(e,"P",{"data-svelte-h":!0}),_(u)!=="svelte-nw8zv9"&&(u.innerHTML=U),y=o(e),d=p(e,"P",{"data-svelte-h":!0}),_(d)!=="svelte-vfdo9a"&&(d.textContent=j),M=o(e),v=p(e,"P",{"data-svelte-h":!0}),_(v)!=="svelte-8kgyjh"&&(v.innerHTML=B),R=o(e),g=p(e,"P",{"data-svelte-h":!0}),_(g)!=="svelte-12gzw10"&&(g.innerHTML=F),S=o(e),X($.$$.fragment,e),H=o(e),w=p(e,"UL",{"data-svelte-h":!0}),_(w)!=="svelte-nqckxk"&&(w.innerHTML=D),W=o(e),X(c.$$.fragment,e),k=o(e),L=p(e,"P",{}),I(L).forEach(a),this.h()},h(){J(s,"name","hf:doc:metadata"),J(s,"content",ie)},m(e,t){te(document.head,s),n(e,m,t),n(e,i,t),n(e,T,t),A(h,e,t),n(e,x,t),A(f,e,t),n(e,C,t),n(e,u,t),n(e,y,t),n(e,d,t),n(e,M,t),n(e,v,t),n(e,R,t),n(e,g,t),n(e,S,t),A($,e,t),n(e,H,t),n(e,w,t),n(e,W,t),A(c,e,t),n(e,k,t),n(e,L,t),P=!0},p(e,[t]){const G={};t&2&&(G.$$scope={dirty:t,ctx:e}),c.$set(G)},i(e){P||(z(h.$$.fragment,e),z(f.$$.fragment,e),z($.$$.fragment,e),z(c.$$.fragment,e),P=!0)},o(e){q(h.$$.fragment,e),q(f.$$.fragment,e),q($.$$.fragment,e),q(c.$$.fragment,e),P=!1},d(e){e&&(a(m),a(i),a(T),a(x),a(C),a(u),a(y),a(d),a(M),a(v),a(R),a(g),a(S),a(H),a(w),a(W),a(k),a(L)),a(s),E(h,e),E(f,e),E($,e),E(c,e)}}}const ie='{"title":"XLSR-Wav2Vec2","local":"xlsr-wav2vec2","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Usage tips","local":"usage-tips","sections":[],"depth":2}],"depth":1}';function re(b){return N(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class me extends Y{constructor(s){super(),Z(this,s,re,se,K,{})}}export{me as component};
