import{S as he,i as ue,s as pe,e as n,k as p,w as fe,t as l,M as de,c as i,d as t,m as f,a as r,x as me,h as c,b,G as o,g as s,y as ve,L as ye,q as xe,o as ge,B as _e,v as we}from"../../chunks/vendor-hf-doc-builder.js";import{I as ke}from"../../chunks/IconCopyLink-hf-doc-builder.js";function be(Z){let h,H,u,d,E,y,B,P,L,A,x,N,C,g,R,I,_,j,G,m,z,S,D,J,M,w,K,O,v,Q,$,V,W,T,k,X,U;return y=new ke({}),{c(){h=n("meta"),H=p(),u=n("h1"),d=n("a"),E=n("span"),fe(y.$$.fragment),B=p(),P=n("span"),L=l("Hands-on exercise"),A=p(),x=n("p"),N=l(`In this unit, we have explored text-to-speech audio task, talked about existing datasets, pretrained
models and nuances of fine-tuning SpeechT5 for a new language.`),C=p(),g=n("p"),R=l(`As you\u2019ve seen, fine-tuning models for text-to-speech task can be challenging in low-resource scenarios. At the same time,
evaluating text-to-speech models isn\u2019t easy either.`),I=p(),_=n("p"),j=l("For these reasons, this hands-on exercise will focus on practicing the skills rather than achieving a certain metric value."),G=p(),m=n("p"),z=l(`Your objective for this task is to fine-tune SpeechT5 on a dataset of your choosing. You have the freedom to select
another language from the same `),S=n("code"),D=l("voxpopuli"),J=l(" dataset, or you can pick any other dataset listed in this unit."),M=p(),w=n("p"),K=l(`Be mindful of the training data size! For training on a free tier GPU from Google Colab, we recommend limiting the training
data to about 10-15 hours.`),O=p(),v=n("p"),Q=l(`Once you have completed the fine-tuning process, share your model by uploading it to the Hub. Make sure to tag your model
as a `),$=n("code"),V=l("text-to-speech"),W=l(" model either with appropriate kwargs, or in the Hub UI."),T=p(),k=n("p"),X=l(`Remember, the primary aim of this exercise is to provide you with ample practice, allowing you to refine your skills and
gain a deeper understanding of text-to-speech audio tasks.`),this.h()},l(e){const a=de('[data-svelte="svelte-1phssyn"]',document.head);h=i(a,"META",{name:!0,content:!0}),a.forEach(t),H=f(e),u=i(e,"H1",{class:!0});var F=r(u);d=i(F,"A",{id:!0,class:!0,href:!0});var ee=r(d);E=i(ee,"SPAN",{});var te=r(E);me(y.$$.fragment,te),te.forEach(t),ee.forEach(t),B=f(F),P=i(F,"SPAN",{});var ae=r(P);L=c(ae,"Hands-on exercise"),ae.forEach(t),F.forEach(t),A=f(e),x=i(e,"P",{});var oe=r(x);N=c(oe,`In this unit, we have explored text-to-speech audio task, talked about existing datasets, pretrained
models and nuances of fine-tuning SpeechT5 for a new language.`),oe.forEach(t),C=f(e),g=i(e,"P",{});var se=r(g);R=c(se,`As you\u2019ve seen, fine-tuning models for text-to-speech task can be challenging in low-resource scenarios. At the same time,
evaluating text-to-speech models isn\u2019t easy either.`),se.forEach(t),I=f(e),_=i(e,"P",{});var ne=r(_);j=c(ne,"For these reasons, this hands-on exercise will focus on practicing the skills rather than achieving a certain metric value."),ne.forEach(t),G=f(e),m=i(e,"P",{});var Y=r(m);z=c(Y,`Your objective for this task is to fine-tune SpeechT5 on a dataset of your choosing. You have the freedom to select
another language from the same `),S=i(Y,"CODE",{});var ie=r(S);D=c(ie,"voxpopuli"),ie.forEach(t),J=c(Y," dataset, or you can pick any other dataset listed in this unit."),Y.forEach(t),M=f(e),w=i(e,"P",{});var re=r(w);K=c(re,`Be mindful of the training data size! For training on a free tier GPU from Google Colab, we recommend limiting the training
data to about 10-15 hours.`),re.forEach(t),O=f(e),v=i(e,"P",{});var q=r(v);Q=c(q,`Once you have completed the fine-tuning process, share your model by uploading it to the Hub. Make sure to tag your model
as a `),$=i(q,"CODE",{});var le=r($);V=c(le,"text-to-speech"),le.forEach(t),W=c(q," model either with appropriate kwargs, or in the Hub UI."),q.forEach(t),T=f(e),k=i(e,"P",{});var ce=r(k);X=c(ce,`Remember, the primary aim of this exercise is to provide you with ample practice, allowing you to refine your skills and
gain a deeper understanding of text-to-speech audio tasks.`),ce.forEach(t),this.h()},h(){b(h,"name","hf:doc:metadata"),b(h,"content",JSON.stringify(Ee)),b(d,"id","handson-exercise"),b(d,"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"),b(d,"href","#handson-exercise"),b(u,"class","relative group")},m(e,a){o(document.head,h),s(e,H,a),s(e,u,a),o(u,d),o(d,E),ve(y,E,null),o(u,B),o(u,P),o(P,L),s(e,A,a),s(e,x,a),o(x,N),s(e,C,a),s(e,g,a),o(g,R),s(e,I,a),s(e,_,a),o(_,j),s(e,G,a),s(e,m,a),o(m,z),o(m,S),o(S,D),o(m,J),s(e,M,a),s(e,w,a),o(w,K),s(e,O,a),s(e,v,a),o(v,Q),o(v,$),o($,V),o(v,W),s(e,T,a),s(e,k,a),o(k,X),U=!0},p:ye,i(e){U||(xe(y.$$.fragment,e),U=!0)},o(e){ge(y.$$.fragment,e),U=!1},d(e){t(h),e&&t(H),e&&t(u),_e(y),e&&t(A),e&&t(x),e&&t(C),e&&t(g),e&&t(I),e&&t(_),e&&t(G),e&&t(m),e&&t(M),e&&t(w),e&&t(O),e&&t(v),e&&t(T),e&&t(k)}}}const Ee={local:"handson-exercise",title:"Hands-on exercise"};function Pe(Z){return we(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class He extends he{constructor(h){super();ue(this,h,Pe,be,pe,{})}}export{He as default,Ee as metadata};
