---
title: "sherpa-onnx vs dia2"
type: "comparison"
canonical_url: "https://www.graphcanon.com/compare/k2-fsa-sherpa-onnx-vs-nari-labs-dia2"
tools: ["k2-fsa-sherpa-onnx", "nari-labs-dia2"]
---

# sherpa-onnx vs dia2

*GraphCanon updated Jul 30, 2026*

## Verdict

Pick sherpa-onnx when sherpa-onnx is primarily C++; dia2 is Python; pick dia2 when dia2 is primarily Python; sherpa-onnx is C++.

[sherpa-onnx](https://k2-fsa.github.io/sherpa/onnx/index.html) reports 14k GitHub stars, 1.6k forks, and 617 open issues, last pushed Jul 29, 2026. [dia2](https://github.com/nari-labs/dia2) has 1.2k stars, 99 forks, and 5 open issues, last pushed Nov 29, 2025. Figures are from public GitHub metadata via [sherpa-onnx's repository](https://github.com/k2-fsa/sherpa-onnx) and [dia2's repository](https://github.com/nari-labs/dia2).

| | [sherpa-onnx](/tools/k2-fsa-sherpa-onnx.md) | [dia2](/tools/nari-labs-dia2.md) |
| --- | --- | --- |
| Tagline | Speech-to-text and related audio processing tools using ONNX with cross-platform support | TTS model capable of streaming conversational audio in real-time. |
| Stars | 13,842 | 1,160 |
| Forks | 1,596 | 99 |
| Open issues | 617 | 5 |
| Language | C++ | Python |
| Adopt for | sherpa-onnx offers local speech-to-text processing across multiple platforms including embedded systems with NPUs, supporting wide programming languages. | - |
| Persona | - | - |
| Runtime | - | - |
| License | Apache-2.0 | Apache-2.0 |
| Categories | Speech & Audio | Speech & Audio |

## Trust and health

_Sourced signals - not a safety guarantee. No winner column._

| | [sherpa-onnx](/tools/k2-fsa-sherpa-onnx.md) | [dia2](/tools/nari-labs-dia2.md) |
| --- | --- | --- |
| Maintenance | Very active (96%) | Slowing (36%) |
| Days since push | 0d | 243d |
| Open issues (now) | 617 | 5 |
| Full report | [trust report](/tools/k2-fsa-sherpa-onnx/trust.md) | [trust report](/tools/nari-labs-dia2/trust.md) |

## Decision facts: sherpa-onnx

- **Adopt for:** sherpa-onnx offers local speech-to-text processing across multiple platforms including embedded systems with NPUs, supporting wide programming languages.

## Choose when

### Choose sherpa-onnx if…

- sherpa-onnx is primarily C++; dia2 is Python.
- Tags unique to sherpa-onnx: aarch64, android, arm32, asr.
- When you need to deploy speech recognition or synthesis on platforms such as Raspberry Pi, RISC-V, and with NPUs like Rockchip, Axera, Ascend

### Choose dia2 if…

- dia2 is primarily Python; sherpa-onnx is C++.
- Tags unique to dia2: open-weight, text-to-speech.
- When you need real-time streaming capabilities for text-to-speech applications.

## When NOT to use sherpa-onnx

- If your project strictly requires real-time web service interaction or server-based speech-to-text solutions
- When the target environment lacks support for ONNX runtime and specific NPUs integrated within sherpa-onnx

## When NOT to use dia2

- For projects aimed at batch processing or non-realtime TTS applications where instantaneous audio output isn't required.
- If you are looking for an open-source model that does not include specific proprietary components like the Kyutai Mimi codec.

## Common questions

### What is the difference between sherpa-onnx and dia2?

sherpa-onnx: Speech-to-text and related audio processing tools using ONNX with cross-platform support. dia2: TTS model capable of streaming conversational audio in real-time.. See the comparison table for live GitHub stats and shared categories.

### When should I choose sherpa-onnx over dia2?

Choose sherpa-onnx over dia2 when sherpa-onnx is primarily C++; dia2 is Python; Tags unique to sherpa-onnx: aarch64, android, arm32, asr; When you need to deploy speech recognition or synthesis on platforms such as Raspberry Pi, RISC-V, and with NPUs like Rockchip, Axera, Ascend.

### When should I choose dia2 over sherpa-onnx?

Choose dia2 over sherpa-onnx when dia2 is primarily Python; sherpa-onnx is C++; Tags unique to dia2: open-weight, text-to-speech; When you need real-time streaming capabilities for text-to-speech applications.

### When should I avoid sherpa-onnx?

If your project strictly requires real-time web service interaction or server-based speech-to-text solutions When the target environment lacks support for ONNX runtime and specific NPUs integrated within sherpa-onnx

### When should I avoid dia2?

For projects aimed at batch processing or non-realtime TTS applications where instantaneous audio output isn't required. If you are looking for an open-source model that does not include specific proprietary components like the Kyutai Mimi codec.

### Is sherpa-onnx or dia2 more popular on GitHub?

sherpa-onnx has more GitHub stars (13,842 vs 1,160). Stars measure visibility, not whether either tool fits your constraints.

### Are sherpa-onnx and dia2 open source?

Yes - both are open-source projects on GitHub (sherpa-onnx: Apache-2.0, dia2: Apache-2.0).

### Where can I find alternatives to sherpa-onnx or dia2?

GraphCanon lists graph-backed alternatives at [sherpa-onnx alternatives](/tools/k2-fsa-sherpa-onnx/alternatives) and [dia2 alternatives](/tools/nari-labs-dia2/alternatives) ([sherpa-onnx markdown twin](/tools/k2-fsa-sherpa-onnx/alternatives.md), [dia2 markdown twin](/tools/nari-labs-dia2/alternatives.md)), ranked by typed relationship edges rather than popularity votes.

### Is there a machine-readable version of this comparison?

Yes. The markdown twin at [this comparison](/compare/k2-fsa-sherpa-onnx-vs-nari-labs-dia2.md) mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.

### Which is better maintained, sherpa-onnx or dia2?

sherpa-onnx: Very active. dia2: Slowing. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.

### Where are the full trust reports for sherpa-onnx and dia2?

GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: [sherpa-onnx trust report](/tools/k2-fsa-sherpa-onnx/trust); [dia2 trust report](/tools/nari-labs-dia2/trust).

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/graph?tool=k2-fsa-sherpa-onnx`](/api/graphcanon/graph?tool=k2-fsa-sherpa-onnx)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
