import{s as J,n as K,o as N}from"../chunks/scheduler.f7e1785c.js";import{S as Q,i as V,g as l,s,r as B,A as X,h as r,f as n,c as i,j as D,u as F,x as y,k as G,y as Y,a,v as I,d as L,t as R,w as W}from"../chunks/index.9f8f0838.js";import{H as Z,E as ee}from"../chunks/EditOnGithub.5a9bb8c5.js";function te(E){let o,b,g,_,m,C,u,z=`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.`,$,c,M=`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.`,w,p,O=`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.`,T,h,A=`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.`,S,d,H=`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.`,k,f,U=`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.`,j,v,P,x,q;return m=new Z({props:{title:"Evaluating text-to-speech models",local:"evaluating-text-to-speech-models",headingTag:"h1"}}),v=new ee({props:{source:"https://github.com/huggingface/audio-transformers-course/blob/main/chapters/en/chapter6/evaluation.mdx"}}),{c(){o=l("meta"),b=s(),g=l("p"),_=s(),B(m.$$.fragment),C=s(),u=l("p"),u.textContent=z,$=s(),c=l("p"),c.textContent=M,w=s(),p=l("p"),p.textContent=O,T=s(),h=l("p"),h.textContent=A,S=s(),d=l("p"),d.textContent=H,k=s(),f=l("p"),f.textContent=U,j=s(),B(v.$$.fragment),P=s(),x=l("p"),this.h()},l(e){const t=X("svelte-u9bgzb",document.head);o=r(t,"META",{name:!0,content:!0}),t.forEach(n),b=i(e),g=r(e,"P",{}),D(g).forEach(n),_=i(e),F(m.$$.fragment,e),C=i(e),u=r(e,"P",{"data-svelte-h":!0}),y(u)!=="svelte-5iywum"&&(u.textContent=z),$=i(e),c=r(e,"P",{"data-svelte-h":!0}),y(c)!=="svelte-okjap1"&&(c.textContent=M),w=i(e),p=r(e,"P",{"data-svelte-h":!0}),y(p)!=="svelte-dyvg0f"&&(p.textContent=O),T=i(e),h=r(e,"P",{"data-svelte-h":!0}),y(h)!=="svelte-yxq6zq"&&(h.textContent=A),S=i(e),d=r(e,"P",{"data-svelte-h":!0}),y(d)!=="svelte-1ytx6z6"&&(d.textContent=H),k=i(e),f=r(e,"P",{"data-svelte-h":!0}),y(f)!=="svelte-1no78bk"&&(f.textContent=U),j=i(e),F(v.$$.fragment,e),P=i(e),x=r(e,"P",{}),D(x).forEach(n),this.h()},h(){G(o,"name","hf:doc:metadata"),G(o,"content",ne)},m(e,t){Y(document.head,o),a(e,b,t),a(e,g,t),a(e,_,t),I(m,e,t),a(e,C,t),a(e,u,t),a(e,$,t),a(e,c,t),a(e,w,t),a(e,p,t),a(e,T,t),a(e,h,t),a(e,S,t),a(e,d,t),a(e,k,t),a(e,f,t),a(e,j,t),I(v,e,t),a(e,P,t),a(e,x,t),q=!0},p:K,i(e){q||(L(m.$$.fragment,e),L(v.$$.fragment,e),q=!0)},o(e){R(m.$$.fragment,e),R(v.$$.fragment,e),q=!1},d(e){e&&(n(b),n(g),n(_),n(C),n(u),n($),n(c),n(w),n(p),n(T),n(h),n(S),n(d),n(k),n(f),n(j),n(P),n(x)),n(o),W(m,e),W(v,e)}}}const ne='{"title":"Evaluating text-to-speech models","local":"evaluating-text-to-speech-models","sections":[],"depth":1}';function ae(E){return N(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class le extends Q{constructor(o){super(),V(this,o,ae,te,J,{})}}export{le as component};
