import{s as A,n as R,o as U}from"../chunks/scheduler.f7e1785c.js";import{S as z,i as J,g as m,s as i,r as I,A as N,h as f,f as a,c as s,j as L,u as q,x as P,k as D,y as X,a as o,v as F,d as O,t as S,w as j}from"../chunks/index.9f8f0838.js";import{H as Z,E as B}from"../chunks/getInferenceSnippets.ba5f4cd0.js";function K(T){let n,x,d,b,r,v,l,H="This exercise is not graded and is intended to help you become familiar with the tools and libraries that you will be using throughout the rest of the course. If you are already experienced in using Google Colab, 🤗 Datasets, librosa and 🤗 Transformers, you may choose to skip this exercise.",w,h,G='<li>Create a <a href="https://colab.research.google.com" rel="nofollow">Google Colab</a> notebook.</li> <li>Use 🤗 Datasets to load the train split of the <a href="https://huggingface.co/datasets/facebook/voxpopuli" rel="nofollow"><code>facebook/voxpopuli</code> dataset</a> in language of your choice in streaming mode.</li> <li>Get the third example from the <code>train</code> part of the dataset and explore it. Given the features that this example has, what kinds of audio tasks can you use this dataset for?</li> <li>Plot this example’s waveform and spectrogram.</li> <li>Go to <a href="https://huggingface.co/models" rel="nofollow">🤗 Hub</a>, explore pretrained models and find one that can be used for automatic speech recognition for the language that you have picked earlier. Instantiate a corresponding pipeline with the model you found, and transcribe the example.</li> <li>Compare the transcription that you get from the pipeline to the transcription provided in the example.</li>',y,c,M=`If you struggle with this exercise, feel free to take a peek at an <a href="https://colab.research.google.com/drive/1NGyo5wFpRj8TMfZOIuPaJHqyyXCITftc?usp=sharing" rel="nofollow">example solution</a>.
Discovered something interesting? Found a cool model? Got a beautiful spectrogram? Feel free to share your work and discoveries on Twitter!`,_,p,E="In the next chapters you’ll learn more about various audio transformer architectures and will train your own model!",$,u,C,g,k;return r=new Z({props:{title:"Hands-on exercise",local:"hands-on-exercise",headingTag:"h1"}}),u=new B({props:{source:"https://github.com/huggingface/audio-transformers-course/blob/main/chapters/en/chapter2/hands_on.mdx"}}),{c(){n=m("meta"),x=i(),d=m("p"),b=i(),I(r.$$.fragment),v=i(),l=m("p"),l.textContent=H,w=i(),h=m("ol"),h.innerHTML=G,y=i(),c=m("p"),c.innerHTML=M,_=i(),p=m("p"),p.textContent=E,$=i(),I(u.$$.fragment),C=i(),g=m("p"),this.h()},l(e){const t=N("svelte-u9bgzb",document.head);n=f(t,"META",{name:!0,content:!0}),t.forEach(a),x=s(e),d=f(e,"P",{}),L(d).forEach(a),b=s(e),q(r.$$.fragment,e),v=s(e),l=f(e,"P",{"data-svelte-h":!0}),P(l)!=="svelte-le73t9"&&(l.textContent=H),w=s(e),h=f(e,"OL",{"data-svelte-h":!0}),P(h)!=="svelte-7tk64q"&&(h.innerHTML=G),y=s(e),c=f(e,"P",{"data-svelte-h":!0}),P(c)!=="svelte-ka8x12"&&(c.innerHTML=M),_=s(e),p=f(e,"P",{"data-svelte-h":!0}),P(p)!=="svelte-1gcx1bf"&&(p.textContent=E),$=s(e),q(u.$$.fragment,e),C=s(e),g=f(e,"P",{}),L(g).forEach(a),this.h()},h(){D(n,"name","hf:doc:metadata"),D(n,"content",Q)},m(e,t){X(document.head,n),o(e,x,t),o(e,d,t),o(e,b,t),F(r,e,t),o(e,v,t),o(e,l,t),o(e,w,t),o(e,h,t),o(e,y,t),o(e,c,t),o(e,_,t),o(e,p,t),o(e,$,t),F(u,e,t),o(e,C,t),o(e,g,t),k=!0},p:R,i(e){k||(O(r.$$.fragment,e),O(u.$$.fragment,e),k=!0)},o(e){S(r.$$.fragment,e),S(u.$$.fragment,e),k=!1},d(e){e&&(a(x),a(d),a(b),a(v),a(l),a(w),a(h),a(y),a(c),a(_),a(p),a($),a(C),a(g)),a(n),j(r,e),j(u,e)}}}const Q='{"title":"Hands-on exercise","local":"hands-on-exercise","sections":[],"depth":1}';function V(T){return U(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class te extends z{constructor(n){super(),J(this,n,V,K,A,{})}}export{te as component};
