import{s as B,n as J,o as K}from"../chunks/scheduler.f7e1785c.js";import{S as Q,i as X,g as s,s as i,r as z,A as Y,h as r,f as a,c as o,j,u as N,x as w,k as R,y as Z,a as n,v as V,d as W,t as D,w as G}from"../chunks/index.9f8f0838.js";import{H as O}from"../chunks/Heading.6643a2f7.js";function ee(L){let l,g,x,b,u,T,p,M=`In the previous unit, you learned how to use Transformers to convert spoken speech into text. Now let’s flip the
script and see how you can transform a given input text into an audio output that sounds like human speech.`,_,c,E=`The task we will study in this unit is called “Text-to-speech” (TTS). Models capable of converting text into audible
human speech have a wide range of potential applications:`,$,h,U="<li>Assistive apps: think about tools that can leverage these models to enable visually-impaired people to access digital content through the medium of sound.</li> <li>Audiobook narration: converting written books into audio form makes literature more accessible to individuals who prefer to listen or have difficulty with reading.</li> <li>Virtual assistants: TTS models are a fundamental component of virtual assistants like Siri, Google Assistant, or Amazon Alexa. Once they have used a classification model to catch the wake word, and used ASR model to process your request, they can use a TTS model to respond to your inquiry.</li> <li>Entertainment, gaming and language learning: give voice to your NPC characters, narrate game events, or help language learners with examples of correct pronunciation and intonation of words and phrases.</li>",C,m,F=`These are just a few examples, and I am sure you can imagine many more! However, with so much power comes the responsibility,
and it is important to highlight that TTS models have the potential to be used for malicious purposes.
For example, with sufficient voice samples, malicious actors could potentially create convincing fake audio recordings, leading to
the unauthorized use of someone’s voice for fraudulent purposes or manipulation. If you plan to collect data for fine-tuning
your own systems, carefully consider privacy and informed consent. Voice data should be obtained with explicit consent
from individuals, ensuring they understand the purpose, scope, and potential risks associated with their voice being used
in a TTS system. Please use text-to-speech responsibly.`,k,d,P,f,I="In this unit we will talk about:",S,v,q='<li><a href="tts_datasets">Datasets suitable for text-to-speech training</a></li> <li><a href="pre-trained_models">Pre-trained models for text-to-speech</a></li> <li><a href="fine-tuning">Fine-tuning SpeechT5 on a new language</a></li> <li><a href="evaluation">Evaluating TTS models</a></li>',A,y,H;return u=new O({props:{title:"Unit 6. From text to speech",local:"unit-6-from-text-to-speech",headingTag:"h1"}}),d=new O({props:{title:"What you’ll learn and what you’ll build",local:"what-youll-learn-and-what-youll-build",headingTag:"h2"}}),{c(){l=s("meta"),g=i(),x=s("p"),b=i(),z(u.$$.fragment),T=i(),p=s("p"),p.textContent=M,_=i(),c=s("p"),c.textContent=E,$=i(),h=s("ul"),h.innerHTML=U,C=i(),m=s("p"),m.textContent=F,k=i(),z(d.$$.fragment),P=i(),f=s("p"),f.textContent=I,S=i(),v=s("ul"),v.innerHTML=q,A=i(),y=s("p"),this.h()},l(e){const t=Y("svelte-u9bgzb",document.head);l=r(t,"META",{name:!0,content:!0}),t.forEach(a),g=o(e),x=r(e,"P",{}),j(x).forEach(a),b=o(e),N(u.$$.fragment,e),T=o(e),p=r(e,"P",{"data-svelte-h":!0}),w(p)!=="svelte-ivblhn"&&(p.textContent=M),_=o(e),c=r(e,"P",{"data-svelte-h":!0}),w(c)!=="svelte-7nvptx"&&(c.textContent=E),$=o(e),h=r(e,"UL",{"data-svelte-h":!0}),w(h)!=="svelte-xwfueb"&&(h.innerHTML=U),C=o(e),m=r(e,"P",{"data-svelte-h":!0}),w(m)!=="svelte-5lykth"&&(m.textContent=F),k=o(e),N(d.$$.fragment,e),P=o(e),f=r(e,"P",{"data-svelte-h":!0}),w(f)!=="svelte-1bx1oe2"&&(f.textContent=I),S=o(e),v=r(e,"UL",{"data-svelte-h":!0}),w(v)!=="svelte-14n9psg"&&(v.innerHTML=q),A=o(e),y=r(e,"P",{}),j(y).forEach(a),this.h()},h(){R(l,"name","hf:doc:metadata"),R(l,"content",te)},m(e,t){Z(document.head,l),n(e,g,t),n(e,x,t),n(e,b,t),V(u,e,t),n(e,T,t),n(e,p,t),n(e,_,t),n(e,c,t),n(e,$,t),n(e,h,t),n(e,C,t),n(e,m,t),n(e,k,t),V(d,e,t),n(e,P,t),n(e,f,t),n(e,S,t),n(e,v,t),n(e,A,t),n(e,y,t),H=!0},p:J,i(e){H||(W(u.$$.fragment,e),W(d.$$.fragment,e),H=!0)},o(e){D(u.$$.fragment,e),D(d.$$.fragment,e),H=!1},d(e){e&&(a(g),a(x),a(b),a(T),a(p),a(_),a(c),a($),a(h),a(C),a(m),a(k),a(P),a(f),a(S),a(v),a(A),a(y)),a(l),G(u,e),G(d,e)}}}const te='{"title":"Unit 6. From text to speech","local":"unit-6-from-text-to-speech","sections":[{"title":"What you’ll learn and what you’ll build","local":"what-youll-learn-and-what-youll-build","sections":[],"depth":2}],"depth":1}';function ae(L){return K(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class le extends Q{constructor(l){super(),X(this,l,ae,ee,B,{})}}export{le as component};
