import{S as be,i as ke,s as _e,e as o,k as f,w as Ee,t as r,M as xe,c as n,d as a,m as p,a as i,x as Te,h as s,b as T,G as t,g as d,y as Ae,L as Se,q as Le,o as Pe,B as Ie,v as $e}from"../../chunks/vendor-hf-doc-builder.js";import{I as Ne}from"../../chunks/IconCopyLink-hf-doc-builder.js";function We(ce){let u,W,h,m,A,w,Y,S,q,R,y,B,O,b,D,C,c,k,L,M,F,J,_,P,j,K,Q,E,I,V,X,Z,x,$,ee,te,G,g,ae,N,oe,ne,H;return w=new Ne({}),{c(){u=o("meta"),W=f(),h=o("h1"),m=o("a"),A=o("span"),Ee(w.$$.fragment),Y=f(),S=o("span"),q=r("Unit 2. A gentle introduction to audio applications"),R=f(),y=o("p"),B=r(`Welcome to the second unit of the Hugging Face audio course! Previously, we explored the fundamentals of audio data
and learned how to work with audio datasets using the \u{1F917} Datasets and \u{1F917} Transformers libraries. We discussed various
concepts such as sampling rate, amplitude, bit depth, waveform, and spectrograms, and saw how to preprocess data to
prepare it for a pre-trained model.`),O=f(),b=o("p"),D=r(`At this point you may be eager to learn about the audio tasks that \u{1F917} Transformers can handle, and you have all the foundational
knowledge necessary to dive in! Let\u2019s take a look at some of the mind-blowing audio task examples:`),C=f(),c=o("ul"),k=o("li"),L=o("strong"),M=r("Audio classification"),F=r(`: easily categorize audio clips into different categories. You can identify whether a recording
is of a barking dog or a meowing cat, or what music genre a song belongs to.`),J=f(),_=o("li"),P=o("strong"),j=r("Automatic speech recognition"),K=r(`: transform audio clips into text by transcribing them automatically. You can get a text
representation of a recording of someone speaking, like \u201CHow are you doing today?\u201C. Rather useful for note taking!`),Q=f(),E=o("li"),I=o("strong"),V=r("Speaker diarization"),X=r(`: Ever wondered who\u2019s speaking in a recording? With \u{1F917} Transformers, you can identify which speaker
is talking at any given time in an audio clip. Imagine being able to differentiate between \u201CAlice\u201D and \u201CBob\u201D in a recording
of them having a conversation.`),Z=f(),x=o("li"),$=o("strong"),ee=r("Text to speech"),te=r(`: create a narrated version of a text that can be used to produce an audio book, help with accessibility,
or give a voice to an NPC in a game. With \u{1F917} Transformers, you can easily do that!`),G=f(),g=o("p"),ae=r("In this unit, you\u2019ll learn how to use pre-trained models for some of these tasks using the "),N=o("code"),oe=r("pipeline()"),ne=r(` function from \u{1F917} Transformers.
Specifically, we\u2019ll see how the pre-trained models can be used for audio classification and automatic speech recognition.
Let\u2019s get started!`),this.h()},l(e){const l=xe('[data-svelte="svelte-1phssyn"]',document.head);u=n(l,"META",{name:!0,content:!0}),l.forEach(a),W=p(e),h=n(e,"H1",{class:!0});var U=i(h);m=n(U,"A",{id:!0,class:!0,href:!0});var de=i(m);A=n(de,"SPAN",{});var ue=i(A);Te(w.$$.fragment,ue),ue.forEach(a),de.forEach(a),Y=p(U),S=n(U,"SPAN",{});var he=i(S);q=s(he,"Unit 2. A gentle introduction to audio applications"),he.forEach(a),U.forEach(a),R=p(e),y=n(e,"P",{});var fe=i(y);B=s(fe,`Welcome to the second unit of the Hugging Face audio course! Previously, we explored the fundamentals of audio data
and learned how to work with audio datasets using the \u{1F917} Datasets and \u{1F917} Transformers libraries. We discussed various
concepts such as sampling rate, amplitude, bit depth, waveform, and spectrograms, and saw how to preprocess data to
prepare it for a pre-trained model.`),fe.forEach(a),O=p(e),b=n(e,"P",{});var pe=i(b);D=s(pe,`At this point you may be eager to learn about the audio tasks that \u{1F917} Transformers can handle, and you have all the foundational
knowledge necessary to dive in! Let\u2019s take a look at some of the mind-blowing audio task examples:`),pe.forEach(a),C=p(e),c=n(e,"UL",{});var v=i(c);k=n(v,"LI",{});var ie=i(k);L=n(ie,"STRONG",{});var me=i(L);M=s(me,"Audio classification"),me.forEach(a),F=s(ie,`: easily categorize audio clips into different categories. You can identify whether a recording
is of a barking dog or a meowing cat, or what music genre a song belongs to.`),ie.forEach(a),J=p(v),_=n(v,"LI",{});var re=i(_);P=n(re,"STRONG",{});var ge=i(P);j=s(ge,"Automatic speech recognition"),ge.forEach(a),K=s(re,`: transform audio clips into text by transcribing them automatically. You can get a text
representation of a recording of someone speaking, like \u201CHow are you doing today?\u201C. Rather useful for note taking!`),re.forEach(a),Q=p(v),E=n(v,"LI",{});var se=i(E);I=n(se,"STRONG",{});var ve=i(I);V=s(ve,"Speaker diarization"),ve.forEach(a),X=s(se,`: Ever wondered who\u2019s speaking in a recording? With \u{1F917} Transformers, you can identify which speaker
is talking at any given time in an audio clip. Imagine being able to differentiate between \u201CAlice\u201D and \u201CBob\u201D in a recording
of them having a conversation.`),se.forEach(a),Z=p(v),x=n(v,"LI",{});var le=i(x);$=n(le,"STRONG",{});var we=i($);ee=s(we,"Text to speech"),we.forEach(a),te=s(le,`: create a narrated version of a text that can be used to produce an audio book, help with accessibility,
or give a voice to an NPC in a game. With \u{1F917} Transformers, you can easily do that!`),le.forEach(a),v.forEach(a),G=p(e),g=n(e,"P",{});var z=i(g);ae=s(z,"In this unit, you\u2019ll learn how to use pre-trained models for some of these tasks using the "),N=n(z,"CODE",{});var ye=i(N);oe=s(ye,"pipeline()"),ye.forEach(a),ne=s(z,` function from \u{1F917} Transformers.
Specifically, we\u2019ll see how the pre-trained models can be used for audio classification and automatic speech recognition.
Let\u2019s get started!`),z.forEach(a),this.h()},h(){T(u,"name","hf:doc:metadata"),T(u,"content",JSON.stringify(Re)),T(m,"id","unit-2-a-gentle-introduction-to-audio-applications"),T(m,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),T(m,"href","#unit-2-a-gentle-introduction-to-audio-applications"),T(h,"class","relative group")},m(e,l){t(document.head,u),d(e,W,l),d(e,h,l),t(h,m),t(m,A),Ae(w,A,null),t(h,Y),t(h,S),t(S,q),d(e,R,l),d(e,y,l),t(y,B),d(e,O,l),d(e,b,l),t(b,D),d(e,C,l),d(e,c,l),t(c,k),t(k,L),t(L,M),t(k,F),t(c,J),t(c,_),t(_,P),t(P,j),t(_,K),t(c,Q),t(c,E),t(E,I),t(I,V),t(E,X),t(c,Z),t(c,x),t(x,$),t($,ee),t(x,te),d(e,G,l),d(e,g,l),t(g,ae),t(g,N),t(N,oe),t(g,ne),H=!0},p:Se,i(e){H||(Le(w.$$.fragment,e),H=!0)},o(e){Pe(w.$$.fragment,e),H=!1},d(e){a(u),e&&a(W),e&&a(h),Ie(w),e&&a(R),e&&a(y),e&&a(O),e&&a(b),e&&a(C),e&&a(c),e&&a(G),e&&a(g)}}}const Re={local:"unit-2-a-gentle-introduction-to-audio-applications",title:"Unit 2. A gentle introduction to audio applications"};function Oe(ce){return $e(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class He extends be{constructor(u){super();ke(this,u,Oe,We,_e,{})}}export{He as default,Re as metadata};
