import{s as xe,n as ye,o as ke}from"../chunks/scheduler.f7e1785c.js";import{S as we,i as Se,g as l,s as a,r as M,A as $e,h as o,f as i,c as s,j as be,u as P,x as r,k as ve,y as Le,a as n,v as E,d as q,t as R,w as j}from"../chunks/index.9f8f0838.js";import{H as A}from"../chunks/Heading.6643a2f7.js";function Ce(ae){let c,V,_,z,u,I,h,se="Text-to-speech task (also called <em>speech synthesis</em>) comes with a range of challenges.",G,p,le=`First, just like in the previously discussed automatic speech recognition, the alignment between text and speech can be tricky.<br/>
However, unlike ASR, TTS is a <strong>one-to-many</strong> mapping problem, i.e. the same text can be synthesised in many different ways. Think about the diversity of voices and speaking styles in the speech you hear on a daily basis - each person has a different way of speaking the same sentence, but they are all valid and correct! Even different outputs (spectrograms or audio waveforms) can correspond to the same ground truth. The model has to learn to generate the correct duration and timing for each phoneme, word, or sentence which can be challenging,
especially for long and complex sentences.`,U,d,oe=`Next, there’s the long-distance dependency problem: language has a temporal aspect, and understanding the meaning of a
sentence often requires considering the context of surrounding words. Ensuring that the TTS model captures and retains
contextual information over long sequences is crucial for generating coherent and natural-sounding speech.`,J,f,re=`Finally, training TTS models typically requires pairs of text and corresponding speech recordings. On top of that, to ensure
the model can generate speech that sounds natural for various speakers and speaking styles, data should contain diverse and
representative speech samples from multiple speakers. Collecting such data is expensive, time-consuming and for some languages
is not feasible. You may think, why not just take a dataset designed for ASR (automatic speech recognition) and use it for
training a TTS model? Unfortunately, automated speech recognition (ASR) datasets are not the best option. The features that
make it beneficial for ASR, such as excessive background noise, are typically undesirable in TTS. It’s great to be able to
pick out speach from a noisy street recording, but not so much if your voice assistant replies to you with cars honking
and construction going full-swing in the background. Still, some ASR datasets can sometimes be useful for fine-tuning,
as finding top-quality, multilingual, and multi-speaker TTS datasets can be quite challenging.`,K,g,ce="Let’s explore a few datasets suitable for TTS that you can find on the 🤗 Hub.",F,m,B,T,ue=`<a href="https://huggingface.co/datasets/lj_speech" rel="nofollow">LJSpeech</a> is a dataset that consists of 13,100 English-language audio clips
paired with their corresponding transcriptions. The dataset contains recording of a single speaker reading sentences
from 7 non-fiction books in English. LJSpeech is often used as a benchmark for evaluating TTS models
due to its high audio quality and diverse linguistic content.`,D,b,N,v,he=`<a href="https://huggingface.co/datasets/facebook/multilingual_librispeech" rel="nofollow">Multilingual LibriSpeech</a> is a multilingual extension
of the LibriSpeech dataset, which is a large-scale collection of read English-language audiobooks. Multilingual LibriSpeech
expands on this by including additional languages, such as German, Dutch, Spanish, French, Italian, Portuguese, and Polish.
It offers audio recordings along with aligned transcriptions for each language. The dataset provides a valuable resource
for developing multilingual TTS systems and exploring cross-lingual speech synthesis techniques.`,O,x,Y,y,pe=`<a href="https://huggingface.co/datasets/vctk" rel="nofollow">VCTK</a> is a dataset specifically designed for text-to-speech research and development.
It contains audio recordings of 110 English speakers with various accents. Each speaker reads out about 400 sentences,
which were selected from a newspaper, the rainbow passage and an elicitation paragraph used for the speech accent archive.
VCTK offers a valuable resource for training TTS models with varied voices and accents, enabling more natural and diverse
speech synthesis.`,Z,k,Q,w,de=`<a href="https://huggingface.co/datasets/cdminix/libritts-r-aligned" rel="nofollow">Libri-TTS/ LibriTTS-R</a> is a multi-speaker English corpus of
approximately 585 hours of read English speech at 24kHz sampling rate, prepared by Heiga Zen with the assistance of Google
Speech and Google Brain team members. The LibriTTS corpus is designed for TTS research. It is derived from the original
materials (mp3 audio files from LibriVox and text files from Project Gutenberg) of the LibriSpeech corpus. The main
differences from the LibriSpeech corpus are listed below:`,W,S,fe="<li>The audio files are at 24kHz sampling rate.</li> <li>The speech is split at sentence breaks.</li> <li>Both original and normalized texts are included.</li> <li>Contextual information (e.g., neighbouring sentences) can be extracted.</li> <li>Utterances with significant background noise are excluded.</li>",X,$,ge="Assembling a good dataset for TTS is no easy task as such dataset would have to possess several key characteristics:",ee,L,me="<li>High-quality and diverse recordings that cover a wide range of speech patterns, accents, languages, and emotions. The recordings should be clear, free from background noise, and exhibit natural speech characteristics.</li> <li>Transcriptions: Each audio recording should be accompanied by its corresponding text transcription.</li> <li>Variety of linguistic content: The dataset should contain a diverse range of linguistic content, including different types of sentences, phrases, and words. It should cover various topics, genres, and domains to ensure the model’s ability to handle different linguistic contexts.</li>",te,C,Te=`Good news is, it is unlikely that you would have to train a TTS model from scratch. In the next section we’ll look into
pre-trained models available on the 🤗 Hub.`,ie,H,ne;return u=new A({props:{title:"Text-to-speech datasets",local:"text-to-speech-datasets",headingTag:"h1"}}),m=new A({props:{title:"LJSpeech",local:"ljspeech",headingTag:"h2"}}),b=new A({props:{title:"Multilingual LibriSpeech",local:"multilingual-librispeech",headingTag:"h2"}}),x=new A({props:{title:"VCTK (Voice Cloning Toolkit)",local:"vctk-voice-cloning-toolkit",headingTag:"h2"}}),k=new A({props:{title:"Libri-TTS/ LibriTTS-R",local:"libri-tts-libritts-r",headingTag:"h2"}}),{c(){c=l("meta"),V=a(),_=l("p"),z=a(),M(u.$$.fragment),I=a(),h=l("p"),h.innerHTML=se,G=a(),p=l("p"),p.innerHTML=le,U=a(),d=l("p"),d.textContent=oe,J=a(),f=l("p"),f.textContent=re,K=a(),g=l("p"),g.textContent=ce,F=a(),M(m.$$.fragment),B=a(),T=l("p"),T.innerHTML=ue,D=a(),M(b.$$.fragment),N=a(),v=l("p"),v.innerHTML=he,O=a(),M(x.$$.fragment),Y=a(),y=l("p"),y.innerHTML=pe,Z=a(),M(k.$$.fragment),Q=a(),w=l("p"),w.innerHTML=de,W=a(),S=l("ul"),S.innerHTML=fe,X=a(),$=l("p"),$.textContent=ge,ee=a(),L=l("ul"),L.innerHTML=me,te=a(),C=l("p"),C.textContent=Te,ie=a(),H=l("p"),this.h()},l(e){const t=$e("svelte-u9bgzb",document.head);c=o(t,"META",{name:!0,content:!0}),t.forEach(i),V=s(e),_=o(e,"P",{}),be(_).forEach(i),z=s(e),P(u.$$.fragment,e),I=s(e),h=o(e,"P",{"data-svelte-h":!0}),r(h)!=="svelte-z6r8q5"&&(h.innerHTML=se),G=s(e),p=o(e,"P",{"data-svelte-h":!0}),r(p)!=="svelte-ey4ks9"&&(p.innerHTML=le),U=s(e),d=o(e,"P",{"data-svelte-h":!0}),r(d)!=="svelte-l4mvtu"&&(d.textContent=oe),J=s(e),f=o(e,"P",{"data-svelte-h":!0}),r(f)!=="svelte-7lz037"&&(f.textContent=re),K=s(e),g=o(e,"P",{"data-svelte-h":!0}),r(g)!=="svelte-1iermkw"&&(g.textContent=ce),F=s(e),P(m.$$.fragment,e),B=s(e),T=o(e,"P",{"data-svelte-h":!0}),r(T)!=="svelte-1a5eqv7"&&(T.innerHTML=ue),D=s(e),P(b.$$.fragment,e),N=s(e),v=o(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-b09uew"&&(v.innerHTML=he),O=s(e),P(x.$$.fragment,e),Y=s(e),y=o(e,"P",{"data-svelte-h":!0}),r(y)!=="svelte-1hzutj7"&&(y.innerHTML=pe),Z=s(e),P(k.$$.fragment,e),Q=s(e),w=o(e,"P",{"data-svelte-h":!0}),r(w)!=="svelte-97018c"&&(w.innerHTML=de),W=s(e),S=o(e,"UL",{"data-svelte-h":!0}),r(S)!=="svelte-14kma4g"&&(S.innerHTML=fe),X=s(e),$=o(e,"P",{"data-svelte-h":!0}),r($)!=="svelte-19vpf29"&&($.textContent=ge),ee=s(e),L=o(e,"UL",{"data-svelte-h":!0}),r(L)!=="svelte-i4kcdr"&&(L.innerHTML=me),te=s(e),C=o(e,"P",{"data-svelte-h":!0}),r(C)!=="svelte-1uxfg47"&&(C.textContent=Te),ie=s(e),H=o(e,"P",{}),be(H).forEach(i),this.h()},h(){ve(c,"name","hf:doc:metadata"),ve(c,"content",_e)},m(e,t){Le(document.head,c),n(e,V,t),n(e,_,t),n(e,z,t),E(u,e,t),n(e,I,t),n(e,h,t),n(e,G,t),n(e,p,t),n(e,U,t),n(e,d,t),n(e,J,t),n(e,f,t),n(e,K,t),n(e,g,t),n(e,F,t),E(m,e,t),n(e,B,t),n(e,T,t),n(e,D,t),E(b,e,t),n(e,N,t),n(e,v,t),n(e,O,t),E(x,e,t),n(e,Y,t),n(e,y,t),n(e,Z,t),E(k,e,t),n(e,Q,t),n(e,w,t),n(e,W,t),n(e,S,t),n(e,X,t),n(e,$,t),n(e,ee,t),n(e,L,t),n(e,te,t),n(e,C,t),n(e,ie,t),n(e,H,t),ne=!0},p:ye,i(e){ne||(q(u.$$.fragment,e),q(m.$$.fragment,e),q(b.$$.fragment,e),q(x.$$.fragment,e),q(k.$$.fragment,e),ne=!0)},o(e){R(u.$$.fragment,e),R(m.$$.fragment,e),R(b.$$.fragment,e),R(x.$$.fragment,e),R(k.$$.fragment,e),ne=!1},d(e){e&&(i(V),i(_),i(z),i(I),i(h),i(G),i(p),i(U),i(d),i(J),i(f),i(K),i(g),i(F),i(B),i(T),i(D),i(N),i(v),i(O),i(Y),i(y),i(Z),i(Q),i(w),i(W),i(S),i(X),i($),i(ee),i(L),i(te),i(C),i(ie),i(H)),i(c),j(u,e),j(m,e),j(b,e),j(x,e),j(k,e)}}}const _e='{"title":"Text-to-speech datasets","local":"text-to-speech-datasets","sections":[{"title":"LJSpeech","local":"ljspeech","sections":[],"depth":2},{"title":"Multilingual LibriSpeech","local":"multilingual-librispeech","sections":[],"depth":2},{"title":"VCTK (Voice Cloning Toolkit)","local":"vctk-voice-cloning-toolkit","sections":[],"depth":2},{"title":"Libri-TTS/ LibriTTS-R","local":"libri-tts-libritts-r","sections":[],"depth":2}],"depth":1}';function He(ae){return ke(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class qe extends we{constructor(c){super(),Se(this,c,He,Ce,xe,{})}}export{qe as component};
