import{s as N,n as Q,o as V}from"../chunks/scheduler.cd324960.js";import{S as X,i as Y,e as l,s,c as M,h as Z,a as r,d as n,b as i,f as J,g as O,j as g,k as K,l as ee,m as a,n as H,t as A,o as L,p as U}from"../chunks/index.d5c3adcc.js";import{C as te,H as ne,E as ae}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.481f2bec.js";function se(B){let o,$,x,C,m,_,u,T,p,D=`During the training time, text-to-speech models optimize for the mean-square error loss (or mean absolute error) between
the predicted spectrogram values and the generated ones. Both MSE and MAE encourage the model to minimize the difference
between the predicted and target spectrograms. However, since TTS is a one-to-many mapping problem, i.e. the output spectrogram for a given text can be represented in many different ways, the evaluation of the resulting text-to-speech (TTS) models is much
more difficult.`,w,c,F=`Unlike many other computational tasks that can be objectively
measured using quantitative metrics, such as accuracy or precision, evaluating TTS relies heavily on subjective human analysis.`,S,h,G=`One of the most commonly employed evaluation methods for TTS systems is conducting qualitative assessments using mean
opinion scores (MOS). MOS is a subjective scoring system that allows human evaluators to rate the perceived quality of
synthesized speech on a scale from 1 to 5. These scores are typically gathered through listening tests, where human
participants listen to and rate the synthesized speech samples.`,k,f,I=`One of the main reasons why objective metrics are challenging to develop for TTS evaluation is the subjective nature of
speech perception. Human listeners have diverse preferences and sensitivities to various aspects of speech, including
pronunciation, intonation, naturalness, and clarity. Capturing these perceptual nuances with a single numerical value
is a daunting task. At the same time, the subjectivity of the human evaluation makes it challenging to compare and
benchmark different TTS systems.`,j,d,R=`Furthermore, this kind of evaluation may overlook certain important aspects of speech synthesis, such as naturalness,
expressiveness, and emotional impact. These qualities are difficult to quantify objectively but are highly relevant in
applications where the synthesized speech needs to convey human-like qualities and evoke appropriate emotional responses.`,P,v,W=`In summary, evaluating text-to-speech models is a complex task due to the absence of one truly objective metric. The most common
evaluation method, mean opinion scores (MOS), relies on subjective human analysis. While MOS provides valuable insights
into the quality of synthesized speech, it also introduces variability and subjectivity.`,q,y,z,b,E;return m=new te({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),u=new ne({props:{title:"Evaluating text-to-speech models",local:"evaluating-text-to-speech-models",headingTag:"h1"}}),y=new ae({props:{source:"https://github.com/huggingface/audio-transformers-course/blob/main/chapters/en/chapter6/evaluation.mdx"}}),{c(){o=l("meta"),$=s(),x=l("p"),C=s(),M(m.$$.fragment),_=s(),M(u.$$.fragment),T=s(),p=l("p"),p.textContent=D,w=s(),c=l("p"),c.textContent=F,S=s(),h=l("p"),h.textContent=G,k=s(),f=l("p"),f.textContent=I,j=s(),d=l("p"),d.textContent=R,P=s(),v=l("p"),v.textContent=W,q=s(),M(y.$$.fragment),z=s(),b=l("p"),this.h()},l(e){const t=Z("svelte-u9bgzb",document.head);o=r(t,"META",{name:!0,content:!0}),t.forEach(n),$=i(e),x=r(e,"P",{}),J(x).forEach(n),C=i(e),O(m.$$.fragment,e),_=i(e),O(u.$$.fragment,e),T=i(e),p=r(e,"P",{"data-svelte-h":!0}),g(p)!=="svelte-5iywum"&&(p.textContent=D),w=i(e),c=r(e,"P",{"data-svelte-h":!0}),g(c)!=="svelte-okjap1"&&(c.textContent=F),S=i(e),h=r(e,"P",{"data-svelte-h":!0}),g(h)!=="svelte-dyvg0f"&&(h.textContent=G),k=i(e),f=r(e,"P",{"data-svelte-h":!0}),g(f)!=="svelte-yxq6zq"&&(f.textContent=I),j=i(e),d=r(e,"P",{"data-svelte-h":!0}),g(d)!=="svelte-1ytx6z6"&&(d.textContent=R),P=i(e),v=r(e,"P",{"data-svelte-h":!0}),g(v)!=="svelte-1no78bk"&&(v.textContent=W),q=i(e),O(y.$$.fragment,e),z=i(e),b=r(e,"P",{}),J(b).forEach(n),this.h()},h(){K(o,"name","hf:doc:metadata"),K(o,"content",ie)},m(e,t){ee(document.head,o),a(e,$,t),a(e,x,t),a(e,C,t),H(m,e,t),a(e,_,t),H(u,e,t),a(e,T,t),a(e,p,t),a(e,w,t),a(e,c,t),a(e,S,t),a(e,h,t),a(e,k,t),a(e,f,t),a(e,j,t),a(e,d,t),a(e,P,t),a(e,v,t),a(e,q,t),H(y,e,t),a(e,z,t),a(e,b,t),E=!0},p:Q,i(e){E||(A(m.$$.fragment,e),A(u.$$.fragment,e),A(y.$$.fragment,e),E=!0)},o(e){L(m.$$.fragment,e),L(u.$$.fragment,e),L(y.$$.fragment,e),E=!1},d(e){e&&(n($),n(x),n(C),n(_),n(T),n(p),n(w),n(c),n(S),n(h),n(k),n(f),n(j),n(d),n(P),n(v),n(q),n(z),n(b)),n(o),U(m,e),U(u,e),U(y,e)}}}const ie='{"title":"Evaluating text-to-speech models","local":"evaluating-text-to-speech-models","sections":[],"depth":1}';function oe(B){return V(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ue extends X{constructor(o){super(),Y(this,o,oe,se,N,{})}}export{ue as component};
