str20tbl commited on
Commit
956d8c0
·
1 Parent(s): 994e170
Files changed (1) hide show
  1. app.py +2 -29
app.py CHANGED
@@ -55,36 +55,10 @@ def predict(text, speaker):
55
  return (16000, speech)
56
 
57
 
58
- title = "SpeechT5: Speech Synthesis"
59
 
60
  description = """
61
- 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.
62
- By pre-training on text and speech at the same time, it learns unified representations for both, resulting in improved modeling capabilities.
63
- SpeechT5 can be fine-tuned for different speech tasks. This space demonstrates the <b>text-to-speech</b> (TTS) checkpoint for the English language.
64
- See also the <a href="https://huggingface.co/spaces/Matthijs/speecht5-asr-demo">speech recognition (ASR) demo</a>
65
- and the <a href="https://huggingface.co/spaces/Matthijs/speecht5-vc-demo">voice conversion demo</a>.
66
- Refer to <a href="https://colab.research.google.com/drive/1i7I5pzBcU3WDFarDnzweIj4-sVVoIUFJ">this Colab notebook</a> to learn how to fine-tune the SpeechT5 TTS model on your own dataset or language.
67
- <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
68
- HiFi-GAN vocoder. Because the model always applies random dropout, each attempt will give slightly different results.
69
- The <em>Surprise Me!</em> option creates a completely randomized speaker.
70
- """
71
-
72
- article = """
73
- <div style='margin:20px auto;'>
74
- <p>References: <a href="https://arxiv.org/abs/2110.07205">SpeechT5 paper</a> |
75
- <a href="https://github.com/microsoft/SpeechT5/">original GitHub</a> |
76
- <a href="https://huggingface.co/mechanicalsea/speecht5-tts">original weights</a></p>
77
- <pre>
78
- @article{Ao2021SpeechT5,
79
- title = {SpeechT5: Unified-Modal Encoder-Decoder Pre-training for Spoken Language Processing},
80
- 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},
81
- eprint={2110.07205},
82
- archivePrefix={arXiv},
83
- primaryClass={eess.AS},
84
- year={2021}
85
- }
86
- </pre>
87
- </div>
88
  """
89
 
90
  examples = [
@@ -110,6 +84,5 @@ gr.Interface(
110
  ],
111
  title=title,
112
  description=description,
113
- article=article,
114
  examples=examples,
115
  ).launch()
 
55
  return (16000, speech)
56
 
57
 
58
+ title = "Techiaith Finetune Microsoft/SpeechT5: Speech Synthesis"
59
 
60
  description = """
61
+ Lleisiau TTS microsoft_speech_T5_finetune_bu_tts_cy_en
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  """
63
 
64
  examples = [
 
84
  ],
85
  title=title,
86
  description=description,
 
87
  examples=examples,
88
  ).launch()