Skip to content

Commit

Permalink
Add ASR with TTS Tutorial. Fix enhancer usage. (#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 <[email protected]>
  • Loading branch information
artbataev authored and web-flow committed Jul 12, 2023
1 parent 40c1ccc commit 1a07b38
Show file tree
Hide file tree
Showing 3 changed files with 850 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/starthere/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ To run a tutorial:
- Multi-lingual ASR
- `Multi-lingual ASR <https://colab.research.google.com/github/NVIDIA/NeMo/blob/stable/tutorials/asr/Multilang_ASR.ipynb>`_
* - ASR
- Confidence-based Ensembles
- `Confidence-based Ensembles <https://colab.research.google.com/github/NVIDIA/NeMo/blob/stable/tutorials/asr/Confidence_Ensembles.ipynb>`_
- 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 1a07b38

Please sign in to comment.