import{s as B,n as D,o as F}from"../chunks/scheduler.cd324960.js";import{S as G,i as N,e as f,s as o,c as H,h as O,a as g,d as a,b as s,f as R,g as M,j as L,k as Y,l as J,m as n,n as A,t as E,o as S,p as z}from"../chunks/index.d5c3adcc.js";import{C as K,H as Q,E as V}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.7d44181b.js";function X(U){let i,b,h,y,r,$,l,v,u,W=`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 🤗 Datasets and 🤗 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.`,x,c,j=`At this point you may be eager to learn about the audio tasks that 🤗 Transformers can handle, and you have all the foundational
knowledge necessary to dive in! Let’s take a look at some of the mind-blowing audio task examples:`,_,d,q=`<li><strong>Audio classification</strong>: 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.</li> <li><strong>Automatic speech recognition</strong>: transform audio clips into text by transcribing them automatically. You can get a text
representation of a recording of someone speaking, like “How are you doing today?“. Rather useful for note taking!</li> <li><strong>Speaker diarization</strong>: Ever wondered who’s speaking in a recording? With 🤗 Transformers, you can identify which speaker
is talking at any given time in an audio clip. Imagine being able to differentiate between “Alice” and “Bob” in a recording
of them having a conversation.</li> <li><strong>Text to speech</strong>: 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 🤗 Transformers, you can easily do that!</li>`,k,m,I=`In this unit, you’ll learn how to use pre-trained models for some of these tasks using the <code>pipeline()</code> function from 🤗 Transformers.
Specifically, we’ll see how the pre-trained models can be used for audio classification, automatic speech recognition and audio generation.
Let’s get started!`,T,p,C,w,P;return r=new K({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),l=new Q({props:{title:"Unit 2. A gentle introduction to audio applications",local:"unit-2-a-gentle-introduction-to-audio-applications",headingTag:"h1"}}),p=new V({props:{source:"https://github.com/huggingface/audio-transformers-course/blob/main/chapters/en/chapter2/introduction.mdx"}}),{c(){i=f("meta"),b=o(),h=f("p"),y=o(),H(r.$$.fragment),$=o(),H(l.$$.fragment),v=o(),u=f("p"),u.textContent=W,x=o(),c=f("p"),c.textContent=j,_=o(),d=f("ul"),d.innerHTML=q,k=o(),m=f("p"),m.innerHTML=I,T=o(),H(p.$$.fragment),C=o(),w=f("p"),this.h()},l(e){const t=O("svelte-u9bgzb",document.head);i=g(t,"META",{name:!0,content:!0}),t.forEach(a),b=s(e),h=g(e,"P",{}),R(h).forEach(a),y=s(e),M(r.$$.fragment,e),$=s(e),M(l.$$.fragment,e),v=s(e),u=g(e,"P",{"data-svelte-h":!0}),L(u)!=="svelte-vj6e2"&&(u.textContent=W),x=s(e),c=g(e,"P",{"data-svelte-h":!0}),L(c)!=="svelte-qbuu6d"&&(c.textContent=j),_=s(e),d=g(e,"UL",{"data-svelte-h":!0}),L(d)!=="svelte-1bxzjf0"&&(d.innerHTML=q),k=s(e),m=g(e,"P",{"data-svelte-h":!0}),L(m)!=="svelte-r8m8hy"&&(m.innerHTML=I),T=s(e),M(p.$$.fragment,e),C=s(e),w=g(e,"P",{}),R(w).forEach(a),this.h()},h(){Y(i,"name","hf:doc:metadata"),Y(i,"content",Z)},m(e,t){J(document.head,i),n(e,b,t),n(e,h,t),n(e,y,t),A(r,e,t),n(e,$,t),A(l,e,t),n(e,v,t),n(e,u,t),n(e,x,t),n(e,c,t),n(e,_,t),n(e,d,t),n(e,k,t),n(e,m,t),n(e,T,t),A(p,e,t),n(e,C,t),n(e,w,t),P=!0},p:D,i(e){P||(E(r.$$.fragment,e),E(l.$$.fragment,e),E(p.$$.fragment,e),P=!0)},o(e){S(r.$$.fragment,e),S(l.$$.fragment,e),S(p.$$.fragment,e),P=!1},d(e){e&&(a(b),a(h),a(y),a($),a(v),a(u),a(x),a(c),a(_),a(d),a(k),a(m),a(T),a(C),a(w)),a(i),z(r,e),z(l,e),z(p,e)}}}const Z='{"title":"Unit 2. A gentle introduction to audio applications","local":"unit-2-a-gentle-introduction-to-audio-applications","sections":[],"depth":1}';function ee(U){return F(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ie extends G{constructor(i){super(),N(this,i,ee,X,B,{})}}export{ie as component};
