{"id":21408,"library":"gruut-lang-es","title":"Gruut Spanish Language Data","description":"Spanish language data files for the gruut tokenizer and phonemizer. This package provides Spanish-specific lexicons, phoneme mappings, and grammar rules necessary for tokenizing and phonemizing Spanish text. Version 2.0.1 is the latest stable release.","status":"active","version":"2.0.1","language":"python","source_language":"en","source_url":"https://github.com/rhasspy/gruut","tags":["gruut","spanish","nlp","phonemizer","tokenizer","tts"],"install":[{"cmd":"pip install gruut-lang-es","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Core library; lang data packages require gruut to be installed","package":"gruut","optional":false}],"imports":[{"wrong":"from gruut_lang_es import Gruut","symbol":"Path","correct":"from gruut_lang_es import Path"},{"wrong":"from gruut_lang_es import Gruut","symbol":"get_lang_dir","correct":"from gruut_lang_es import get_lang_dir"},{"wrong":"from gruut_lang_es import Gruut","symbol":"files","correct":"from gruut_lang_es import files"}],"quickstart":{"code":"from gruut import Gruut\n\ntext = \"Hola, ¿cómo estás?\"\ngruut = Gruut(lang=\"es\")\nsentences = list(gruut.tokenize(text))\nfor sentence in sentences:\n    for word in sentence:\n        print(f\"{word.text} -> {word.phonemes}\")","lang":"python","description":"Tokenize and phonemize Spanish text using gruut with the Spanish language pack. Ensures correct loading of Spanish data."},"warnings":[{"fix":"Update to use 'gruut.sentences' API and SSML for custom pronunciations.","message":"Version 2.0.0 introduced major API changes; the old sentence pattern and inline pronunciation system were removed.","severity":"breaking","affected_versions":">=2.0.0,<3.0.0"},{"fix":"Import Gruut from gruut core instead of attempting to import lang data directly.","message":"The 'gruut_lang_es' module is not intended for direct import; always use 'gruut.Gruut' with lang='es'.","severity":"deprecated","affected_versions":"all"},{"fix":"Run 'pip install gruut-lang-es' after installing gruut.","message":"The Spanish lang data package must be installed separately from gruut core. Many users forget to install it.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.0.1':35 'data':4,7 'file':8 'grammar':25 'gruut':1,11,41 'languag':3,6 'latest':38 'lexicon':21 'map':23 'necessari':27 'nlp':43 'packag':16 'phonem':14,22,31,44 'provid':17 'releas':40 'rule':26 'spanish':2,5,19,32,42 'spanish-specif':18 'specif':20 'stabl':39 'text':33 'token':12,29,45 'tts':46 'version':34","created_at":"2026-04-27T16:59:44.095517+00:00","updated_at":"2026-04-27T16:59:44.095517+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.0.1","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/rhasspy/gruut","docs":null,"changelog":null,"pypi":"https://pypi.org/project/gruut-lang-es/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}