Text-to-Speech
Fairseq
Chinese
audio
tiansz commited on
Commit
588532e
1 Parent(s): d53bcc4

Update README.md

Browse files

The original code has a small problem, I made a slight change, run the notebook as follows:https://www.kaggle.com/code/tiansztianszs/facebook-tts-transformer-zh-cv7-css10/notebook

Files changed (1) hide show
  1. README.md +6 -2
README.md CHANGED
@@ -21,7 +21,11 @@ widget:
21
  - Pre-trained on [Common Voice v7](https://commonvoice.mozilla.org/en/datasets), fine-tuned on [CSS10](https://github.com/Kyubyong/css10)
22
 
23
  ## Usage
24
-
 
 
 
 
25
  ```python
26
  from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub
27
  from fairseq.models.text_to_speech.hub_interface import TTSHubInterface
@@ -34,7 +38,7 @@ models, cfg, task = load_model_ensemble_and_task_from_hf_hub(
34
  )
35
  model = models[0]
36
  TTSHubInterface.update_cfg_with_data_cfg(cfg, task.data_cfg)
37
- generator = task.build_generator(model, cfg)
38
 
39
  text = "您好,这是试运行。"
40
 
 
21
  - Pre-trained on [Common Voice v7](https://commonvoice.mozilla.org/en/datasets), fine-tuned on [CSS10](https://github.com/Kyubyong/css10)
22
 
23
  ## Usage
24
+ First you need to install the following dependencies:
25
+ ```
26
+ !pip install fairseq hanziconv g2pc
27
+ ```
28
+ Then run the following code:
29
  ```python
30
  from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub
31
  from fairseq.models.text_to_speech.hub_interface import TTSHubInterface
 
38
  )
39
  model = models[0]
40
  TTSHubInterface.update_cfg_with_data_cfg(cfg, task.data_cfg)
41
+ generator = task.build_generator([model], cfg)
42
 
43
  text = "您好,这是试运行。"
44