parakeet-es 0.1.0: Spanish-locked decoding (es / es-MX / es-ES) for Parakeet TDT 0.6B v3
Browse filesFiles changed (12)
- LICENSEAdded+202
- NOTICEAdded+8
- README.mdAdded+106
- ejemplo.pyAdded+24
- eval/evaluar.pyAdded+153
- eval/frases.jsonAdded+32
- eval/resultados.jsonAdded+100
- parakeet_es/__init__.pyAdded+179
- parakeet_es/lexicon/es-ES.txtAdded+92
- parakeet_es/lexicon/es-MX.txtAdded+122
- parakeet_es/lexicon/es_tokens.jsonAdded+1
- pyproject.tomlAdded+22
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.12345678parakeet-esCopyright 2026 The parakeet-es contributors
This package contains only decoding code and Spanish word lists. It does NOT redistribute model weights.It is designed for NVIDIA Parakeet TDT 0.6B v3 (https://huggingface.co/nvidia/parakeet-tdt-0.6b-v3),licensed CC-BY-4.0 by NVIDIA. ONNX export by istupakov (https://huggingface.co/istupakov/parakeet-tdt-0.6b-v3-onnx),loaded through onnx-asr (https://github.com/istupakov/onnx-asr).Evaluation data: FLEURS (google/fleurs, CC-BY-4.0) and Multilingual LibriSpeech (facebook/multilingual_librispeech, CC-BY-4.0).123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106---license: apache-2.0language:- esbase_model: nvidia/parakeet-tdt-0.6b-v3pipeline_tag: automatic-speech-recognitiontags:- parakeet- spanish- es-MX- es-ES- onnx- speech-recognition- language-lock- hotwords---
# parakeet-es — Spanish-locked decoding for Parakeet TDT 0.6B v3
**Problem.** [NVIDIA Parakeet TDT 0.6B v3](https://huggingface.co/nvidia/parakeet-tdt-0.6b-v3) is multilingual(25 European languages) and detects the language on its own — there is no `language` input. On short orambiguous Spanish audio it sometimes drifts to another language:
| Audio (Spanish) | Parakeet v3 | parakeet-es ||---|---|---|| "Dale." (es-MX voice) | `Далее.` (Russian) | `Dale.` || "Ey, Paimón." | `Эй, пойман!` (Russian) | Spanish output only || "Oye." | `Oh yeah.` (English) | penalized: Spanish pieces preferred |
**Fix (no retraining, no new weights).** A thin layer over [onnx-asr](https://github.com/istupakov/onnx-asr)that changes *how tokens are chosen* in the TDT joint network:
1. **Alphabet lock** — 2,696 of 8,193 vocabulary pieces (Cyrillic, Greek and Latin letters not used in Spanish such as `ł š ø ç ß`) can never be emitted.2. **Spanish language prior** — pieces Parakeet never emits when transcribing real Spanish speech get a penalty (−4 logits by default), so ambiguous audio prefers Spanish pieces over English/Portuguese ones. The set of 2,336 "Spanish pieces" was measured on FLEURS es_419 test[150:900] and MLS Spanish test[150:1000] — **held out** from the evaluation below.3. **Hotwords** — names, brands and jargon you pass get a token-level prefix-trie boost (same idea as sherpa-onnx / NeMo word boosting).4. **Regional profiles `es-MX` / `es-ES`** *(experimental)* — word lists of places, institutions and regional vocabulary for Mexico and Spain, applied as light hotwords.
## Usage
```pythonpip install "onnx-asr[cpu,hub]" numpy# copy the parakeet_es/ folder next to your code (or pip install .)
import parakeet_esasr = parakeet_es.load("es", hotwords=["Paimón", "OpenClaw"]) # "es" | "es-MX" | "es-ES"print(asr.recognize(waveform_16k_float32))```
Options: `prior_penalty` (default 4.0), `hotword_boost` (5.0), `lexicon_boost` (3.0), `lock` (True),`quantization` ("int8"). Runs on CPU; on a Ryzen 7 5700X3D a 12 s clip takes ~0.45 s (int8).
## Results (reproducible: `python eval/evaluar.py --datos <data>`)
WER = word error rate (lowercase, punctuation removed). Drift = % of outputs containing non-Spanish letters.
| Config | FLEURS es_419 (150, human) | MLS Spanish (150, human) | Short phrases WER (180) | All phrases WER (270) | Drift ||---|---|---|---|---|---|| Parakeet v3 original | 3.24 % | 4.70 % | 24.44 % | 13.45 % | 0.37 % || parakeet-es `es` | **3.22 %** | **4.67 %** | 23.81 % | 13.55 % | **0 %** || parakeet-es `es-MX` | 3.27 % | **4.65 %** | 23.49 % | 13.35 % | **0 %** || parakeet-es `es-ES` | **3.22 %** | 4.70 % | **23.17 %** | **12.96 %** | **0 %** |
The phrase set = 30 phrases (20 very short ones like "Oye.", "Dale.", "¿Qué onda?") × 9 voices(Kokoro ×3, Piper es_MX ×2, Edge es-MX ×2, Edge es-ES ×2). With hotwords `["Paimón", "OpenClaw"]`these names went from 22 % to 44 % correct.
**Honest takeaways.**- On normal human Spanish, accuracy is unchanged (differences ≤ 0.05 pt) — the lock costs nothing.- Language drift goes to **0 %**. The original drifts rarely, but when it does the output is unusable.- Very short single words (< 0.8 s) remain hard for every model tested (Whisper small "es" scores the same).- The regional profiles did **not** clearly improve regional-word accuracy on this synthetic set (es-MX words: 84.6 % → 82.1 %, a 3-word difference). They are experimental; contributions with real es-MX / es-ES recordings are welcome.
## Limitations / next steps- This is decoding-time specialization. A true Spanish fine-tune (e.g. NeMo on Common Voice es, CIEMPIESS for es-MX) needs an NVIDIA GPU and is the natural next step.- English words said inside Spanish speech are penalized (not blocked); add them as hotwords if needed.
## Credits & licensesCode and word lists: Apache-2.0. Base model: NVIDIA Parakeet TDT 0.6B v3, CC-BY-4.0. ONNX export:[istupakov/parakeet-tdt-0.6b-v3-onnx](https://huggingface.co/istupakov/parakeet-tdt-0.6b-v3-onnx).Evaluation data: FLEURS (CC-BY-4.0), Multilingual LibriSpeech (CC-BY-4.0). This repo does notredistribute model weights.
---
## En español
**El problema:** Parakeet v3 entiende 25 idiomas y adivina el idioma solo. Con frases cortas en español aveces escribe en ruso ("Dale." → `Далее.`) o en inglés ("Oye." → `Oh yeah.`).
**La solución:** `parakeet-es` fija el decodificador al español, sin reentrenar:1. bloquea los fragmentos de otros alfabetos;2. penaliza los fragmentos que Parakeet nunca usa para escribir español;3. refuerza tus palabras propias (nombres, marcas);4. trae perfiles **es-MX** y **es-ES** (experimentales).
Resultado: la deriva a otro idioma baja a **0 %** y la precisión en español real queda igual (FLEURS 3.22 %,MLS 4.67 %). Ver la tabla de arriba.123456789101112131415161718192021222324"""Ejemplo / example: transcribir un WAV en español con parakeet-es.
pip install "onnx-asr[cpu,hub]" numpy soundfile python ejemplo.py audio.wav [es|es-MX|es-ES]"""import sys
import numpy as npimport soundfile as sf
import parakeet_es
ruta = sys.argv[1]variante = sys.argv[2] if len(sys.argv) > 2 else "es"
audio, sr = sf.read(ruta, dtype="float32")if audio.ndim > 1: audio = audio.mean(1)if sr != 16000: # remuestreo simple a 16 kHz n = int(len(audio) * 16000 / sr) audio = np.interp(np.linspace(0, len(audio) - 1, n), np.arange(len(audio)), audio).astype(np.float32)
asr = parakeet_es.load(variante, hotwords=["OpenClaw"]) # añade tus nombres propios aquíprint(asr.recognize(audio))123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153"""Evaluación reproducible de parakeet-es contra Parakeet TDT 0.6B v3 original.
Uso: python eval/evaluar.py --datos <carpeta> [--n 150]<carpeta> debe contener: sinteticas/<voz>/<id>.(wav|mp3) frases de eval/frases.json con varias voces parquet-data/es_419/test-*.parquet FLEURS es_419 (google/fleurs, voces humanas) spanish/test-*.parquet Multilingual LibriSpeech español (facebook/multilingual_librispeech)Métricas: WER (minúsculas, sin puntuación), % de deriva a otro alfabeto, aciertos en palabras regionales."""import argparseimport globimport ioimport jsonimport osimport reimport sysimport timeimport unicodedata
import numpy as npimport pyarrow.parquet as pqimport soundfile as sf
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))import onnx_asr # noqa: E402import parakeet_es # noqa: E402
SR = 16000AQUI = os.path.dirname(os.path.abspath(__file__))
def a16k(x, sr): if x.ndim > 1: x = x.mean(1) if sr != SR: n = int(len(x) * SR / sr) x = np.interp(np.linspace(0, len(x) - 1, n), np.arange(len(x)), x) return np.asarray(x, np.float32)
def leer_archivo(p): if p.endswith(".mp3"): import av c = av.open(p) r = av.AudioResampler(format="flt", layout="mono", rate=SR) out = [y.to_ndarray().reshape(-1) for fr in c.decode(audio=0) for y in r.resample(fr)] return np.concatenate(out).astype(np.float32) x, sr = sf.read(p, dtype="float32") return a16k(x, sr)
def normalizar(t): t = t.lower() t = re.sub(r"[¿?¡!.,;:\"«»“”()\[\]…\-—]", " ", t) return re.sub(r"\s+", " ", t).strip()
def errores(ref, hyp): r, h = normalizar(ref).split(), normalizar(hyp).split() d = list(range(len(h) + 1)) for i in range(1, len(r) + 1): prev, d[0] = d[0], i for j in range(1, len(h) + 1): prev, d[j] = d[j], min(d[j] + 1, d[j - 1] + 1, prev + (r[i - 1] != h[j - 1])) return d[len(h)], len(r)
ESPANOL = set("abcdefghijklmnopqrstuvwxyzáéíóúüñ")
def deriva(t): return any(ch.isalpha() and ch.lower() not in ESPANOL for ch in t)
def cargar(datos, n): conjuntos = {} frases = {f["id"]: f for f in json.load(open(os.path.join(AQUI, "frases.json"), encoding="utf-8"))} sint = [] for p in sorted(glob.glob(os.path.join(datos, "sinteticas", "*", "*.*"))): fid = int(os.path.splitext(os.path.basename(p))[0]) voz = os.path.basename(os.path.dirname(p)) sint.append({"audio": leer_archivo(p), "ref": frases[fid]["texto"], "tipo": frases[fid]["tipo"], "voz": voz}) conjuntos["frases (9 voces)"] = sint for nombre, patron, col in [("FLEURS es_419", "parquet-data/es_419/test-*.parquet", "transcription"), ("MLS español", "spanish/test-*.parquet", "transcript")]: archivos = sorted(glob.glob(os.path.join(datos, patron))) if not archivos: continue tabla = pq.read_table(archivos[0]).slice(0, n).to_pylist() filas = [] for f in tabla: x, sr = sf.read(io.BytesIO(f["audio"]["bytes"]), dtype="float32") filas.append({"audio": a16k(x, sr), "ref": f.get(col) or f.get("raw_transcription") or "", "tipo": "real"}) conjuntos[nombre] = filas return conjuntos
REGIONALES = {"es-MX": ["tianguis", "jitomate", "aguacate", "cuate", "culiacán", "neta", "güey", "celular", "chilaquiles", "pozole", "guadalajara", "sheinbaum", "ciudad de méxico"], "es-ES": ["tío", "aparca", "coche", "coge", "móvil", "vosotros", "tenéis", "madrid", "ordenador", "piso", "barcelona", "sevilla", "vale"]}
def main(): ap = argparse.ArgumentParser() ap.add_argument("--datos", required=True) ap.add_argument("--n", type=int, default=150) ap.add_argument("--salida", default=os.path.join(AQUI, "resultados.json")) a = ap.parse_args() conj = cargar(a.datos, a.n) print({k: len(v) for k, v in conj.items()}, flush=True) configs = [("Parakeet v3 original", None), ("parakeet-es (solo bloqueo)", "es"), ("parakeet-es es-MX", "es-MX"), ("parakeet-es es-ES", "es-ES")] res = {} for nombre, var in configs: modelo = onnx_asr.load_model("nemo-parakeet-tdt-0.6b-v3", quantization="int8") asr = modelo if var is None else parakeet_es.load(var, model=modelo) rec = (lambda w: modelo.recognize(w, sample_rate=SR)) if var is None else asr.recognize res[nombre] = {} for cnom, filas in conj.items(): e = n = der = 0 cortas_e = cortas_n = 0 hits = {"es-MX": [0, 0], "es-ES": [0, 0]} t0 = time.time() ejemplos = [] for f in filas: hyp = rec(f["audio"]) or "" ee, nn = errores(f["ref"], hyp) e += ee; n += nn; der += deriva(hyp) if f["tipo"] == "corta": cortas_e += ee; cortas_n += nn if f["tipo"] in hits: for w in REGIONALES[f["tipo"]]: if w in normalizar(f["ref"]): hits[f["tipo"]][1] += 1 hits[f["tipo"]][0] += w in normalizar(hyp) if deriva(hyp) and len(ejemplos) < 6: ejemplos.append({"ref": f["ref"], "hyp": hyp, "voz": f.get("voz", "")}) r = {"WER": round(100 * e / max(n, 1), 2), "deriva_%": round(100 * der / len(filas), 2), "seg": round(time.time() - t0, 1), "ejemplos_deriva": ejemplos} if cortas_n: r["WER_frases_cortas"] = round(100 * cortas_e / cortas_n, 2) for k, (h, t) in hits.items(): if t: r[f"aciertos_{k}_%"] = round(100 * h / t, 1) res[nombre][cnom] = r print(nombre, "|", cnom, "|", {k: v for k, v in r.items() if k != "ejemplos_deriva"}, flush=True) json.dump(res, open(a.salida, "w", encoding="utf-8"), ensure_ascii=False, indent=2) print("resultados ->", a.salida)
if __name__ == "__main__": main()1234567891011121314151617181920212223242526272829303132[ {"id": 1, "texto": "Ey, Paimón.", "tipo": "corta"}, {"id": 2, "texto": "Hola.", "tipo": "corta"}, {"id": 3, "texto": "Oye.", "tipo": "corta"}, {"id": 4, "texto": "Sí.", "tipo": "corta"}, {"id": 5, "texto": "No, gracias.", "tipo": "corta"}, {"id": 6, "texto": "¿Qué onda?", "tipo": "corta"}, {"id": 7, "texto": "Órale, va.", "tipo": "corta"}, {"id": 8, "texto": "Vale, perfecto.", "tipo": "corta"}, {"id": 9, "texto": "Buenos días.", "tipo": "corta"}, {"id": 10, "texto": "¿Me escuchas?", "tipo": "corta"}, {"id": 11, "texto": "Espera.", "tipo": "corta"}, {"id": 12, "texto": "Ya está.", "tipo": "corta"}, {"id": 13, "texto": "Ahorita no.", "tipo": "corta"}, {"id": 14, "texto": "Dale.", "tipo": "corta"}, {"id": 15, "texto": "¿Cómo estás?", "tipo": "corta"}, {"id": 16, "texto": "Pon música.", "tipo": "corta"}, {"id": 17, "texto": "Para.", "tipo": "corta"}, {"id": 18, "texto": "Otra vez.", "tipo": "corta"}, {"id": 19, "texto": "Perfecto, gracias.", "tipo": "corta"}, {"id": 20, "texto": "¿Qué hora es?", "tipo": "corta"}, {"id": 21, "texto": "Ahorita voy al tianguis a comprar jitomate y aguacate.", "tipo": "es-MX"}, {"id": 22, "texto": "Mi cuate de Culiacán me pasó la neta.", "tipo": "es-MX"}, {"id": 23, "texto": "Oye güey, ¿me prestas tu celular?", "tipo": "es-MX"}, {"id": 24, "texto": "Vamos a comer chilaquiles y pozole en Guadalajara.", "tipo": "es-MX"}, {"id": 25, "texto": "La presidenta Sheinbaum habló desde la Ciudad de México.", "tipo": "es-MX"}, {"id": 26, "texto": "Tío, aparca el coche y coge el móvil.", "tipo": "es-ES"}, {"id": 27, "texto": "Vosotros tenéis que venir a Madrid el sábado.", "tipo": "es-ES"}, {"id": 28, "texto": "El ordenador de mi piso en Barcelona no funciona.", "tipo": "es-ES"}, {"id": 29, "texto": "Quedamos en Sevilla a las ocho, ¿vale?", "tipo": "es-ES"}, {"id": 30, "texto": "Paimón, abre OpenClaw y revisa los pendientes.", "tipo": "nombres"}]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100{
"Parakeet v3 original": {
"frases (9 voces)": {
"WER": 13.45,
"deriva_%": 0.37,
"seg": 30.1,
"ejemplos_deriva": [
{
"ref": "Dale.",
"hyp": "Далее.",
"voz": "piper-es_MX-claude-high"
}
],
"WER_frases_cortas": 24.44,
"aciertos_es-MX_%": 84.6,
"aciertos_es-ES_%": 97.4
},
"FLEURS es_419": {
"WER": 3.24,
"deriva_%": 0.0,
"seg": 67.1,
"ejemplos_deriva": []
},
"MLS español": {
"WER": 4.7,
"deriva_%": 0.0,
"seg": 80.8,
"ejemplos_deriva": []
}
},
"parakeet-es (solo bloqueo)": {
"frases (9 voces)": {
"WER": 13.55,
"deriva_%": 0.0,
"seg": 29.6,
"ejemplos_deriva": [],
"WER_frases_cortas": 23.81,
"aciertos_es-MX_%": 84.6,
"aciertos_es-ES_%": 97.4
},
"FLEURS es_419": {
"WER": 3.22,
"deriva_%": 0.0,
"seg": 70.7,
"ejemplos_deriva": []
},
"MLS español": {
"WER": 4.67,
"deriva_%": 0.0,
"seg": 80.4,
"ejemplos_deriva": []
}
},
"parakeet-es es-MX": {
"frases (9 voces)": {
"WER": 13.35,
"deriva_%": 0.0,
"seg": 29.9,
"ejemplos_deriva": [],
"WER_frases_cortas": 23.49,
"aciertos_es-MX_%": 82.1,
"aciertos_es-ES_%": 97.4
},
"FLEURS es_419": {
"WER": 3.27,
"deriva_%": 0.0,
"seg": 69.4,
"ejemplos_deriva": []
},
"MLS español": {
"WER": 4.65,
"deriva_%": 0.0,
"seg": 83.6,
"ejemplos_deriva": []
}
},
"parakeet-es es-ES": {
"frases (9 voces)": {
"WER": 12.96,
"deriva_%": 0.0,
"seg": 32.8,
"ejemplos_deriva": [],
"WER_frases_cortas": 23.17,
"aciertos_es-MX_%": 85.5,
"aciertos_es-ES_%": 98.3
},
"FLEURS es_419": {
"WER": 3.22,
"deriva_%": 0.0,
"seg": 71.4,
"ejemplos_deriva": []
},
"MLS español": {
"WER": 4.7,
"deriva_%": 0.0,
"seg": 82.9,
"ejemplos_deriva": []
}
}
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179"""parakeet-es — Spanish-locked decoding for NVIDIA Parakeet TDT 0.6B v3 (es-MX / es-ES).
Parakeet TDT 0.6B v3 is multilingual (25 languages) and picks the language on its own; it has no
"language" input. On short or ambiguous Spanish audio it sometimes drifts to another language
(e.g. "Ey, Paimón" -> "Эй, пойман!"). This package fixes that at decoding time, without retraining:
1. Script/alphabet lock: tokens with Cyrillic/Greek letters or letters not used in Spanish
(ł, š, ø, ç, ß, ...) are removed from the joint-network output before the greedy choice.
2. Regional profiles (es-MX, es-ES): light contextual biasing ("hotwords") towards each variant's
vocabulary, with a token-level prefix trie (same idea as sherpa-onnx / NeMo word boosting).
3. Your own hotwords (names, brands, jargon) with a stronger boost.
Usage:
import parakeet_es
asr = parakeet_es.load("es-MX", hotwords=["Paimón", "OpenClaw"])
print(asr.recognize(waveform_16k_float32))
The base model weights are NVIDIA's (CC-BY-4.0); they are downloaded from Hugging Face by onnx-asr
(istupakov/parakeet-tdt-0.6b-v3-onnx). This package only changes how tokens are chosen.
"""
from __future__ import annotations
import os
import re
from dataclasses import dataclass, field
from pathlib import Path
import numpy as np
import onnx_asr
__version__ = "0.1.0"
__all__ = ["load", "SpanishParakeet", "LEXICON_DIR"]
LEXICON_DIR = Path(__file__).parent / "lexicon"
SPANISH_LETTERS = set("abcdefghijklmnopqrstuvwxyzáéíóúüñABCDEFGHIJKLMNOPQRSTUVWXYZÁÉÍÓÚÜÑ")
NEG = -1e9
def _token_is_spanish(tok: str) -> bool:
"""A token is allowed if every letter in it belongs to the Spanish alphabet."""
return all((not ch.isalpha()) or ch in SPANISH_LETTERS for ch in tok)
def _read_words(path: Path) -> list[str]:
if not path.exists():
return []
out = []
for line in path.read_text(encoding="utf-8").splitlines():
line = line.split("#", 1)[0].strip()
if line:
out.append(line)
return out
@dataclass
class _Trie:
children: dict[int, "_Trie"] = field(default_factory=dict)
boost: float = 0.0
class SpanishParakeet:
"""Wraps an onnx-asr Parakeet TDT v3 model and constrains its decoder to Spanish."""
def __init__(self, variant: str = "es-MX", hotwords: list[str] | None = None, *,
quantization: str | None = "int8", lexicon_boost: float = 3.0, hotword_boost: float = 5.0,
prior_penalty: float = 4.0, lock: bool = True, model=None):
if variant not in ("es-MX", "es-ES", "es"):
raise ValueError("variant must be 'es-MX', 'es-ES' or 'es'")
self.variant = variant
self.model = model or onnx_asr.load_model("nemo-parakeet-tdt-0.6b-v3", quantization=quantization)
self._asr = self.model.asr
vocab: dict[int, str] = self._asr._vocab
self._vocab_size = len(vocab)
self._blank = self._asr._blank_idx
# 1) alphabet lock
self._bias = np.zeros(self._vocab_size, np.float32)
if lock:
for i, tok in vocab.items():
if i != self._blank and not _token_is_spanish(tok):
self._bias[i] = NEG
self.blocked_tokens = int((self._bias <= NEG / 2).sum())
# 2) + 3) hotword trie
self._by_text = sorted(((t, i) for i, t in vocab.items() if self._bias[i] == 0 and i != self._blank),
key=lambda x: -len(x[0]))
self._root = _Trie()
self._depth = 1
self._vocab = vocab
self._start_ok: dict[int, bool] = {}
self._hotword_tokens: set[int] = set()
words: list[tuple[str, float]] = []
if variant != "es" and lexicon_boost > 0:
words += [(w, lexicon_boost) for w in _read_words(LEXICON_DIR / f"{variant}.txt")]
words += [(w, hotword_boost) for w in (hotwords or [])]
for w, b in words:
self.add_hotword(w, b)
# 4) Spanish language prior: tokens that Parakeet never emits when transcribing real Spanish
# speech (FLEURS es_419 + MLS Spanish, held out from the evaluation) get a penalty, so on
# ambiguous audio it prefers Spanish pieces over English/Portuguese ones ("Oye" vs "Oh yeah").
# Hotword pieces are exempt.
if prior_penalty > 0:
import json
used = set(json.loads((LEXICON_DIR / "es_tokens.json").read_text(encoding="utf-8"))["tokens_usados"])
exempt = self._hotword_tokens
for i in range(self._vocab_size):
if i != self._blank and self._bias[i] == 0 and i not in used and i not in exempt:
self._bias[i] = -prior_penalty
self.penalized_tokens = int(((self._bias < 0) & (self._bias > NEG / 2)).sum())
original = self._asr._decode
size = self._vocab_size
def _decode(prev_tokens, prev_state, encoder_out):
logits, step, state = original(prev_tokens, prev_state, encoder_out)
logits = logits[:size] + self._bias + self._bonus(prev_tokens)
return logits, step, state
self._asr._decode = _decode
# ------------------------------------------------------------------ hotwords
def _tokenize(self, text: str) -> list[int] | None:
"""Greedy longest-match tokenization over the (allowed) vocabulary."""
ids, pos = [], 0
while pos < len(text):
for tok, i in self._by_text:
if tok and text.startswith(tok, pos):
ids.append(i)
pos += len(tok)
break
else:
return None
return ids
def add_hotword(self, word: str, boost: float = 2.5) -> None:
forms = {word, word.lower(), word[:1].upper() + word[1:]}
for form in forms:
ids = self._tokenize(" " + form)
if not ids:
continue
self._start_ok[ids[0]] = len(self._vocab[ids[0]].strip()) >= 3
self._hotword_tokens.update(ids)
node = self._root
for i in ids:
node = node.children.setdefault(i, _Trie())
node.boost = max(node.boost, boost)
self._depth = max(self._depth, len(ids))
def _bonus(self, prev: list[int]) -> np.ndarray | float:
if not self._root.children:
return 0.0
bonus = np.zeros(self._vocab_size, np.float32)
# Partial matches in progress: boost their continuations (stronger, they are already likely).
for k in range(min(len(prev), self._depth), 0, -1):
node = self._root
for t in prev[-k:]:
node = node.children.get(t)
if node is None:
break
if node is not None and node.children:
for t, child in node.children.items():
bonus[t] = max(bonus[t], child.boost)
# Start of a new hotword: a smaller nudge, only for distinctive first pieces (>= 3 letters),
# so generic pieces like " c" or " de" are never pushed.
for t, child in self._root.children.items():
if self._start_ok.get(t):
bonus[t] = max(bonus[t], child.boost * 0.5)
return bonus
# ------------------------------------------------------------------ API
def recognize(self, waveform, sample_rate: int = 16000) -> str:
text = self.model.recognize(waveform, sample_rate=sample_rate) or ""
return re.sub(r"\s+", " ", text).strip()
def load(variant: str = "es-MX", hotwords: list[str] | None = None, **kwargs) -> SpanishParakeet:
"""Load Parakeet TDT 0.6B v3 locked to Spanish. variant: 'es-MX', 'es-ES' or 'es' (lock only)."""
return SpanishParakeet(variant, hotwords, **kwargs)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192# Perfil es-ES (español de España). Una palabra o frase por línea. "#" = comentario.# LugaresEspañaMadridBarcelonaValenciaSevillaZaragozaMálagaMurciaPalmaBilbaoAlicanteCórdobaValladolidVigoGijónGranadaVitoriaLa CoruñaSantanderPamplonaSalamancaToledoCádizAlmeríaHuelvaJaénAndalucíaCataluñaGaliciaAsturiasCantabriaPaís VascoEuskadiNavarraAragónExtremaduraCastilla y LeónCastilla-La ManchaComunidad ValencianaIslas BalearesCanariasTenerife# Instituciones y siglas frecuentesMoncloaRenfeAVESeguridad SocialHaciendaAyuntamientoGeneralitatXuntaPSOEVoxSumar# Vocabulario y formas de Españavosotrosvosotrashabéistenéisqueréispodéissabéishacéisvaissoisestáisvengaguaymolamolarcurrarcurrococheordenadormóvilzumogafaspisochavalchavalatíotíamajomajafliparquedadaaparcarneverapatatamelocotón123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122# Perfil es-MX (español de México). Una palabra o frase por línea. "#" = comentario.# LugaresMéxicoCiudad de MéxicoCDMXGuadalajaraMonterreyCuliacánSinaloaSonoraHermosilloChihuahuaCiudad JuárezTijuanaMexicaliEnsenadaOaxacaMichoacánMoreliaQuerétaroNuevo LeónCoahuilaSaltilloTorreónTamaulipasReynosaMatamorosVeracruzYucatánMéridaJaliscoGuanajuatoLeónPueblaChiapasTabascoVillahermosaQuintana RooCancúnAcapulcoGuerreroMazatlánZacatecasDurangoNayaritAguascalientesMorelosCuernavacaTlaxcalaHidalgoPachucaColimaCampecheBaja CaliforniaIztapalapaCoyoacánXochimilcoTlalpanEcatepecNezahualcóyotlTeotihuacán# Instituciones, marcas y siglas frecuentesPemexBanxicoIMSSISSSTEINESATCFEUNAMIPNTelcelOxxoBimboSheinbaumMorena# Mexicanismos y vocabulario regionalgüeyweychidochidapadrísimochambachambearnetaóraleándalehíjolechaleahoritamandecarrocelularcomputadoraalbercapopotecuatechavochavamorromorralanachelachilangogachofresatianguisabarrotesjitomateeloteaguacatechilaquilespozoletamalesbirriatlacoyoquesadillatortilleríacamióncoloniaalcaldíalicenciado1{"tokens_usados": [234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 330, 331, 332, 334, 335, 337, 339, 340, 341, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 373, 375, 376, 377, 378, 380, 381, 382, 384, 385, 387, 388, 393, 396, 398, 399, 401, 403, 404, 406, 407, 408, 409, 410, 411, 413, 414, 416, 417, 419, 423, 424, 425, 426, 427, 429, 430, 432, 433, 434, 436, 438, 439, 441, 442, 443, 444, 445, 446, 447, 450, 451, 452, 453, 454, 455, 458, 459, 460, 461, 462, 463, 465, 467, 468, 470, 471, 473, 474, 475, 477, 478, 479, 481, 483, 487, 488, 490, 491, 492, 493, 496, 497, 498, 499, 500, 501, 502, 503, 506, 507, 508, 509, 510, 513, 515, 516, 517, 518, 520, 521, 522, 525, 526, 527, 528, 530, 531, 532, 533, 534, 535, 538, 540, 544, 547, 548, 549, 551, 554, 555, 557, 558, 559, 560, 562, 566, 567, 569, 570, 571, 572, 575, 580, 581, 582, 584, 587, 588, 589, 590, 591, 592, 594, 596, 599, 601, 602, 603, 604, 606, 609, 612, 614, 615, 616, 617, 618, 620, 621, 623, 625, 626, 627, 628, 629, 630, 636, 637, 638, 640, 641, 642, 645, 646, 647, 649, 650, 651, 653, 654, 655, 657, 661, 663, 666, 667, 669, 673, 674, 677, 679, 681, 682, 683, 686, 687, 689, 691, 692, 693, 694, 695, 697, 698, 699, 700, 702, 705, 706, 707, 709, 711, 712, 714, 717, 720, 722, 724, 725, 726, 728, 730, 731, 732, 735, 736, 739, 743, 744, 746, 747, 748, 750, 751, 752, 756, 761, 762, 763, 766, 767, 768, 770, 772, 773, 774, 777, 778, 781, 785, 786, 787, 788, 790, 791, 793, 794, 795, 796, 797, 799, 800, 801, 808, 810, 811, 813, 815, 816, 818, 820, 821, 823, 825, 826, 830, 833, 835, 836, 837, 838, 839, 841, 844, 845, 847, 848, 849, 850, 852, 854, 855, 858, 860, 861, 864, 867, 868, 869, 870, 871, 873, 877, 878, 885, 890, 891, 892, 893, 894, 896, 898, 900, 901, 902, 907, 909, 910, 912, 913, 915, 916, 920, 923, 925, 926, 930, 931, 932, 934, 935, 936, 937, 939, 940, 941, 942, 946, 947, 949, 953, 954, 955, 956, 958, 959, 960, 961, 962, 963, 964, 967, 968, 971, 972, 973, 974, 977, 978, 979, 987, 990, 991, 992, 993, 994, 995, 996, 998, 999, 1001, 1002, 1003, 1004, 1005, 1006, 1013, 1015, 1018, 1020, 1021, 1025, 1026, 1027, 1028, 1030, 1037, 1038, 1039, 1042, 1043, 1044, 1046, 1047, 1049, 1050, 1055, 1060, 1062, 1065, 1066, 1067, 1071, 1073, 1075, 1078, 1080, 1082, 1083, 1085, 1087, 1091, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1104, 1105, 1106, 1107, 1108, 1110, 1111, 1112, 1113, 1114, 1116, 1117, 1118, 1119, 1122, 1124, 1129, 1131, 1132, 1134, 1135, 1136, 1139, 1140, 1141, 1143, 1145, 1147, 1149, 1150, 1154, 1155, 1156, 1158, 1161, 1163, 1165, 1171, 1172, 1175, 1177, 1182, 1185, 1186, 1188, 1192, 1196, 1197, 1199, 1200, 1202, 1204, 1205, 1208, 1210, 1211, 1212, 1214, 1219, 1221, 1224, 1226, 1227, 1228, 1230, 1231, 1232, 1236, 1238, 1239, 1242, 1245, 1249, 1252, 1255, 1257, 1258, 1262, 1265, 1267, 1272, 1276, 1279, 1280, 1283, 1286, 1287, 1288, 1290, 1291, 1292, 1293, 1300, 1303, 1305, 1306, 1307, 1308, 1309, 1310, 1311, 1313, 1314, 1316, 1317, 1321, 1325, 1330, 1331, 1333, 1334, 1343, 1344, 1345, 1352, 1353, 1354, 1355, 1356, 1358, 1360, 1361, 1364, 1371, 1372, 1375, 1376, 1377, 1378, 1380, 1382, 1386, 1387, 1389, 1397, 1400, 1401, 1402, 1404, 1406, 1407, 1410, 1413, 1419, 1423, 1424, 1427, 1428, 1429, 1430, 1438, 1439, 1441, 1442, 1444, 1446, 1447, 1449, 1455, 1458, 1462, 1468, 1469, 1472, 1474, 1475, 1478, 1481, 1488, 1489, 1490, 1491, 1492, 1496, 1500, 1501, 1503, 1504, 1506, 1507, 1512, 1514, 1516, 1519, 1520, 1521, 1522, 1526, 1529, 1531, 1533, 1534, 1535, 1537, 1538, 1544, 1546, 1550, 1551, 1553, 1557, 1558, 1560, 1562, 1565, 1569, 1571, 1574, 1575, 1576, 1577, 1580, 1584, 1585, 1588, 1592, 1594, 1595, 1597, 1599, 1600, 1602, 1605, 1607, 1609, 1611, 1614, 1615, 1616, 1617, 1619, 1622, 1623, 1625, 1627, 1628, 1630, 1634, 1635, 1637, 1639, 1645, 1648, 1649, 1650, 1654, 1657, 1661, 1662, 1668, 1671, 1672, 1673, 1676, 1677, 1683, 1692, 1694, 1695, 1698, 1700, 1702, 1705, 1706, 1708, 1711, 1714, 1715, 1720, 1721, 1722, 1729, 1734, 1736, 1740, 1741, 1742, 1743, 1745, 1746, 1748, 1755, 1758, 1760, 1763, 1764, 1765, 1767, 1769, 1776, 1777, 1780, 1783, 1784, 1787, 1790, 1796, 1802, 1803, 1804, 1805, 1808, 1810, 1811, 1815, 1817, 1822, 1824, 1831, 1834, 1837, 1838, 1841, 1843, 1844, 1847, 1849, 1855, 1865, 1866, 1870, 1871, 1873, 1874, 1875, 1876, 1885, 1887, 1892, 1895, 1896, 1898, 1901, 1902, 1903, 1905, 1908, 1909, 1911, 1912, 1915, 1917, 1922, 1924, 1928, 1932, 1933, 1936, 1937, 1938, 1940, 1942, 1943, 1944, 1945, 1948, 1951, 1955, 1958, 1962, 1963, 1969, 1970, 1971, 1973, 1975, 1976, 1979, 1980, 1981, 1983, 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 1997, 1999, 2001, 2002, 2003, 2007, 2008, 2010, 2011, 2013, 2014, 2015, 2018, 2019, 2023, 2024, 2032, 2034, 2037, 2038, 2041, 2047, 2050, 2059, 2060, 2061, 2067, 2081, 2084, 2086, 2090, 2092, 2093, 2095, 2099, 2100, 2102, 2103, 2104, 2105, 2106, 2107, 2112, 2116, 2117, 2119, 2124, 2125, 2128, 2130, 2131, 2133, 2136, 2138, 2139, 2142, 2146, 2150, 2154, 2156, 2163, 2164, 2167, 2176, 2177, 2178, 2181, 2182, 2187, 2190, 2193, 2195, 2199, 2204, 2206, 2207, 2209, 2212, 2214, 2216, 2217, 2218, 2221, 2223, 2228, 2235, 2240, 2247, 2248, 2249, 2251, 2259, 2263, 2265, 2267, 2268, 2269, 2270, 2275, 2281, 2282, 2283, 2286, 2294, 2296, 2299, 2300, 2301, 2315, 2321, 2325, 2333, 2336, 2337, 2338, 2340, 2342, 2345, 2346, 2347, 2352, 2354, 2356, 2360, 2361, 2363, 2368, 2369, 2374, 2375, 2377, 2385, 2386, 2387, 2388, 2391, 2392, 2398, 2400, 2402, 2405, 2409, 2410, 2412, 2414, 2416, 2417, 2420, 2425, 2426, 2428, 2430, 2431, 2432, 2433, 2434, 2436, 2440, 2445, 2448, 2453, 2456, 2457, 2465, 2472, 2479, 2482, 2484, 2487, 2488, 2490, 2491, 2492, 2497, 2506, 2507, 2510, 2514, 2520, 2528, 2531, 2532, 2536, 2538, 2543, 2546, 2551, 2558, 2572, 2586, 2587, 2589, 2591, 2592, 2594, 2596, 2602, 2603, 2614, 2618, 2621, 2626, 2631, 2632, 2633, 2636, 2637, 2638, 2641, 2642, 2646, 2647, 2649, 2651, 2652, 2655, 2657, 2660, 2663, 2665, 2670, 2675, 2677, 2681, 2683, 2692, 2698, 2701, 2705, 2708, 2711, 2716, 2719, 2729, 2731, 2734, 2737, 2739, 2742, 2744, 2750, 2756, 2761, 2762, 2763, 2766, 2767, 2776, 2782, 2785, 2789, 2790, 2794, 2795, 2802, 2807, 2810, 2811, 2813, 2817, 2818, 2819, 2820, 2824, 2825, 2828, 2833, 2835, 2839, 2841, 2849, 2862, 2863, 2866, 2867, 2868, 2870, 2871, 2872, 2874, 2875, 2876, 2880, 2881, 2882, 2890, 2893, 2897, 2901, 2902, 2914, 2915, 2916, 2928, 2929, 2930, 2934, 2935, 2941, 2943, 2945, 2946, 2951, 2955, 2959, 2961, 2965, 2967, 2968, 2969, 2978, 2983, 2990, 2994, 2997, 2999, 3001, 3005, 3007, 3008, 3010, 3018, 3019, 3020, 3024, 3031, 3032, 3036, 3038, 3043, 3046, 3048, 3053, 3054, 3058, 3063, 3066, 3067, 3072, 3074, 3075, 3076, 3078, 3079, 3081, 3083, 3086, 3087, 3091, 3093, 3098, 3099, 3104, 3105, 3110, 3111, 3127, 3132, 3133, 3135, 3136, 3137, 3139, 3143, 3144, 3145, 3151, 3158, 3160, 3162, 3164, 3165, 3166, 3168, 3172, 3175, 3191, 3199, 3205, 3207, 3208, 3213, 3219, 3220, 3222, 3224, 3230, 3232, 3233, 3234, 3236, 3240, 3242, 3244, 3246, 3249, 3251, 3252, 3253, 3257, 3258, 3261, 3263, 3266, 3267, 3268, 3271, 3273, 3279, 3281, 3282, 3283, 3291, 3293, 3294, 3297, 3303, 3304, 3305, 3315, 3322, 3325, 3326, 3329, 3341, 3344, 3345, 3346, 3354, 3360, 3364, 3370, 3379, 3384, 3389, 3392, 3393, 3398, 3401, 3406, 3408, 3413, 3415, 3416, 3421, 3422, 3425, 3427, 3429, 3430, 3435, 3439, 3441, 3442, 3448, 3453, 3456, 3458, 3459, 3463, 3468, 3473, 3474, 3476, 3477, 3480, 3483, 3488, 3489, 3490, 3497, 3498, 3502, 3506, 3521, 3523, 3526, 3532, 3533, 3535, 3544, 3545, 3551, 3552, 3553, 3557, 3561, 3565, 3567, 3568, 3571, 3573, 3578, 3587, 3588, 3591, 3594, 3596, 3603, 3608, 3609, 3610, 3616, 3618, 3621, 3623, 3630, 3631, 3634, 3638, 3642, 3644, 3657, 3658, 3661, 3663, 3672, 3682, 3683, 3688, 3691, 3694, 3699, 3702, 3703, 3704, 3707, 3712, 3714, 3717, 3720, 3725, 3727, 3729, 3731, 3737, 3738, 3740, 3741, 3750, 3752, 3754, 3755, 3762, 3766, 3770, 3776, 3780, 3783, 3793, 3797, 3800, 3806, 3819, 3822, 3825, 3829, 3831, 3837, 3840, 3841, 3847, 3849, 3858, 3862, 3863, 3865, 3870, 3871, 3875, 3879, 3882, 3883, 3889, 3890, 3891, 3893, 3899, 3900, 3902, 3907, 3909, 3911, 3921, 3927, 3928, 3929, 3931, 3932, 3947, 3948, 3949, 3955, 3964, 3968, 3988, 3989, 3991, 3993, 3995, 3997, 3999, 4003, 4009, 4015, 4016, 4017, 4020, 4023, 4024, 4027, 4031, 4040, 4042, 4047, 4059, 4060, 4061, 4063, 4069, 4073, 4074, 4076, 4079, 4084, 4089, 4097, 4110, 4112, 4113, 4119, 4133, 4141, 4147, 4152, 4153, 4157, 4158, 4161, 4163, 4168, 4173, 4174, 4175, 4181, 4183, 4184, 4185, 4186, 4190, 4191, 4194, 4202, 4207, 4210, 4211, 4214, 4215, 4216, 4218, 4222, 4225, 4226, 4232, 4238, 4239, 4244, 4245, 4249, 4254, 4270, 4273, 4280, 4285, 4286, 4287, 4288, 4289, 4291, 4293, 4294, 4304, 4318, 4324, 4327, 4334, 4337, 4347, 4348, 4351, 4357, 4358, 4366, 4368, 4374, 4377, 4387, 4388, 4391, 4397, 4399, 4407, 4408, 4414, 4415, 4419, 4420, 4424, 4425, 4429, 4431, 4445, 4447, 4457, 4458, 4467, 4479, 4485, 4488, 4491, 4497, 4498, 4507, 4514, 4520, 4537, 4538, 4539, 4546, 4557, 4558, 4562, 4569, 4571, 4572, 4575, 4577, 4586, 4599, 4602, 4604, 4609, 4611, 4615, 4617, 4620, 4626, 4635, 4639, 4640, 4641, 4646, 4654, 4656, 4659, 4662, 4664, 4665, 4666, 4668, 4669, 4671, 4678, 4679, 4688, 4690, 4701, 4705, 4707, 4714, 4736, 4737, 4738, 4740, 4742, 4748, 4749, 4750, 4758, 4764, 4769, 4772, 4776, 4779, 4782, 4791, 4796, 4798, 4804, 4813, 4820, 4823, 4824, 4825, 4828, 4831, 4840, 4841, 4844, 4850, 4853, 4856, 4867, 4870, 4873, 4885, 4886, 4890, 4892, 4899, 4902, 4903, 4906, 4913, 4919, 4920, 4922, 4924, 4934, 4942, 4962, 4963, 4967, 4973, 4979, 4983, 4986, 4989, 4990, 4997, 5006, 5011, 5012, 5015, 5019, 5021, 5023, 5025, 5030, 5032, 5035, 5039, 5042, 5044, 5045, 5047, 5048, 5050, 5056, 5057, 5059, 5065, 5070, 5073, 5074, 5076, 5083, 5090, 5093, 5096, 5102, 5104, 5107, 5112, 5118, 5130, 5131, 5133, 5134, 5142, 5151, 5157, 5162, 5167, 5170, 5177, 5178, 5182, 5183, 5197, 5211, 5214, 5217, 5223, 5225, 5229, 5234, 5239, 5241, 5243, 5256, 5264, 5270, 5278, 5282, 5286, 5289, 5290, 5300, 5304, 5305, 5333, 5334, 5335, 5339, 5340, 5347, 5355, 5356, 5357, 5361, 5370, 5371, 5373, 5376, 5389, 5390, 5393, 5397, 5399, 5400, 5403, 5421, 5426, 5430, 5438, 5442, 5443, 5445, 5449, 5451, 5455, 5463, 5464, 5467, 5471, 5477, 5485, 5486, 5502, 5512, 5514, 5522, 5528, 5529, 5532, 5533, 5545, 5546, 5551, 5572, 5579, 5589, 5595, 5602, 5615, 5620, 5624, 5625, 5626, 5627, 5634, 5641, 5643, 5665, 5667, 5673, 5675, 5684, 5685, 5690, 5715, 5729, 5734, 5735, 5737, 5748, 5749, 5751, 5752, 5756, 5758, 5759, 5767, 5769, 5770, 5771, 5775, 5778, 5781, 5782, 5790, 5798, 5817, 5825, 5826, 5828, 5830, 5833, 5837, 5841, 5844, 5855, 5859, 5860, 5867, 5871, 5883, 5884, 5889, 5892, 5893, 5901, 5902, 5910, 5912, 5925, 5927, 5928, 5930, 5940, 5947, 5955, 5958, 5964, 5967, 5968, 5970, 5972, 5977, 5979, 5986, 6006, 6016, 6018, 6021, 6029, 6030, 6031, 6039, 6040, 6046, 6049, 6060, 6064, 6071, 6083, 6101, 6113, 6114, 6125, 6127, 6128, 6130, 6137, 6146, 6152, 6162, 6165, 6166, 6170, 6172, 6176, 6185, 6192, 6193, 6195, 6196, 6199, 6204, 6205, 6208, 6211, 6213, 6220, 6222, 6226, 6227, 6233, 6236, 6256, 6261, 6266, 6273, 6276, 6284, 6286, 6291, 6300, 6303, 6312, 6314, 6317, 6336, 6345, 6346, 6347, 6348, 6360, 6366, 6371, 6373, 6379, 6382, 6385, 6392, 6395, 6397, 6401, 6403, 6405, 6408, 6415, 6437, 6441, 6448, 6452, 6458, 6462, 6467, 6474, 6476, 6480, 6481, 6485, 6487, 6501, 6504, 6509, 6518, 6525, 6529, 6531, 6537, 6541, 6544, 6546, 6548, 6560, 6567, 6591, 6597, 6601, 6607, 6613, 6615, 6618, 6620, 6622, 6626, 6627, 6650, 6652, 6694, 6697, 6709, 6710, 6711, 6712, 6718, 6720, 6727, 6729, 6750, 6754, 6762, 6774, 6777, 6783, 6785, 6790, 6794, 6796, 6799, 6817, 6838, 6851, 6856, 6858, 6864, 6868, 6869, 6874, 6878, 6885, 6888, 6891, 6894, 6896, 6911, 6914, 6916, 6917, 6919, 6929, 6935, 6947, 6957, 6973, 6981, 6982, 6983, 6990, 7000, 7005, 7006, 7019, 7022, 7027, 7032, 7034, 7049, 7055, 7059, 7078, 7079, 7092, 7096, 7100, 7102, 7103, 7109, 7117, 7118, 7123, 7125, 7132, 7134, 7136, 7140, 7144, 7152, 7154, 7160, 7161, 7167, 7174, 7192, 7194, 7198, 7201, 7202, 7203, 7210, 7222, 7224, 7226, 7236, 7237, 7248, 7249, 7253, 7265, 7268, 7272, 7274, 7275, 7276, 7283, 7285, 7286, 7293, 7294, 7299, 7308, 7312, 7315, 7319, 7324, 7327, 7329, 7331, 7337, 7344, 7345, 7348, 7351, 7353, 7367, 7371, 7385, 7387, 7392, 7393, 7409, 7410, 7414, 7417, 7423, 7427, 7430, 7431, 7436, 7445, 7447, 7449, 7450, 7452, 7456, 7457, 7464, 7466, 7476, 7477, 7479, 7486, 7492, 7495, 7496, 7498, 7501, 7509, 7510, 7516, 7524, 7526, 7527, 7539, 7550, 7562, 7578, 7580, 7589, 7590, 7596, 7598, 7606, 7607, 7608, 7614, 7615, 7619, 7625, 7632, 7639, 7645, 7666, 7669, 7672, 7675, 7677, 7688, 7689, 7696, 7697, 7703, 7707, 7712, 7717, 7721, 7723, 7728, 7731, 7762, 7775, 7777, 7778, 7779, 7785, 7789, 7790, 7808, 7816, 7821, 7829, 7830, 7842, 7863, 7864, 7865, 7866, 7867, 7868, 7869, 7870, 7871, 7872, 7873, 7874, 7875, 7876, 7877, 7878, 7879, 7880, 7881, 7882, 7883, 7884, 7886, 7888, 7893, 7894, 7898, 7906, 7910, 7918, 7920, 7923, 7924, 7931, 7934, 7936, 7937, 7942, 7945, 7946, 7947, 7948, 7950, 7956, 7959, 7960, 7963, 7964, 7965, 7966, 7968, 7969, 7970, 7980, 7987, 7989, 7990, 7991, 7992, 7995, 8019, 8033, 8040, 8047, 8066, 8091, 8132], "fuente": "FLEURS es_419 test[150:900] + MLS spanish test[150:1000]"}12345678910111213141516171819202122[project]name = "parakeet-es"version = "0.1.0"description = "Spanish-locked decoding (es-MX / es-ES) for NVIDIA Parakeet TDT 0.6B v3: no more drifting to Russian on short Spanish audio."readme = "README.md"requires-python = ">=3.10"license = { text = "Apache-2.0" }dependencies = ["onnx-asr[cpu,hub]>=0.12", "numpy"]keywords = ["asr", "speech-recognition", "spanish", "parakeet", "es-MX", "es-ES", "onnx"]
[project.optional-dependencies]eval = ["pyarrow", "soundfile", "av"]
[tool.setuptools]packages = ["parakeet_es"]
[tool.setuptools.package-data]parakeet_es = ["lexicon/*.txt"]
[build-system]requires = ["setuptools>=68"]build-backend = "setuptools.build_meta"LICENSEAdded+202
NOTICEAdded+8
README.mdAdded+106
ejemplo.pyAdded+24
eval/evaluar.pyAdded+153
eval/frases.jsonAdded+32
eval/resultados.jsonAdded+100
parakeet_es/__init__.pyAdded+179
parakeet_es/lexicon/es-ES.txtAdded+92
parakeet_es/lexicon/es-MX.txtAdded+122
parakeet_es/lexicon/es_tokens.jsonAdded+1
pyproject.tomlAdded+22