Automatic Speech Recognition
NeMo
Norwegian
Norwegian Bokmål
Norwegian Nynorsk
speech
audio
fastconformer
tdt
norwegian
bokmål
nynorsk
Run this model with HF Jobs
Run KlangAI/pianissimo-no on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/KlangAI/pianissimo-no. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/KlangAI/pianissimo-no on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use KlangAI/pianissimo-no with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use KlangAI/pianissimo-no with NeMo:
import nemo.collections.asr as nemo_asr asr_model = nemo_asr.models.ASRModel.from_pretrained("KlangAI/pianissimo-no") transcriptions = asr_model.transcribe(["file.wav"]) - Notebooks
- Google Colab
- Kaggle
|
Download README.md from KlangAI/pianissimo-no: direct link, hf CLI and curl.
- Browser
- Download file 9.83 kB
-
https://huggingface.co/KlangAI/pianissimo-no/resolve/main/README.md
- Command line
-
hf download hf://KlangAI/pianissimo-no/README.md
-
curl -L -o README.md https://huggingface.co/KlangAI/pianissimo-no/resolve/main/README.md
9.83 kB
| language: | |
| - no | |
| - nb | |
| - nn | |
| license: cc-by-4.0 | |
| pipeline_tag: automatic-speech-recognition | |
| library_name: nemo | |
| base_model: nvidia/parakeet-tdt-0.6b-v3 | |
| base_model_relation: finetune | |
| tags: | |
| - speech | |
| - audio | |
| - fastconformer | |
| - tdt | |
| - norwegian | |
| - bokmål | |
| - nynorsk | |
| metrics: | |
| - wer | |
| # Klang Pianissimo for Norwegian | |
| **Pianissimo-no is our open speech recognition model for Norwegian, in Bokmål and Nynorsk.** Across fifteen Norwegian evaluation sets, it achieved **13.8% mean word error rate** (10.4% on the nine Bokmål sets, 18.8% on the six Nynorsk sets), the best result among the open and closed models we tested. | |
| Built on [NVIDIA Parakeet v3](https://huggingface.co/nvidia/parakeet-tdt-0.6b-v3), Pianissimo has 600 million parameters and runs at **over 3,600× realtime on one NVIDIA H100, or 500× on one L4**. It supports punctuation, capitalization and word-level timestamps. We release it under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), with versions for servers, laptops and phones so you can run it on your own hardware and keep control of your recordings. | |
| [**Try Pianissimo**](https://klang.ai/pianissimo-no/#try-pianissimo) or read [how we trained it](https://research.klang.ai/papers/klang-pianissimo-no/). We also release Pianissimo for [Swedish](https://huggingface.co/KlangAI/pianissimo-sv) and [Danish](https://huggingface.co/KlangAI/pianissimo-da). | |
| ## Usage | |
| Install PyTorch, `nemo_toolkit[asr]` and `soundfile`. | |
| Norwegian has two written standards (Bokmål and Nynorsk), both supported by the same model. You choose the output language with `target_lang` (`"nb"` or `"nn"`). | |
| Load the model and transcribe a 16 kHz mono audio file in Bokmål: | |
| ```python | |
| import soundfile as sf | |
| import torch | |
| from nemo.collections.asr.models import ASRModel | |
| device = torch.device("cuda" if torch.cuda.is_available() else "cpu") | |
| model = ASRModel.from_pretrained( | |
| model_name="KlangAI/pianissimo-no", | |
| map_location=device, | |
| ).eval() | |
| audio, sample_rate = sf.read("audio.wav", dtype="float32") # 16 kHz mono | |
| with torch.inference_mode(): | |
| hypotheses = model.transcribe( | |
| audio=[audio], | |
| batch_size=1, | |
| return_hypotheses=True, | |
| target_lang="nb", # "nn" for Nynorsk | |
| ) | |
| print(hypotheses[0].text) | |
| ``` | |
| Pass the audio as arrays: NeMo gives an error for file paths together with `target_lang`. For multiple recordings, pass a list of arrays and increase `batch_size` to suit your GPU. | |
| ### Timestamps | |
| Add `timestamps=True` to obtain word and segment timestamps: | |
| ```python | |
| with torch.inference_mode(): | |
| hypotheses = model.transcribe( | |
| audio=[audio], | |
| batch_size=1, | |
| return_hypotheses=True, | |
| target_lang="nb", | |
| timestamps=True, | |
| ) | |
| for word in hypotheses[0].timestamp["word"]: | |
| print(word["start"], word["end"], word["word"]) | |
| ``` | |
| ### Vocabulary | |
| NeMo's built-in phrase boosting supports custom vocabulary: list names and terms to help the model spell them correctly. The [ONNX](https://huggingface.co/KlangAI/pianissimo-no-onnx#vocabulary) and [MLX](https://huggingface.co/KlangAI/pianissimo-no-mlx-8bit#vocabulary) versions support it with our own implementation. The words and phrases are case sensitive. | |
| ```python | |
| import copy | |
| from omegaconf import open_dict | |
| decoding = copy.deepcopy(model.cfg.decoding) | |
| with open_dict(decoding): | |
| decoding.strategy = "greedy_batch" | |
| decoding.greedy.boosting_tree = { | |
| "key_phrases_list": [ | |
| "Klang AI", "Pianissimo", "Stortinget", "Universitetet i Bergen", | |
| ], | |
| "context_score": 1.0, | |
| "depth_scaling": 2.0, | |
| "use_triton": False, | |
| } | |
| decoding.greedy.boosting_tree_alpha = 1.0 | |
| model.change_decoding_strategy(decoding) | |
| ``` | |
| ### Quantized versions | |
| Run Pianissimo on a CPU with ONNX or GGUF, on an Apple silicon GPU with MLX, or on the Apple Neural Engine with [CoreML](https://huggingface.co/KlangAI/pianissimo-no-coreml). The table compares word error rates on 200 Bokmål and 200 Nynorsk clips from the fifteen test sets below; lower is better. | |
| | Version | Runs on | Download | WER, Bokmål (%) | WER, Nynorsk (%) | | |
| |---|---|---:|---:|---:| | |
| | Original fp32 (this model) | PyTorch and NeMo | 2.53 GB | 12.0 | 18.6 | | |
| | [ONNX int8](https://huggingface.co/KlangAI/pianissimo-no-onnx) | CPU | 720 MB | 12.4 | 18.6 | | |
| | [ONNX int4](https://huggingface.co/KlangAI/pianissimo-no-onnx) | CPU | 561 MB | 12.3 | 19.3 | | |
| | [ONNX fp16](https://huggingface.co/KlangAI/pianissimo-no-onnx) | CPU | 1.50 GB | 12.0 | 18.5 | | |
| | [ONNX fp32](https://huggingface.co/KlangAI/pianissimo-no-onnx) | CPU | 2.60 GB | 12.0 | 18.5 | | |
| | [MLX 8-bit](https://huggingface.co/KlangAI/pianissimo-no-mlx-8bit) | Apple silicon GPU | 768 MB | 12.1 | 18.5 | | |
| | [MLX 4-bit](https://huggingface.co/KlangAI/pianissimo-no-mlx-4bit) | Apple silicon GPU | 537 MB | 12.1 | 20.0 | | |
| | [MLX bf16](https://huggingface.co/KlangAI/pianissimo-no-mlx) | Apple silicon GPU | 1.26 GB | 12.0 | 18.5 | | |
| | [MLX fp32](https://huggingface.co/KlangAI/pianissimo-no-mlx-fp32) | Apple silicon GPU | 2.53 GB | 12.0 | 18.5 | | |
| | [CoreML 8-bit](https://huggingface.co/KlangAI/pianissimo-no-coreml) | Apple Neural Engine | 649 MB | 11.8 | 19.7 | | |
| | [CoreML fp16](https://huggingface.co/KlangAI/pianissimo-no-coreml) | Apple Neural Engine | 1.24 GB | 12.0 | 19.7 | | |
| | [GGUF Q8_0](https://huggingface.co/KlangAI/pianissimo-no-gguf) | CPU or GPU with transcribe.cpp | 744 MB | 12.0 | 18.3 | | |
| | [GGUF Q5_K_M](https://huggingface.co/KlangAI/pianissimo-no-gguf) | CPU or GPU with transcribe.cpp | 553 MB | 12.4 | 18.2 | | |
| | [GGUF Q4_K_M](https://huggingface.co/KlangAI/pianissimo-no-gguf) | CPU or GPU with transcribe.cpp | 489 MB | 12.1 | 19.5 | | |
| | [GGUF F16](https://huggingface.co/KlangAI/pianissimo-no-gguf) | CPU or GPU with transcribe.cpp | 1.26 GB | 12.1 | 18.5 | | |
| | [GGUF F32](https://huggingface.co/KlangAI/pianissimo-no-gguf) | CPU or GPU with transcribe.cpp | 2.53 GB | 12.1 | 18.5 | | |
| All versions are scored the same way as the results below. | |
| The ONNX versions run on Windows, Linux and Mac, with Intel, AMD or ARM processors. They use a small loader file included in the ONNX repository: | |
| ```python | |
| import sys | |
| from huggingface_hub import snapshot_download # pip install "onnx-asr[cpu,hub]" sentencepiece | |
| path = snapshot_download("KlangAI/pianissimo-no-onnx", allow_patterns=["*.py", "tokenizer.model"]) | |
| sys.path.append(path) | |
| import pianissimo_onnx | |
| model = pianissimo_onnx.load("KlangAI/pianissimo-no-onnx", quantization="int8", language="nb") # "nn" for Nynorsk | |
| print(model.recognize("audio.wav")) | |
| ``` | |
| The MLX versions run on the GPU of Macs with Apple silicon. They use a small loader file included in each MLX repository; see the [MLX 8-bit model card](https://huggingface.co/KlangAI/pianissimo-no-mlx-8bit) for how to use it. | |
| ## Quality and speed | |
| ### Norwegian speech recognition | |
| We tested Pianissimo on fifteen Norwegian test sets, nine in Bokmål and six in Nynorsk: conversations (NB Samtale), NRK broadcasts, Common Voice, read and spontaneous speech from NB Tale, government press conferences (NorGovPCC), audiobooks, NST and FLEURS. That is about 39 hours, over 13,000 segments. The table shows mean word error rates (%), with equal weight given to each test set. Lower is better. | |
| | Model | Mean, 15 sets | Bokmål, 9 sets | Nynorsk, 6 sets | | |
| |---|---:|---:|---:| | |
| | **Pianissimo-no** | **13.8** | **10.4** | **18.8** | | |
| | NB-Whisper large | 15.7 | 11.5 | 21.9 | | |
| | OpenAI GPT Transcribe (closed) | 18.7 | 12.7 | 27.7 | | |
| | Google Gemini 3.5 Transcribe (closed) | 20.6 | 14.0 | 30.5 | | |
| | ElevenLabs Scribe v3 (closed) | 20.6 | 11.4 | 34.5 | | |
| | Mistral Voxtral Small (closed) | 21.1 | 11.5 | 35.5 | | |
| | Whisper large-v3 | 26.7 | 17.4 | 40.6 | | |
| | Parakeet TDT 0.6B v3 | 75.4 | 72.9 | 79.2 | | |
| All models received the same audio and were scored against the same references. The scoring allows for Norwegian spelling variants and numbers written as digits or words. See the [release article](https://research.klang.ai/papers/klang-pianissimo-no/) for the full comparison. | |
| ### Throughput | |
| Pianissimo-no reaches **over 3,600× realtime on one NVIDIA H100, or 542× on one NVIDIA L4**—1 second to process over one hour of audio on the H100. | |
| ## Architecture | |
| Pianissimo-no uses a **FastConformer encoder and Token-and-Duration Transducer (TDT) decoder**, retaining Parakeet v3's architecture and tokenizer, with a small language prompt added after the encoder to select Bokmål or Nynorsk. | |
| | Property | Value | | |
| |---|---| | |
| | Parameters | Approximately 600 million | | |
| | Audio input | 16 kHz, mono | | |
| | Features | 128-band log-mel spectrogram | | |
| | Encoder | 24 layers, 8× subsampling | | |
| | Language prompt | Bokmål or Nynorsk, two linear layers after the encoder | | |
| | Default attention | Local, 256 encoder frames on each side per layer | | |
| | Checkpoint size | 2.53 GB | | |
| Unlike the original Parakeet checkpoint's full attention, Pianissimo-no defaults to local attention with approximately 20.5 seconds of context in each direction per layer. This keeps attention computation linear in recording length and makes long recordings practical. | |
| ## Training | |
| We fine-tuned Pianissimo-no on Norwegian speech in Bokmål and Nynorsk: parliamentary and public-sector recordings, broadcast speech, read speech and conversations, from public datasets and our own collection of publicly available speech. | |
| We acknowledge the EuroHPC Joint Undertaking for awarding us access to the EuroHPC supercomputer LEONARDO, hosted by CINECA (Italy), where the final training phases ran. | |
| ## License and citation | |
| Pianissimo-no is released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). | |
| ```bibtex | |
| @misc{klang2026pianissimono, | |
| title = {Klang Pianissimo for Norwegian}, | |
| author = {{Klang}}, | |
| year = {2026}, | |
| howpublished = {Hugging Face model repository}, | |
| url = {https://huggingface.co/KlangAI/pianissimo-no} | |
| } | |
| ``` | |