LocalAI/.github/workflows
Richard Palethorpe 13734ae9fa
feat: Add Sherpa ONNX backend for ASR and TTS (#8523)
feat(backend): Add Sherpa ONNX backend and Omnilingual ASR

Adds a new Go backend wrapping sherpa-onnx via purego (no cgo). Same
approach as opus/stablediffusion-ggml/whisper — a thin C shim
(csrc/shim.c + shim.h → libsherpa-shim.so) wraps the bits purego
can't reach directly: nested struct config writes, result-struct field
reads, and the streaming TTS callback trampoline. The Go side uses
opaque uintptr handles and purego.NewCallback for the TTS callback.

Supports:
- VAD via sherpa-onnx's Silero VAD
- Offline ASR: Whisper, Paraformer, SenseVoice, Omnilingual CTC
- Online/streaming ASR: zipformer transducer with endpoint detection
  (AudioTranscriptionStream emits delta events during decode)
- Offline TTS: VITS (LJS, etc.)
- Streaming TTS: sherpa-onnx's callback API → PCM chunks on a channel,
  prefixed by a streaming WAV header

Gallery entries: omnilingual-0.3b-ctc-q8-sherpa (1600-language offline
ASR), streaming-zipformer-en-sherpa (low-latency streaming ASR),
silero-vad-sherpa, vits-ljs-sherpa.

E2E coverage: tests/e2e-backends for offline + streaming ASR,
tests/e2e for the full realtime pipeline (VAD + STT + TTS).

Assisted-by: claude-opus-4-7-1M [Claude Code]

Signed-off-by: Richard Palethorpe <io@richiejp.com>
2026-04-24 14:40:06 +02:00
..
disabled chore(ci): disable CI actions 2026-03-02 14:48:00 +01:00
backend.yml feat: Add Sherpa ONNX backend for ASR and TTS (#8523) 2026-04-24 14:40:06 +02:00
backend_build.yml feat: voice recognition (#9500) 2026-04-23 12:07:14 +02:00
backend_build_darwin.yml chore(deps): bump docker/metadata-action from 5 to 6 (#8917) 2026-03-09 22:27:02 +01:00
backend_pr.yml Change runner from macOS-14 to macos-latest 2025-12-13 10:11:27 +01:00
build-test.yaml chore(deps): bump actions/upload-artifact from 6 to 7 (#8730) 2026-03-02 21:43:39 +01:00
bump-inference-defaults.yml chore(deps): bump peter-evans/create-pull-request from 7 to 8 (#9114) 2026-03-24 08:50:50 +01:00
bump_deps.yaml feat(backend): add turboquant llama.cpp-fork backend (#9355) 2026-04-15 01:25:04 +02:00
bump_docs.yaml fix(api)!: Stop model prior to deletion (#8422) 2026-02-06 09:22:10 +01:00
checksum_checker.yaml fix(api)!: Stop model prior to deletion (#8422) 2026-02-06 09:22:10 +01:00
deploy-explorer.yaml fix(api)!: Stop model prior to deletion (#8422) 2026-02-06 09:22:10 +01:00
gallery-agent.yaml fix(gallery-agent): process blacklist command on recently-closed PRs (#9473) 2026-04-21 16:29:13 +02:00
generate_grpc_cache.yaml chore(deps): bump docker/build-push-action from 6 to 7 (#8919) 2026-03-09 22:29:51 +01:00
generate_intel_image.yaml chore(deps): bump docker/login-action from 3 to 4 (#8918) 2026-03-09 22:30:11 +01:00
gh-pages.yml chore(deps): bump actions/upload-pages-artifact from 4 to 5 (#9337) 2026-04-13 21:53:47 +02:00
image-pr.yml feat(rocm): bump to 7.x (#9323) 2026-04-12 08:51:30 +02:00
image.yml feat(rocm): bump to 7.x (#9323) 2026-04-12 08:51:30 +02:00
image_build.yml chore: drop AIO images (#9004) 2026-03-14 17:49:36 +01:00
notify-releases.yaml fix(api)!: Stop model prior to deletion (#8422) 2026-02-06 09:22:10 +01:00
release.yaml chore(deps): bump softprops/action-gh-release from 2 to 3 (#9336) 2026-04-13 21:53:28 +02:00
secscan.yaml Revert "chore(deps): bump securego/gosec from 2.22.9 to 2.22.11" (#7789) 2025-12-30 09:58:13 +01:00
stalebot.yml chore(deps): bump actions/stale from 10.1.1 to 10.2.0 (#8633) 2026-02-23 23:27:20 +01:00
test-extra.yml feat: Add Sherpa ONNX backend for ASR and TTS (#8523) 2026-04-24 14:40:06 +02:00
test.yml feat: Add Sherpa ONNX backend for ASR and TTS (#8523) 2026-04-24 14:40:06 +02:00
tests-e2e.yml feat(realtime): WebRTC support (#8790) 2026-03-13 21:37:15 +01:00
tests-ui-e2e.yml chore(deps): bump actions/upload-artifact from 4 to 7 (#9030) 2026-03-17 11:42:49 +01:00
update_swagger.yaml fix(api)!: Stop model prior to deletion (#8422) 2026-02-06 09:22:10 +01:00
yaml-check.yml chore(backend gallery): add description for remaining backends (#5679) 2025-06-17 22:21:44 +02:00