A Swift Package Manager distribution of sherpa-onnx XCFrameworks for iOS and macOS.
Forked from uakihir0/sherpa-onnx-spm with added macOS support.
Automatically tracks the latest sherpa-onnx releases via GitHub Actions and provides pre-built XCFrameworks.
- Speech Recognition (ASR) - Streaming / Non-streaming
- Text-to-Speech (TTS) - VITS, Matcha, Kokoro, etc.
- Voice Activity Detection (VAD) - Silero VAD
- Keyword Spotting
- Speaker Identification & Diarization
- Speech Enhancement & Denoising
In Xcode, go to File > Add Package Dependencies... and enter the following URL:
https://github.com/willwade/sherpa-onnx-spm.git
Or add the dependency to your Package.swift:
dependencies: [
.package(url: "https://github.com/willwade/sherpa-onnx-spm.git", from: "1.0.0")
]Then add it to your target:
.target(
name: "YourTarget",
dependencies: [
.product(name: "SherpaOnnx", package: "sherpa-onnx-spm"),
]
)import SherpaOnnx
// Check version
let version = getSherpaOnnxVersion()
print("sherpa-onnx version: \(version)")For detailed usage, refer to the official sherpa-onnx documentation.
- iOS 13.0+
- arm64 (Device)
- x86_64 (Simulator)
- arm64 (Apple Silicon Simulator)
- macOS 13.0+
- arm64 (Apple Silicon)
- x86_64 (Intel)
sherpa-onnx is licensed under the Apache License 2.0.