nielsr HF staff peterloll commited on
Commit
26d3d1f
1 Parent(s): 6b1b5aa

Add missing import and add information on which pip packages are needed (#6)

Browse files

- Add missing import and add information on which pip packages are needed (7fe6f4dec89b322a57fc01840915a45f13bb2d4a)


Co-authored-by: XXX <peterloll@users.noreply.huggingface.co>

Files changed (1) hide show
  1. README.md +4 -0
README.md CHANGED
@@ -30,7 +30,11 @@ Extensive evaluations show the superiority of the proposed SpeechT5 framework on
30
  Use the code below to convert text into a mono 16 kHz speech waveform.
31
 
32
  ```python
 
 
 
33
  from transformers import SpeechT5Processor, SpeechT5ForTextToSpeech, SpeechT5HifiGan
 
34
  import torch
35
  import soundfile as sf
36
 
 
30
  Use the code below to convert text into a mono 16 kHz speech waveform.
31
 
32
  ```python
33
+ # Following pip packages need to be installed:
34
+ # !pip install git+https://github.com/huggingface/transformers sentencepiece datasets
35
+
36
  from transformers import SpeechT5Processor, SpeechT5ForTextToSpeech, SpeechT5HifiGan
37
+ from datasets import load_dataset
38
  import torch
39
  import soundfile as sf
40