Skip to content

Commit

Permalink
Add ASR with TTS Tutorial. Fix enhancer usage. (NVIDIA#6955)
Browse files Browse the repository at this point in the history
* Add ASR with TTS Tutorial
* Fix enhancer usage

Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: zhehuaichen <dian.chenzhehuai@gmail.com>
  • Loading branch information
artbataev authored and zhehuaichen committed Oct 4, 2023
1 parent 5f48058 commit 9535418
Show file tree
Hide file tree
Showing 3 changed files with 851 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/starthere/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ To run a tutorial:
* - ASR
- Multi-lingual ASR
- `Multi-lingual ASR <https://colab.research.google.com/github/NVIDIA/NeMo/blob/stable/tutorials/asr/Multilang_ASR.ipynb>`_
* - ASR
- Hybrid ASR-TTS Models Tutorial
- `Multi-lingual ASR <https://colab.research.google.com/github/NVIDIA/NeMo/blob/stable/tutorials/asr/ASR_TTS_Tutorial.ipynb>`_
* - NLP
- Using Pretrained Language Models for Downstream Tasks
- `Pretrained Language Models for Downstream Tasks <https://colab.research.google.com/github/NVIDIA/NeMo/blob/stable/tutorials/nlp/01_Pretrained_Language_Models_for_Downstream_Tasks.ipynb>`_
Expand Down
2 changes: 2 additions & 0 deletions nemo/collections/asr/models/hybrid_asr_tts_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,10 @@ def from_pretrained_models(
)
)
else:
cfg = copy.deepcopy(cfg) # copy to avoid modifying original config
cfg.tts_model_path = f"{tts_model_path}"
cfg.asr_model_path = f"{asr_model_path}"
cfg.enhancer_model_path = f"{enhancer_model_path}" if enhancer_model_path is not None else None
return ASRWithTTSModel(cfg, trainer=trainer)

def __setattr__(self, name, value):
Expand Down
Loading

0 comments on commit 9535418

Please sign in to comment.