dla9944 commited on
Commit
a97741d
โ€ข
1 Parent(s): e9ac69a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -1
app.py CHANGED
@@ -59,6 +59,35 @@ def predict(text, speaker):
59
 
60
  title = "SpeechT5: Speech Synthesis"
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
 
63
  examples = [
64
  ["It is not in the stars to hold our destiny but in ourselves.", "BDL (male)"],
@@ -90,4 +119,4 @@ gr.Interface(
90
  description=description,
91
  article=article,
92
  examples=examples,
93
- ).launch()
 
59
 
60
  title = "SpeechT5: Speech Synthesis"
61
 
62
+ description = """
63
+ The <b>SpeechT5</b> model is pre-trained on text as well as speech inputs, with targets that are also a mix of text and speech.
64
+ By pre-training on text and speech at the same time, it learns unified representations for both, resulting in improved modeling capabilities.
65
+ SpeechT5 can be fine-tuned for different speech tasks. This space demonstrates the <b>text-to-speech</b> (TTS) checkpoint for the English language.
66
+ See also the <a href="https://huggingface.co/spaces/Matthijs/speecht5-asr-demo">speech recognition (ASR) demo</a>
67
+ and the <a href="https://huggingface.co/spaces/Matthijs/speecht5-vc-demo">voice conversion demo</a>.
68
+ <b>How to use:</b> Enter some English text and choose a speaker. The output is a mel spectrogram, which is converted to a mono 16 kHz waveform by the
69
+ HiFi-GAN vocoder. Because the model always applies random dropout, each attempt will give slightly different results.
70
+ The <em>Surprise Me!</em> option creates a completely randomized speaker.
71
+ """
72
+
73
+ article = """
74
+ <div style='margin:20px auto;'>
75
+ <p>References: <a href="https://arxiv.org/abs/2110.07205">SpeechT5 paper</a> |
76
+ <a href="https://github.com/microsoft/SpeechT5/">original GitHub</a> |
77
+ <a href="https://huggingface.co/mechanicalsea/speecht5-tts">original weights</a></p>
78
+ <pre>
79
+ @article{Ao2021SpeechT5,
80
+ title = {SpeechT5: Unified-Modal Encoder-Decoder Pre-training for Spoken Language Processing},
81
+ author = {Junyi Ao and Rui Wang and Long Zhou and Chengyi Wang and Shuo Ren and Yu Wu and Shujie Liu and Tom Ko and Qing Li and Yu Zhang and Zhihua Wei and Yao Qian and Jinyu Li and Furu Wei},
82
+ eprint={2110.07205},
83
+ archivePrefix={arXiv},
84
+ primaryClass={eess.AS},
85
+ year={2021}
86
+ }
87
+ </pre>
88
+ <p>Speaker embeddings were generated from <a href="http://www.festvox.org/cmu_arctic/">CMU ARCTIC</a> using <a href="https://huggingface.co/mechanicalsea/speecht5-vc/blob/main/manifest/utils/prep_cmu_arctic_spkemb.py">this script</a>.</p>
89
+ </div>
90
+ """
91
 
92
  examples = [
93
  ["It is not in the stars to hold our destiny but in ourselves.", "BDL (male)"],
 
119
  description=description,
120
  article=article,
121
  examples=examples,
122
+ ).launch()