sci-ml/sherpa-onnx (stuff)

Search

Install

Install this package:

emerge -a sci-ml/sherpa-onnx

Package Information

Description:
sherpa-onnx is a speech-stack toolkit from the k2-fsa project: speech-to-text, text-to-speech, speaker diarization, voice activity detection, source separation, and keyword spotting, all running on ONNX Runtime (no PyTorch dependency). Source build against system sci-libs/onnxruntime. For the prebuilt -bin alternative (faster install, ships upstream's manylinux wheels) see sci-ml/sherpa-onnx-bin. The CMake build vendors a dozen small deps (eigen, asio, cargs, json, kaldi-{decoder,native-fbank,fst}, openfst, kissfft, simple-sentencepiece, hclust-cpp, optionally espeak-ng + piper-phonemize + portaudio + websocketpp + pybind11) via FetchContent. The ebuild pre-fetches them all via SRC_URI and stages into ${S} for the cmake fallback paths; no network access during build. Runtime model files for each task (ASR, diarization, TTS, etc.) live upstream — see https://k2-fsa.github.io/sherpa/onnx/pretrained_models/
Homepage:
https://k2-fsa.github.io/sherpa/onnx/ https://github.com/k2-fsa/sherpa-onnx
License:
Apache-2.0

Versions

Version EAPI Keywords Slot
1.13.2 8 ~amd64 0

Metadata

Description

Maintainers

Upstream

Raw Metadata XML
<pkgmetadata>
	<maintainer type="person">
		<email>iohann.s.titov@gmail.com</email>
		<name>Ivan S. Titov</name>
	</maintainer>
	<longdescription>
    sherpa-onnx is a speech-stack toolkit from the k2-fsa project:
    speech-to-text, text-to-speech, speaker diarization, voice activity
    detection, source separation, and keyword spotting, all running on
    ONNX Runtime (no PyTorch dependency).

    Source build against system sci-libs/onnxruntime. For the prebuilt
    -bin alternative (faster install, ships upstream's manylinux wheels)
    see sci-ml/sherpa-onnx-bin.

    The CMake build vendors a dozen small deps (eigen, asio, cargs, json,
    kaldi-{decoder,native-fbank,fst}, openfst, kissfft, simple-sentencepiece,
    hclust-cpp, optionally espeak-ng + piper-phonemize + portaudio +
    websocketpp + pybind11) via FetchContent. The ebuild pre-fetches them
    all via SRC_URI and stages into ${S} for the cmake fallback paths;
    no network access during build.

    Runtime model files for each task (ASR, diarization, TTS, etc.) live
    upstream — see https://k2-fsa.github.io/sherpa/onnx/pretrained_models/
  </longdescription>
	<use>
		<flag name="cuda">Build the NVIDIA CUDA backend (requires CUDA Toolkit; nvcc is pinned to gcc-15 on this host)</flag>
		<flag name="portaudio">Build the example CLI tools that record/play audio (portaudio is vendored + statically linked by upstream cmake)</flag>
		<flag name="python">Build and install the Python bindings (pybind11) into site-packages</flag>
		<flag name="tts">Build text-to-speech support (pulls vendored espeak-ng-for-piper at build time)</flag>
		<flag name="websocket">Build the WebSocket server and client examples</flag>
	</use>
	<upstream>
		<bugs-to>https://github.com/k2-fsa/sherpa-onnx/issues</bugs-to>
		<remote-id type="github">k2-fsa/sherpa-onnx</remote-id>
		<remote-id type="gitlab">libeigen/eigen</remote-id>
	</upstream>
</pkgmetadata>

Lint Warnings

USE Flags

Manage flags for this package: euse -i <flag> -p sci-ml/sherpa-onnx | euse -E <flag> -p sci-ml/sherpa-onnx | euse -D <flag> -p sci-ml/sherpa-onnx

Flag Description 1.13.2
cuda Build the NVIDIA CUDA backend (requires CUDA Toolkit; nvcc is pinned to gcc-15 on this host)
portaudio Build the example CLI tools that record/play audio (portaudio is vendored + statically linked by upstream cmake)
python Build and install the Python bindings (pybind11) into site-packages
tts Build text-to-speech support (pulls vendored espeak-ng-for-piper at build time)
websocket Build the WebSocket server and client examples

Manifest

Type File Size Versions
DIST asio-asio-1-24-0.tar.gz 2902485 bytes 1.13.2
DIST cargs-1.0.3.tar.gz 41253 bytes 1.13.2
DIST eigen-5.0.1.tar.gz 2967272 bytes 1.13.2
DIST espeak-ng-f6fed6c58b5e0998b8e68c6610125e2d07d595a7.zip 18011637 bytes 1.13.2
DIST hclust-cpp-2026-02-25.tar.gz 22523 bytes 1.13.2
DIST json-3.12.0.tar.gz 9678593 bytes 1.13.2
DIST kaldi-decoder-0.3.0.tar.gz 51199 bytes 1.13.2
DIST kaldi-native-fbank-1.22.3.tar.gz 71144 bytes 1.13.2
DIST kaldifst-1.8.0.tar.gz 172147 bytes 1.13.2
DIST kissfft-febd4caeed32e33ad8b2e0bb5ea77542c40f18ec.zip 74252 bytes 1.13.2
DIST openfst-1.8.5-2026-04-11.tar.gz 1501059 bytes 1.13.2
DIST pa_stable_v190700_20210406.tgz 1462695 bytes 1.13.2
DIST piper-phonemize-78a788e0b719013401572d70fef372e77bff8e43.zip 9805951 bytes 1.13.2
DIST pybind11-3.0.0.tar.gz 915234 bytes 1.13.2
DIST sherpa-onnx-1.13.2.gh.tar.gz 9712331 bytes 1.13.2
DIST simple-sentencepiece-0.7.tar.gz 355335 bytes 1.13.2
DIST websocketpp-b9aeec6eaf3d5610503439b4fae3581d9aff08e8.zip 996004 bytes 1.13.2
Unmatched Entries
Type File Size