Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ASR with TTS Tutorial. Fix enhancer usage. #6955

Merged
merged 7 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading