{"id":21406,"library":"gruut-lang-de","title":"gruut-lang-de (German language files for gruut)","description":"Provides German (de) language data files for the gruut tokenizer and phonemizer library, including lexicons, grapheme-to-phoneme models, and text normalization rules. Version 2.0.1 is the latest standalone release; the overall gruut ecosystem is actively maintained with a recent v2.4.0 release. Install this package alongside the core `gruut` package to process German text.","status":"active","version":"2.0.1","language":"python","source_language":"en","source_url":"https://github.com/rhasspy/gruut","tags":["text-to-speech","phonemizer","german","gruut","tokenizer"],"install":[{"cmd":"pip install gruut-lang-de","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core library required for tokenization and phonemization","package":"gruut","optional":false}],"imports":[{"note":"Package structure changed in v2.0; language-specific data is now in separate packages.","wrong":"from gruut.lang.de import load_lexicon","symbol":"load_lexicon_de","correct":"from gruut_lang_de import load_lexicon_de"}],"quickstart":{"code":"import gruut\nfrom gruut_lang_de import load_lexicon_de\n\nsentences = gruut.sentences('Hallo Welt', lang='de', lexicon_loader=load_lexicon_de)\nfor sentence in sentences:\n    for word in sentence:\n        print(word.text, word.phonemes)","lang":"python","description":"Tokenize and phonemize a German sentence. Ensure both 'gruut' and 'gruut-lang-de' are installed."},"warnings":[{"fix":"Upgrade gruut to >=2.0 and install the appropriate gruut-lang-* packages. Replace calls like `gruut.tokenize()` with `gruut.sentences()`.","message":"In gruut v2.0, the API and CLI changed significantly. Language data is no longer bundled in core; you must install separate language packages (e.g., gruut-lang-en, gruut-lang-de). The primary entry point is now `gruut.sentences`.","severity":"breaking","affected_versions":"gruut <2.0"},{"fix":"Replace inline pronunciations with SSML `<phoneme>` or `<say-as>` elements.","message":"Inline pronunciations and custom formats like `<number>_<format>` were removed in gruut v2.0. Use SSML tags instead.","severity":"deprecated","affected_versions":"gruut >=2.0"},{"fix":"Use `from gruut_lang_de import load_lexicon_de` and pass `lexicon_loader=load_lexicon_de` when calling `gruut.sentences()`.","message":"German language data is not automatically registered when installing gruut-lang-de. You must explicitly pass the lexicon loader from gruut_lang_de to gruut.sentences.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install gruut-lang-de and use `from gruut_lang_de import load_lexicon_de`.","cause":"gruut v2.0+ moved language data to separate packages; importing from 'gruut.lang.de' no longer works.","error":"ModuleNotFoundError: No module named 'gruut.lang.de'"},{"fix":"Upgrade gruut to >=2.0: `pip install -U gruut`.","cause":"Using an older version of gruut (<2.0) that does not accept `lexicon_loader` parameter.","error":"TypeError: sentences() got an unexpected keyword argument 'lexicon_loader'"},{"fix":"Install gruut-lang-de and pass `lexicon_loader=load_lexicon_de` to `gruut.sentences()`.","cause":"Missing the gruut-lang-de package or not registering the lexicon loader.","error":"ValueError: Language 'de' not available. Available languages: ..."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}