key error

#2
by Yuras - opened

When I run colab notebook I got Key error -

**
2023-03-21 06:31:50.026 - OVOS - ovos_plugin_manager.g2p:create:98 - DEBUG - Loaded plugin dummy
2023-03-21 06:31:50.088 - OVOS - neon_tts_plugin_coqui:_init_model:174 - INFO - Initializing model for: en
Downloading model.pt: 100%
200M/200M [00:02<00:00, 78.2MB/s]

KeyError Traceback (most recent call last)
in
----> 1 coquiTTS = CoquiTTS()

24 frames
.TTS/tts/models/vits.py in
28 from TTS.tts.utils.synthesis import synthesis
29 from TTS.tts.utils.text.characters import BaseCharacters, _characters, _pad, _phonemes, _punctuations
---> 30 from TTS.tts.utils.text.tokenizer import TTSTokenizer
31 from TTS.tts.utils.visual import plot_alignment
32 from TTS.vocoder.models.hifigan_generator import HifiganGenerator

.TTS/tts/utils/text/tokenizer.py in
3 from TTS.tts.utils.text import cleaners
4 from TTS.tts.utils.text.characters import Graphemes, IPAPhonemes
----> 5 from TTS.tts.utils.text.phonemizers import DEF_LANG_TO_PHONEMIZER, get_phonemizer_by_name
6 from TTS.utils.generic_utils import get_import_path, import_class
7

/usr/local/lib/python3.9/dist-packages/torch/package/package_importer.py in _make_module(self, name, filename, is_package, parent)
367
368 code = self._compile_source(filename, mangled_filename)
--> 369 exec(code, ns)
370
371 return module

.TTS/tts/utils/text/phonemizers/init.py in
18
19 # Force default for some languages
---> 20 DEF_LANG_TO_PHONEMIZER["en"] = DEF_LANG_TO_PHONEMIZER["en-us"]
21
22 def get_phonemizer_by_name(name: str, **kwargs) -> BasePhonemizer:

KeyError: 'en-us'
**

How it is possible to resolve this error?

thank you!

(updated link to the colab notebook)

I'm getting the same error. Have you found a solution?

Sign up or log in to comment