Registry / serialization / gruut-lang-es

gruut-lang-es

JSON →
library2.0.1pypypi✓ verified 79d ago

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.

pip install gruut-lang-es
INSTALL
IMPORT
SIG · GRUUT-LANG-ES
G
gruut-lang-es
serializationpythonv2.0.1
Install
8.9s avg
Import
Disk
145MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 147.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.9s · import 0.000s · 148MB
145MB installed
● package 145MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Path
from gruut_lang_es import Path
from gruut_lang_es import Gruut
get_lang_dir
from gruut_lang_es import get_lang_dir
from gruut_lang_es import Gruut
files
from gruut_lang_es import files
from gruut_lang_es import Gruut

Tokenize and phonemize Spanish text using gruut with the Spanish language pack. Ensures correct loading of Spanish data.

from gruut import Gruut text = "Hola, ¿cómo estás?" gruut = Gruut(lang="es") sentences = list(gruut.tokenize(text)) for sentence in sentences: for word in sentence: print(f"{word.text} -> {word.phonemes}")
Debug
Known issues
breakingVersion 2.0.0 introduced major API changes; the old sentence pattern and inline pronunciation system were removed.
fix
Update to use 'gruut.sentences' API and SSML for custom pronunciations.
affects: >=2.0.0,<3.0.0
deprecatedThe 'gruut_lang_es' module is not intended for direct import; always use 'gruut.Gruut' with lang='es'.
fix
Import Gruut from gruut core instead of attempting to import lang data directly.
affects: all
gotchaThe Spanish lang data package must be installed separately from gruut core. Many users forget to install it.
fix
Run 'pip install gruut-lang-es' after installing gruut.
affects: all
Upgrade
Version history
2.0.1latest on PyPI · released Jul 3, 2024
Audit
Dependencies
gruutrequiredCore library; lang data packages require gruut to be installed
Agent activity
8 hits · last 30 days
node
8
Resources
gruut-lang-es — pip install gruut-lang-es · libregistry