--- license: cc-by-4.0 language: - en base_model: - nvidia/stt_en_conformer_ctc_small pipeline_tag: automatic-speech-recognition tags: - loom - automatic-speech-recognition library_name: loom-py-rt --- # Conformer-CTC Small (en) NVIDIA NeMo's small Conformer-CTC English ASR model, exported for loom.cpp. This is a [loom.cpp](https://github.com/loom-ai-org/loom.cpp) export: a single self-describing GGUF that carries its own graph topologies, tokenizer (if any) and driver script, produced by [loom-exporter](https://github.com/loom-ai-org/loom-exporter). ## Original model Exported from [`nvidia/stt_en_conformer_ctc_small`](https://huggingface.co/nvidia/stt_en_conformer_ctc_small). Weights are unmodified; this repo packages the same parameters into loom.cpp's GGUF format. ## License `cc-by-4.0`, inherited from the base model above. ## Language(s) `en` ## Usage Run it with [loom-py](https://github.com/loom-ai-org/loom-py) -- `loom-py-rt` on PyPI: ```sh pip install -U "loom-py-rt[hub]>=1.0.0" ``` ```python import loom model = loom.Model.from_pretrained("loom-ai-org/conformer-ctc-small-loom") # Audio is a mono float list at 16 kHz. This model decodes in the one language it was trained for and # takes no `language=` argument -- passing one warns and is ignored, because nothing in its decode # could act on it. result = model.speech2text.infer(audio, timestamps=True) print(result.text) # It emits no timestamp tokens, so `segments` is one span covering the whole clip and # `result.timestamped` is False. Check that before treating a start/end as a boundary the model chose. for segment in result.segments: print(segment.start, segment.end, segment.text) ``` ### Streaming ```python # Live: push audio as it arrives -- here a second at a time, as a microphone would hand it over -- and # read the transcript as it grows. `update.revised` is True when earlier text changed (a model that # re-decodes as audio arrives); `finish()` decodes what is left. stream = model.speech2text.stream() step = 16000 # one second of audio for start in range(0, len(audio), step): update = stream.push(audio[start:start + step]) if update.delta: print(f"{update.seconds:5.1f} s {update.text}") print(stream.finish().text) ``` ### The layer underneath The call above is the high-level door: one per task, named for the modality pair it maps between, with the windowing, sampling and assembly this model needs already applied. Under it, `model.infer(...)` passes your arguments straight to the driver this GGUF embeds -- which is where you go for a knob the door does not name. `model.driver_source` prints that driver, including a header comment documenting every argument it accepts for this model, and is the authority on it. See [loom-py](https://github.com/loom-ai-org/loom-py) for the API and [loom.cpp](https://github.com/loom-ai-org/loom.cpp) for what the engine does between the two. ## Files - `conformer-ctc-small.gguf` -- the model, exported with loom-exporter.